[Python] Update code excerpt in Manual instrumentation page (#1253)

Link example  was having issue
This commit is contained in:
Kanika 2022-03-31 02:31:30 +05:30 committed by GitHub
parent b04b753c9a
commit aa34a3dbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -127,9 +127,9 @@ another span. A link needs a span context to be created.
```python
from opentelemetry import trace
ctx = trace.get_current_span().abstractget_span_context()
ctx = trace.get_current_span().get_span_context()
link_from_current = Link(ctx)
link_from_current = trace.Link(ctx)
with tracer.start_as_current_span("new-span", links=[link_from_current]) as new_span:
# do something that 'new_span' tracks