-
-
Couldn't load subscription status.
- Fork 1.6k
docs(js): Update span metrics instrumentation examples #14610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* 'master' of https://github.com/getsentry/sentry-docs: docs(dev-infra): Update development environment docs (#14585) add Sevvy integration docs (#14601) feat(dart/flutter): improve distinction between Logging integration and Structured Logs (#14527) correcting region storage for symbol and source map metadata (#14600)
…, Media Upload, Search Autocomplete) using existing Challenge/Solution/Frontend/Backend/How-it-works structure. Emphasizes where to instrument in React vs backend and low-cardinality attributes for span metrics.
…e auto-instrumentation; keep attributes minimal and business-focused for easier customization.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Bundle ReportChanges will decrease total bundle size by 32.95kB (-0.14%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: sentry-docs-server-cjsAssets Changed:
Files in
App Routes Affected:
view changes for bundle: sentry-docs-client-array-pushAssets Changed:
Files in
|
…s-examples * origin/master: (478 commits) docs(godot): Structured logging (#15287) fix(batch-processor): Don't enforce starting timer (#15309) feat(node): Add new options to nativeNodeFetchIntegration (#15282) Updated dotnet options to include all defaults (#15218) ref: add docs that logs channel is optional (#15172) docs(svelteKit): Update build-time options for source maps (#15283) fix(python): Fix paragraph order in Strawberry docs (#15301) Added docs explaining how to disable Sentry Native in the .NET SDK (#15293) Updated Unity options with missing defaults (#15219) docs(otlp): Update docs for client SDK w3c traceparent support (#15294) Adding defaults for Godot options (#15216) feat(crons): Document broken monitors feature (#15280) fix: Remove OTLP logs from EA list (#15288) Bump API schema to 06047b60 (#15276) ref(nextjs): Move manual instrumentation examples for ai into Edge section (#15284) docs(otlp): change status to open beta (#15285) Hono runtime and middleware doc updates (#14853) feat(logs): Clarify API for Hub/Scope and Client (#15281) docs(astro/nuxt): Remove `sourceMapsUploadOptions` option nesting (#14905) docs(profiling): Add docs for Profiling API (#15258) ...
- SnapTrace and NullFlix repositories were returning 404 errors - Updated to show 'Coming soon - sample repository in development' - Crash Commerce repository link remains working and active
- Both repositories are accessible and working - Reverting previous placeholder text changes
- LangGraph SVG icon was missing from platformicons package - Using LangChain icon as fallback since they're related technologies - Fixes compilation error and allows dev server to start successfully
- SnapTrace: github.com/getsentry/snaptrace-tracing-example - NullFlix: github.com/getsentry/nullflix-tracing-example - Both repositories are now accessible and contain comprehensive tracing examples
- Comprehensive example showing custom LLM integration with tool calls - Follows Sentry AI agent span conventions from developer docs - Demonstrates gen_ai.invoke_agent, gen_ai.chat, and gen_ai.execute_tool patterns - Includes frontend React component and backend Express API - Shows proper attribute usage for monitoring costs, performance, and business metrics - Matches existing example structure with Challenge/Solution/Frontend/Backend format
Critical fixes to align with Sentry AI agent span conventions: - Add missing SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN with 'manual.ai.custom-llm' value - Add gen_ai.response.model attributes to all agent and LLM spans - Import SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN from @sentry/core - Ensure all spans (invoke_agent, chat, execute_tool) have required attributes - Follow exact patterns from JavaScript SDK AI integrations - Matches developer docs AI agent conventions at develop.sentry.dev
- Removed 6 extra tools to focus on core instrumentation patterns - Kept only search_knowledge_base tool as representative example - Simplified monitoring metrics section to match other examples - Reduced verbosity while maintaining all essential tracing patterns - Test app remains comprehensive with all tools intact
…data fidelity - Removed verbose LLM API call implementation details - Simplified tool execution to essential patterns only - Removed complex final synthesis step - Kept all required AI agent span attributes and conventions - Reduced from ~100 lines to ~40 lines while maintaining all tracing patterns - Helper functions now show clean interface without implementation details
|
Closing this PR as it got polluted with unrelated changes. Clean version of just the span metrics examples changes created in #15320 |
Overview
Updates the span metrics instrumentation examples page with comprehensive, real-world use cases demonstrating how to instrument both frontend and backend code for distributed tracing.
What's New
Four Complete Examples with Sample Repositories
E-Commerce Checkout Flow (Crash Commerce)
ui.actionspansMedia Upload with Background Processing (SnapTrace)
file.uploadspansSearch Autocomplete (NullFlix)
Manual LLM Instrumentation (Customer Service Bot)
Key Improvements
Content Structure
Each example includes: