open-telemetry/opentelemetry-php

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

クローズ

#1,314 opened on 2024/05/20

 (18 件のコメント) (0 件のリアクション) (2 人の担当者)PHP (224 件のフォーク)auto 404
buggood first issuehelp wanted

Repository metrics

Stars
 (894 個のスター)
PR merge metrics
 (平均マージ 5d 5h) (30d で 5 merged PRs)

説明

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?

コントリビューターガイド