diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee9f66b6a..22eaa4a017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,7 +46,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `opentelemetry-instrumentation-flask` Do not emit a warning message for request contexts created with `app.test_request_context` ([#253](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/253)) - `opentelemetry-instrumentation-requests`, `opentelemetry-instrumentation-urllib` Fix span name callback parameters -- ([#259](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/259)) + ([#259](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/259)) +- `opentelemetry-exporter-datadog` Fix unintentional type change of span trace flags + ([#261](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/261)) ## [0.16b1](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.16b1) - 2020-11-26 diff --git a/exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/propagator.py b/exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/propagator.py index 27fa15b7b2..66c833174e 100644 --- a/exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/propagator.py +++ b/exporter/opentelemetry-exporter-datadog/src/opentelemetry/exporter/datadog/propagator.py @@ -60,7 +60,7 @@ def extract( constants.AUTO_KEEP, constants.USER_KEEP, ): - trace_flags |= trace.TraceFlags.SAMPLED + trace_flags = trace.TraceFlags(trace.TraceFlags.SAMPLED) if trace_id is None or span_id is None: return set_span_in_context(trace.INVALID_SPAN, context)