Skip to content

Commit 71c27ba

Browse files
jssmithclaude
andcommitted
Update OTEL examples with correct trace() usage pattern
Corrects the documentation and code to reflect the proper usage of trace(): - trace() should be used in workflows when using custom_span() (patterns 2 & 3) - Never use trace() in client code - Pattern 1 (basic): No trace() needed - plugin creates root trace automatically - Pattern 2 (custom spans): trace() + custom_span() in workflow - Pattern 3 (direct API): trace() + custom_span() + OTEL tracer in workflow Updates: - README with clearer pattern explanations and examples - Direct API workflow to use trace() + custom_span() pattern - All docstrings to document the correct patterns - Troubleshooting section with pattern-specific guidance Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 6e7f196 commit 71c27ba

6 files changed

Lines changed: 250 additions & 210 deletions

File tree

0 commit comments

Comments
 (0)