Skip to content

The only tool you need to know what is happening and how to fix it.

docs updated for flutter

ddux1a83840d79b5
diff --git a/docs/components/FrameworkPicker.jsx b/docs/components/FrameworkPicker.jsx
index e55e3788..c483c685 100644
--- a/docs/components/FrameworkPicker.jsx
+++ b/docs/components/FrameworkPicker.jsx
@@ -88,6 +88,14 @@ const FRAMEWORKS = [
href: "/client/sdk",
badge: "new",
},
+ {
+ value: "js-nextjs",
+ label: "Next.js",
+ description: "Next.js applications with OpenTelemetry auto-instrumentation.",
+ icon: "/nextjs.png",
+ href: "/client/nextjs",
+ badge: "new",
+ },
{
value: "js-node",
label: "Node.js",
@@ -152,6 +160,14 @@ const FRAMEWORKS = [
href: "/client/js-sdk",
badge: "new",
},
+ {
+ value: "flutter",
+ label: "Flutter",
+ description: "Flutter mobile apps with automatic error capture and screen recording.",
+ icon: "/flutter.png",
+ href: "/client/flutter",
+ badge: "new",
+ },
];
export default function FrameworkPicker() {
diff --git a/docs/components/SdkContext.jsx b/docs/components/SdkContext.jsx
index bc1d72a2..d7ffa3c5 100644
--- a/docs/components/SdkContext.jsx
+++ b/docs/components/SdkContext.jsx
@@ -19,7 +19,9 @@ export const SDK_OPTIONS = [
{ value: 'openrouter', label: 'OpenRouter' },
{ value: 'otel', label: 'OpenTelemetry (otel)' },
{ value: 'cloudflare', label: 'Cloudflare Workers' },
+ { value: 'js-nextjs', label: 'Next.js (OTel)' },
{ value: 'php-symfony', label: 'Symfony' },
+ { value: 'flutter', label: 'Flutter' },
]
const STORAGE_KEY = 'traceway-docs-sdk'
@@ -41,7 +43,9 @@ const PATH_SDK_MAP = {
'openrouter': 'openrouter',
'otel': 'otel',
'cloudflare': 'cloudflare',
+ 'nextjs': 'js-nextjs',
'symfony': 'php-symfony',
+ 'flutter': 'flutter',
}
const SdkContext = createContext({
diff --git a/docs/components/SdkSelector.jsx b/docs/components/SdkSelector.jsx
index 891739ef..a8c9afe8 100644
--- a/docs/components/SdkSelector.jsx
+++ b/docs/components/SdkSelector.jsx
@@ -11,13 +11,18 @@ const SDK_QUICK_START = {
'go-generic': '/client/sdk',
'js-node': '/client/node-sdk',
'js-nestjs': '/client/nestjs',
+ 'js-hono': '/client/hono',
+ 'js-nextjs': '/client/nextjs',
'js-react': '/client/react',
'js-vue': '/client/vue',
'js-svelte': '/client/svelte',
+ 'js-jquery': '/client/jquery',
'js-generic': '/client/js-sdk',
+ 'openrouter': '/client/openrouter',
'otel': '/client/otel',
'cloudflare': '/client/cloudflare',
'php-symfony': '/client/symfony',
+ 'flutter': '/client/flutter',
}
export default function SdkSelector() {
diff --git a/docs/pages/client/flutter/index.mdx b/docs/pages/client/flutter/index.mdx
index c1d06a3f..e92ccab1 100644
--- a/docs/pages/client/flutter/index.mdx
+++ b/docs/pages/client/flutter/index.mdx
@@ -119,19 +119,26 @@ For Flutter web, use the JS SDK instead — see [Flutter Web](#flutter-web) belo
This SDK does not support Flutter web. For web apps, use the [`@tracewayapp/frontend`](/client/js-sdk?sdk=js-generic) JS SDK which provides rrweb session replay and automatic fetch instrumentation.
-**1. Install the JS SDK:**
+**Add the CDN script to `web/index.html`:**
+
+```html
+<script src="https://cdn.jsdelivr.net/npm/@tracewayapp/frontend@1/dist/traceway.iife.global.js"></script>
+<script>
+ Traceway.init("your-token@https://traceway.example.com/api/report");
+</script>
+```
+
+Alternatively, if you use npm in your Flutter web project:
```bash
npm install @tracewayapp/frontend
```
-**2. Add a script to `web/index.html`:**
-
```html
<script type="module">
- import { init } from './node_modules/@tracewayapp/frontend/dist/index.js';
- init('your-token@https://your-traceway-instance.com/api/report');
+ import { init } from '@tracewayapp/frontend';
+ init('your-token@https://traceway.example.com/api/report');
</script>
```
-Or load it from your bundled JS. See the full [JS SDK documentation](/client/js-sdk?sdk=js-generic) for all options including session recording, error filtering, and distributed tracing.
+See the full [JS SDK documentation](/client/js-sdk?sdk=js-generic) for all options including session recording, error filtering, and distributed tracing.
diff --git a/docs/public/flutter.png b/docs/public/flutter.png
new file mode 100644
index 00000000..f1b32df8
Binary files /dev/null and b/docs/public/flutter.png differ
diff --git a/docs/public/nextjs.png b/docs/public/nextjs.png
new file mode 100644
index 00000000..9e9be36a
Binary files /dev/null and b/docs/public/nextjs.png differ
diff --git a/docs/theme.config.jsx b/docs/theme.config.jsx
index 55b4ffde..fdd9a60e 100644
--- a/docs/theme.config.jsx
+++ b/docs/theme.config.jsx
@@ -23,7 +23,9 @@ const SDK_VISIBILITY = {
openrouter: "openrouter",
otel: "otel",
cloudflare: "cloudflare",
+ nextjs: "js-nextjs",
symfony: "php-symfony",
+ flutter: "flutter",
};
export default {