Skip to content

Conversation

@wangzlei
Copy link
Contributor

Description of changes:

Support code attributes for spans manually created, such as

@tracer.start_as_current_span("create-otel-span-by-decorator")
def _otel_span_decorator():
    pass

def _otel_span_api_with():
    """A demo function to illustrate OpenTelemetry span context manager."""
    with tracer.start_as_current_span("create-otel-span-by-api"):
        pass

def _otel_span_api_start_span():
    span = tracer.start_span("create-otel-span-by-api")
    span.end()

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@wangzlei wangzlei requested a review from a team as a code owner October 24, 2025 23:45
@wangzlei wangzlei added the skip changelog doesn't need a CHANGELOG entry label Oct 24, 2025
Copy link
Contributor

@vastin vastin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wangzlei wangzlei enabled auto-merge (squash) October 24, 2025 23:57
@wangzlei wangzlei merged commit 533fafd into aws-observability:main Oct 25, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changelog doesn't need a CHANGELOG entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants