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
that ends up having an unknown span type in kibana which does not look great.
Please note that this span is not following the OTel genai convention but if we want to add a special type for genai stuff the presence of the gen_ai.system attribute is in the semconv while this particular value (langchain) is not.
Here's the current enrichment code setting the span.type:
It looks like gen_ai.system is not a good bet anymore (open-telemetry/semantic-conventions#1613), maybe the presence of anything that starts with gen_ai. is enough.
xrmx
changed the title
unknown type for some langchain spans
unknown type for gen_ai spans
Dec 2, 2024
When tracing a python langchain application with opentelemetry-instrumentation-langchain (provided by openllmetry) we may produce spans like this:
that ends up having an
unknown
span type in kibana which does not look great.Please note that this span is not following the OTel genai convention but if we want to add a special type for genai stuff the presence of the
gen_ai.system
attribute is in the semconv while this particular value (langchain) is not.Here's the current enrichment code setting the span.type:
opentelemetry-lib/enrichments/trace/internal/elastic/span.go
Lines 342 to 372 in 5f809d4
The text was updated successfully, but these errors were encountered: