Skip to content
Merged
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: 1 addition & 1 deletion temporalio/contrib/opentelemetry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ worker = Worker(
- **Accurate Duration Spans**: Workflow spans have real durations reflecting actual execution time
- **Direct OpenTelemetry Usage**: Use `opentelemetry.trace.get_tracer()` directly within workflows
- **Better Span Hierarchy**: More accurate parent-child relationships within workflows
- **Workflow Context Access**: Access spans within workflows using `temporalio.contrib.opentelemetry.workflow.tracer()`
- **Workflow Context Access**: Access spans within workflows using `opentelemetry.trace.get_tracer()`

#### ⚠️ Considerations:
- **Experimental Status**: Subject to breaking changes in future versions
Expand Down
2 changes: 1 addition & 1 deletion temporalio/contrib/opentelemetry/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class OpenTelemetryPlugin(SimplePlugin):
It uses the new OpenTelemetryInterceptor implementation.

Unlike the prior TracingInterceptor, this allows for accurate duration spans and parenting inside a workflow
with temporalio.contrib.opentelemetry.workflow.tracer()
using opentelemetry.trace.get_tracer() directly.

Your tracer provider should be created with `create_tracer_provider` for it to be used within a Temporal worker.
"""
Expand Down
2 changes: 1 addition & 1 deletion temporalio/contrib/opentelemetry/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def completed_span(
span and this interceptor is configured on the worker and the span is on
the context).

To create a long-running span or to create a span that actually spans other code use OpenTelemetryPlugin and tracer().
To create a long-running span or to create a span that actually spans other code use OpenTelemetryPlugin and opentelemetry.trace.get_tracer().

Args:
name: Name of the span.
Expand Down
Loading