open-telemetry/opentelemetry-php
[Symfony auto-instrumentation] Messenger instrumentation should use SpanKind::KIND_PRODUCER, SpanKind::KIND_CONSUMER
已關閉
#1,314 建立於 2024年5月20日
buggood first issuehelp wanted
倉庫指標
- 星標
- (894 顆星)
- PR 合併指標
- (平均合併 5天 5小時) (30 天內合併 5 個 PR)
描述
Steps to reproduce
Enable Symfony auto-instrumentation with default setup.
What is the expected behavior?
Spans when creating the message should be marked with SpanKind::KIND_PRODUCER.
Spans when handling the message should be marked with SpanKind::KIND_CONSUMER.
https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/#span-kind
What is the actual behavior?
Everything is marked KIND_INTERNAL and it seems the consumer is currently not instrumented at all (I might be wrong here, please feel free to correct me).
Additionally, it seems to me the names of the spans are also not correct, as shown in the table in the spec linked above?