Skip to content
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

[APM] Dependencies Operations - trace cannot be found - with OTel #193672

Open
AlexanderWert opened this issue Sep 23, 2024 · 6 comments
Open

[APM] Dependencies Operations - trace cannot be found - with OTel #193672

AlexanderWert opened this issue Sep 23, 2024 · 6 comments
Assignees
Labels
apm:opentelemetry APM UI - OTEL Work apm bug Fixes for quality problems that affect the customer experience needs-refinement A reason and acceptance criteria need to be defined for this issue OpenTelemetry Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@AlexanderWert
Copy link
Member

When using OTel data (e.g. the OTel demo), in the Dependencies --> Operations --> [SELECT a specific operation] view the most bottom view always shows The selected trace cannot be found:

Image

Image

@AlexanderWert AlexanderWert added bug Fixes for quality problems that affect the customer experience Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Sep 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@smith smith added needs-refinement A reason and acceptance criteria need to be defined for this issue OpenTelemetry apm apm:opentelemetry APM UI - OTEL Work labels Sep 24, 2024
@MiriamAparicio MiriamAparicio self-assigned this Oct 7, 2024
@AlexanderWert
Copy link
Member Author

@MiriamAparicio
Copy link
Contributor

After some investigation we did with @jennypavlova, these are our findings:

The trace waterfall for dependecies operations is filled querying to span documents using term query for span.destination.service.resource and span.name fields, where transaction.id exist, the results for this query are empty, after this query another one is made to retrieve the transactions for those spans, querying the transaction ids

We assumed that in otel, span documents don't have the transaction.id field and that's the reason why the trace waterfall is empy

@AlexanderWert is it possible to include the transaction.id in span documents from Otel?

@AlexanderWert
Copy link
Member Author

@AlexanderWert is it possible to include the transaction.id in span documents from Otel?

That's unfortunately not easily possible as it would require to buffer spans (similar to tail-based sampling) which we definitely want to avoid.

@AlexanderWert
Copy link
Member Author

AlexanderWert commented Oct 31, 2024

The trace waterfall for dependecies operations is filled querying to span documents using term query for span.destination.service.resource and span.name fields, where transaction.id exist, the results for this query are empty, after this query another one is made to retrieve the transactions for those spans, querying the transaction ids

@MiriamAparicio Instead of going through the transaction.id couldn't we just do the same with trace.id? And in the second step query for those trace.ids but also transaction.id: * (to only limit to spans that are transactions) and service.name being the same as the one of the corresponding exit span. Would that be possible?

@MiriamAparicio
Copy link
Contributor

Instead of going through the transaction.id couldn't we just do the same with trace.id?

Yeah, that seems possible, we can try and see if it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apm:opentelemetry APM UI - OTEL Work apm bug Fixes for quality problems that affect the customer experience needs-refinement A reason and acceptance criteria need to be defined for this issue OpenTelemetry Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

5 participants