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

OTel logs correlation breaks for transactions-mapped spans #40

Open
AlexanderWert opened this issue May 25, 2023 · 0 comments
Open

OTel logs correlation breaks for transactions-mapped spans #40

AlexanderWert opened this issue May 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AlexanderWert
Copy link
Member

When does the problem occur?

When receiving an OTel span S that is being mapped to a transaction (e.g. root span, or SpanKind = SERVER) and in addition an OTel log event L that is correlated to that span S (i.e. the log event has the OTLP field SpanID pointing to that span).

Problem

Correlation on the span / transaction breaks.

Reason

In the above situation we map the OTel span S to a transaction document. Thus, the OTLP field SpanID is being mapped to the transaction.id field in the internal model.

When receiving the corresponding log event L, the log event points to S through an OTLP SpanID field. However, since the log event L does not carry the characteristics of the span S (but only the SpanID) we cannot decide whether the OTLP field SpanID on the log event needs to be mapped to a span.id or a transaction.id field. As a result the SpanID OTLP field is always being mapped to the span.id field (even for associated transaction documents).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant