-
Notifications
You must be signed in to change notification settings - Fork 229
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
question: applying user.id when using opentelemetry api with Elastic #3880
Comments
Hi @peterabbott, First, to clarify:
For now, I'm assuming the latter.
I believe that may be part of it. My limited understanding is that APM server version 7.16 is when some more effort was put into translating some OTel span attributes into our span/transaction data model. My understanding is based on when support was added to support our OpenTelemetry Bridge work that I mentioned above. Its spec includes this section that refers to optional fallback handling for APM server versions earlier than 7.16: https://github.com/elastic/apm/blob/main/specs/agents/tracing-api-otel.md#attributes-mapping
Unfortunately, having said that, I think even with a more recent version -- perhaps you've tried a small test Elastic deployment on cloud.elastic.co? -- any Current efforts in mapping fields are in merging Elastic's ECS data specs (e.g. here are the The current code (again my possibly incomplete understanding) for translating OTLP fields into Elastic's documents is here: https://github.com/elastic/apm-data/tree/main/input/otlp/ Are you wanting You might have more luck asking in the apm-server repo, to get more authoritative answers on the translations of OTel span attributes it is doing. |
thanks for the response. It was with both scenarios using the elastic-apm-node directrly and more recently the @opentelemetry api's. After poking around the agent code, wondered if I was doing something wrong or not. Sounds like there is a combination of things working against me here, was really wanting to popluate the User section when looking via Kibana but querying by the label is just as easy. I'd bee through that attribute mapping code many times, helped me discover I can set Thanks for the detailed response. |
We use opentelemetry API to capture our trace data. Have been attempting to apply user context where previously we would have used
setUserContext
, but not getting anything coming through when checking through Kibana. It always comes through as a label.After reading through the code and finding some older tickets. Even tried different casing.
Any thoughts or tips? For reasons I can't go into our stack is still on 7.14 (trying to upgrade) so it may very well be the version we are on.
The text was updated successfully, but these errors were encountered: