open-telemetry/opentelemetry-php

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

Geschlossen

#1.314 geöffnet am 20.05.2024

 (18 Kommentare) (0 Reaktionen) (2 zugewiesene Personen)PHP (224 Forks)auto 404
buggood first issuehelp wanted

Repository-Metriken

Stars
 (894 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 5T 5h) (5 gemergte PRs in 30 T)

Beschreibung

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?

Contributor Guide