diff --git a/ext/opentelemetry-ext-zipkin/src/opentelemetry/ext/zipkin/__init__.py b/ext/opentelemetry-ext-zipkin/src/opentelemetry/ext/zipkin/__init__.py index e319e121491..edc9ee70319 100644 --- a/ext/opentelemetry-ext-zipkin/src/opentelemetry/ext/zipkin/__init__.py +++ b/ext/opentelemetry-ext-zipkin/src/opentelemetry/ext/zipkin/__init__.py @@ -180,7 +180,7 @@ def _translate_to_zipkin(self, spans: Sequence[Span]): } if context.trace_flags.sampled: - zipkin_span["debug"] = 1 + zipkin_span["debug"] = True if isinstance(span.parent, Span): zipkin_span["parentId"] = format( diff --git a/ext/opentelemetry-ext-zipkin/tests/test_zipkin_exporter.py b/ext/opentelemetry-ext-zipkin/tests/test_zipkin_exporter.py index b99398e066d..578b533e0ee 100644 --- a/ext/opentelemetry-ext-zipkin/tests/test_zipkin_exporter.py +++ b/ext/opentelemetry-ext-zipkin/tests/test_zipkin_exporter.py @@ -197,7 +197,7 @@ def test_export(self): "value": "event0", } ], - "debug": 1, + "debug": True, "parentId": format(parent_id, "x"), }, {