Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/platforms/javascript/common/agent-tracing/flue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ Sentry.init({
enabled: Boolean(process.env.SENTRY_DSN),
tracesSampleRate,
traceLifecycle: "stream",
streamGenAiSpans: true,
enableLogs: true,
// Flue already emits one `chat` span per model call, so Sentry's
// AI provider integrations are removed to avoid double counting.
Expand Down Expand Up @@ -165,7 +164,6 @@ export const cloudflare = extend({
release: env.SENTRY_RELEASE,
tracesSampleRate: clampRate(env.SENTRY_TRACES_SAMPLE_RATE, 0),
traceLifecycle: "stream",
streamGenAiSpans: true,
enableLogs: true,
integrations: (defaults) =>
defaults.filter((i) => !SENTRY_AI_PROVIDER_INTEGRATIONS.has(i.name)),
Expand Down
32 changes: 0 additions & 32 deletions docs/platforms/javascript/common/agent-tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -215,38 +215,6 @@ On the default CF entrypoint, control Vercel AI I/O with `experimental_telemetry

From SDK `10.61.0`, `gen_ai` spans are sent as standalone envelope items (avoids large-payload drops; required for <Link to="/product/agents/conversations/">Conversations</Link>).

Self-hosted Sentry users should set `streamGenAiSpans: false` if standalone `gen_ai` spans may not be ingested.

<PlatformSection notSupported={["javascript.cloudflare"]}>

```javascript
Sentry.init({
dsn: "___PUBLIC_DSN___",
streamGenAiSpans: false,
});
```

</PlatformSection>

<PlatformSection supported={["javascript.cloudflare"]}>

```javascript
export default Sentry.withSentry(
(env) => ({
dsn: "___PUBLIC_DSN___",
tracesSampleRate: 1.0,
streamGenAiSpans: false,
}),
{
async fetch(request, env, ctx) {
/* ... */
},
}
);
```

</PlatformSection>

## Manual Instrumentation

You can also instrument agent spans yourself. See <PlatformLink to="/agent-tracing/manual-instrumentation/">manual instrumentation</PlatformLink>.
Expand Down
10 changes: 0 additions & 10 deletions docs/platforms/javascript/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -742,16 +742,6 @@ See <PlatformLink to="/tracing/distributed-tracing/dealing-with-cors-issues/">De

</SdkOption>

<SdkOption name="streamGenAiSpans" type='boolean' defaultValue='true' defaultNote='since version 10.61.0' availableSince='10.53.0'>

When enabled, `gen_ai` spans are sent as standalone envelope items instead of being bundled in the transaction payload. This prevents AI spans with large inputs and outputs from being dropped due to transaction payload size limits.

This is enabled by default starting with SDK version `10.61.0` (before that, it defaulted to `false`). Set it to `false` to send `gen_ai` spans as part of the transaction instead.

Self-hosted Sentry users should set this option to `false`, as standalone `gen_ai` spans may not be ingested by their Sentry instance.

</SdkOption>

<SdkOption name="traceLifecycle" type="'static' | 'stream'" defaultValue="'static'" availableSince='10.53.1'>

Controls how spans are sent to Sentry:
Expand Down
Loading