You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jaeger exporter not properly handles export events. The specification states that the attributes of an event are optional. So I expect that the following code is correct.
Exception while exporting Span batch.
Traceback (most recent call last):
File "PKG-PATH/opentelemetry/sdk/trace/export/__init__.py", line 190, in export
self.spans_list[:idx]
File "PKG-PATH/opentelemetry/ext/jaeger/__init__.py", line 109, in export
jaeger_spans = _translate_to_jaeger(spans)
File "PKG-PATH/opentelemetry/ext/jaeger/__init__.py", line 160, in _translate_to_jaeger
logs = _extract_logs_from_span(span)
File "PKG-PATH/site-packages/opentelemetry/ext/jaeger/__init__.py", line 229, in _extract_logs_from_span
fields.append(
AttributeError: 'NoneType' object has no attribute 'append'
After reading source code I find that Span.add_event has right signature, and use Span.emprty_attributes as default, but exporter is wrong. _extract_tags(attr) returns None if attr is Span.empty_attributes (aka empty dict).
The text was updated successfully, but these errors were encountered:
Jaeger exporter not properly handles export events. The specification states that the attributes of an event are optional. So I expect that the following code is correct.
But it fails with the message:
After reading source code I find that
Span.add_event
has right signature, and useSpan.emprty_attributes
as default, but exporter is wrong._extract_tags(attr)
returnsNone
ifattr
isSpan.empty_attributes
(aka empty dict).The text was updated successfully, but these errors were encountered: