其他

sentry-span-streaming-js

getsentry/sentry-for-ai

Migrate JavaScript SDK to Sentry span streaming (span-first trace lifecycle). Use when asked to "enable span streaming", "migrate to span streaming", "use traceLifecycle stream", "add spanStreamingIntegration", or switch from transaction-based to streamed span delivery in a JavaScript project.

  • 502 次安装
  • 272 星标
  • 收录于

安装命令

npx skills add https://github.com/getsentry/sentry-for-ai --skill sentry-span-streaming-js

SKILL.md

All Skills > Feature Setup > Span Streaming (JavaScript)

Sentry Span Streaming Migration (JavaScript)

Migrate from the default transaction-based trace lifecycle (static) to span streaming (stream), where spans are sent individually as they complete instead of being batched into a transaction at the end.

This skill covers the JavaScript SDK (Browser, Node.js, Bun, Deno, Cloudflare). For Python, see Span Streaming (Python). For Dart/Flutter, see Span Streaming (Dart).

Invoke This Skill When

  • User asks to "enable span streaming" or "migrate to span streaming" in a JavaScript project
  • User wants to switch from transaction-based to streamed span delivery
  • User mentions traceLifecycle, spanStreamingIntegration, or withStreamedSpan
  • User wants lower latency span delivery or per-span processing

Phase 1: Detect

All Skills > Feature Setup > Span Streaming (JavaScript)

Sentry Span Streaming Migration (JavaScript)

Migrate from the default transaction-based trace lifecycle (static) to span streaming (stream), where spans are sent individually as they complete instead of being batched into a transaction at the end.

This skill covers the JavaScript SDK (Browser, Node.js, Bun, Deno, Cloudflare). For Python, see Span Streaming (Python). For Dart/Flutter, see Span Streaming (Dart).

Invoke This Skill When

  • User asks to "enable span streaming" or "migrate to span streaming" in a JavaScript project
  • User wants to switch from transaction-based to streamed span delivery
  • User mentions traceLifecycle, spanStreamingIntegration, or withStreamedSpan
  • User wants lower latency span delivery or per-span processing

Phase 1: Detect