elastic / elastic/apm-server

OpenTelemetry active message consumption spans are incorrectly classified as transactions

Open
#7,001 7 comments 3 reactions 0 assignees View on GitHub
blocked bug OpenTelemetry
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

APM Server converts OpenTelemetry spans to either transactions or spans, depending on several criteria:
- root OTel spans become Elastic APM transactions
- server and consumer OTel spans become Elastic APM transactions
- all other OTel spans become Elastic APM spans

The issue with converting all consumer OTel spans to Elastic APM transactions is that not all consumer spans represent service entrypoints. For example, a message may be actively consumed (e.g. with active polling) within another OTel span. In this case, the outer span should become an Elastic APM transaction, and the message consumption span should become an Elastic APM span.

We require additional information to be recorded in OTLP for this: see https://github.com/open-telemetry/oteps/pull/182

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.