[WEAVE] Fix incomplete auth/routing snippet in OTeL docs (WBDOCS-2035)#2536
[WEAVE] Fix incomplete auth/routing snippet in OTeL docs (WBDOCS-2035)#2536
Conversation
The Python and TypeScript configuration snippets in the "Authentication and routing" section were missing the span processor wiring and provider registration calls, meaning users who copy-pasted them would get silence with no traces sent. Added: missing imports, add_span_processor + set_tracer_provider (Python), spanProcessors + provider.register() (TypeScript), and a Note callout directing users to the complete Examples section below. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Sources and decision logSource: Slack thread in #weave-support-rotation — Griffin Tarpenning reported that copy-pasting the auth/routing snippet produced no traces. His diagnosis: the snippet created the exporter and tracer_provider but never wired them up. What was wrong:
Decisions:
Intentionally omitted: tracer creation ( Related JIRA: WBDOCS-2035 Needs SME verification
Resume promptTo continue this session: PR is wandb/docs#2536 for JIRA ticket WBDOCS-2035. The fix is in {
"skill": "docs",
"version": "unknown",
"depends_on": "unknown",
"model": "claude-sonnet-4-6",
"note": "versions.json not found in skill directory at time of authoring"
} |
📚 Mintlify Preview Links📝 Changed (1 total)📄 Pages (1)
🤖 Generated automatically when Mintlify deployment succeeds |
🔗 Link Checker Results✅ All links are valid! No broken links were detected. Checked against: https://wb-21fd5541-claude-blissful-shirley-671061.mintlify.app |
Summary
add_span_processor+trace.set_tracer_provider(Python),spanProcessorsconstructor option +provider.register()(TypeScript)<Note>callout making it explicit these snippets show configuration only and pointing to the full runnable Examples belowTest plan
from opentelemetry import trace,from opentelemetry.sdk.trace.export import BatchSpanProcessor,add_span_processor(BatchSpanProcessor(exporter)), andtrace.set_tracer_provider(tracer_provider)BatchSpanProcessorimport,spanProcessorsoption in provider constructor, andprovider.register()<Note>callout appears after the CodeGroup and links to#examplesRelated
🤖 Generated with Claude Code