open-telemetry/opentelemetry-php

[Symfony auto-instrumentation] Messenger instrumentation should use SpanKind::KIND_PRODUCER, SpanKind::KIND_CONSUMER

已关闭

#1,314 创建于 2024年5月20日

 (18 条评论) (0 个反应) (2 位负责人)PHP (224 个派生)auto 404
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?

贡献者指南