-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set GenAi subtype for spans that have the gen_ai.system attribute #127
Conversation
67ba8e1
to
1b89ccb
Compare
1b89ccb
to
5b54577
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes sense.
Only reason this wasn't here is that this logic pre-dates popularity of genai.
Other side note: this code will be used within the OTel collector, but won't be used in APM Server/MIS, right?
I'd say that's fine, just flagging this, because until now, EDOT collector and APM Server/MIS behaved very similarly and here they'll diverge, which may be strange for users.
semconv25 "go.opentelemetry.io/collector/semconv/v1.25.0" | ||
semconv27 "go.opentelemetry.io/collector/semconv/v1.27.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and so it begins... 😛
With the help of @gregkalapos I've setup things to test this but I'm not able to make this work locally and I get an unknown span. These are the local changes I have in elastic-collector-components in order to test this:
Do you see something I am missing? |
If you are building ocb image then you will need to add replace directive in the ocb config (something like https://github.com/elastic/otel-apm-e2e-poc/blob/f45432edc2613f8997caed7c917ae71f5dec8d4d/ocb.yaml#L32) and then build the custom otel collector to do the testing. |
Curious about the timeline required to get this into the EDOT collector by default once merged? Is it feasible in Jan? (thinking about public demos and/or blogs) |
Thanks but I get this error. Tried both building v0.114.0 in elastic-collector-components or v0.111.0 in otel-apm-e2e-poc.
|
Hmm, might be something to do with version up, looks like the otel-e2e-poc has not been updated and otel lib is already using v0.115.0. Let me see if I can do a quick fix there. |
🎉 With https://github.com/elastic/otel-apm-e2e-poc/commit/21e7ef1849b6f45e8a0dea788746de6caee0e5ca and by remembering to not start the apm-server works fine. Thanks @lahsivjar and @gregkalapos for the help! |
Would like to avoid spans with unknown as type in kibana for genai libraries traced calls.
This has only been unit tested here, no clue on how to run this :)
Closes #111