We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f016b44 commit 2e83730Copy full SHA for 2e83730
instrumentation/opentelemetry-instrumentation-celery/tests/test_utils.py
@@ -302,3 +302,14 @@ def test_origin_and_hostname_attributes(self):
302
],
303
any_order=True,
304
)
305
+ span = trace._Span("name", mock.Mock(spec=trace_api.SpanContext))
306
+ utils.set_attributes_from_context(span, context)
307
+
308
+ self.assertEqual(
309
+ span.attributes.get("celery.origin"),
310
+ "gen8@b98c7aca4628",
311
+ )
312
313
+ span.attributes.get("celery.hostname"),
314
+ "celery@7c2c2cd6a5b5",
315
0 commit comments