Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update opentelemtry to the latest version #16570

Merged
merged 6 commits into from
Feb 5, 2021
Merged
Show file tree
Hide file tree
Changes from 4 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
3 changes: 2 additions & 1 deletion sdk/core/azure-core-tracing-opentelemetry/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

# Release History

## 1.0.0b8 (Unreleased)
## 1.0.0b8 (2021-02-08)

- Pinned opentelemetry-api to version 0.17b0

## 1.0.0b7 (2020-10-05)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from opentelemetry.context import attach, detach, get_current
from opentelemetry.propagators import extract, inject
from opentelemetry.trace.propagation import get_current_span as get_span_from_context
from opentelemetry.trace.propagation.textmap import DictGetter

from azure.core.tracing import SpanKind, HttpSpanMixin # pylint: disable=no-name-in-module

Expand Down Expand Up @@ -202,8 +203,8 @@ def link_from_headers(cls, headers, attributes=None):
:param headers: A key value pair dictionary
:type headers: dict
"""
ctx = extract(_get_headers_from_http_request_headers, headers)
span_ctx = get_span_from_context(ctx).get_context()
ctx = extract(DictGetter, headers)
rakshith91 marked this conversation as resolved.
Show resolved Hide resolved
span_ctx = get_span_from_context(ctx).get_span_context()
current_span = cls.get_current_span()
current_span.links.append(Link(span_ctx, attributes))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-e ../../../tools/azure-sdk-tools
../azure-core
opentelemetry-sdk==0.13b0
opentelemetry-sdk==0.17b0
2 changes: 1 addition & 1 deletion sdk/core/azure-core-tracing-opentelemetry/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
],
python_requires=">=3.5.0",
install_requires=[
'opentelemetry-api==0.13b0',
'opentelemetry-api==0.17b0',
'azure-core<2.0.0,>=1.0.0',
],
extras_require={
Expand Down
2 changes: 1 addition & 1 deletion shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ opentelemetry-sdk==0.16b1
#override azure-ai-metricsadvisor msrest>=0.6.12
#override azure-opentelemetry-exporter-azuremonitor azure-core<2.0.0,>=1.6.0
#override azure-opentelemetry-exporter-azuremonitor msrest>=0.6.10
#override azure-core-tracing-opentelemetry opentelemetry-api==0.13b0
#override azure-core-tracing-opentelemetry opentelemetry-api==0.17b0
#override azure-identity six>=1.12.0
#override azure-ai-formrecognizer
#override azure-ai-metricsadvisor