Skip to content

Commit

Permalink
Update Symfony Messenger instrumentation to use SpanKind::KIND_PRODUC…
Browse files Browse the repository at this point in the history
…ER and KIND_CONSUMER
  • Loading branch information
RichardChukwu committed Oct 11, 2024
1 parent 67ce817 commit 018e7fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Instrumentation/Symfony/src/MessengerInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function register(): void
$builder = $instrumentation
->tracer()
->spanBuilder(\sprintf('DISPATCH %s', $messageClass))
->setSpanKind(SpanKind::KIND_INTERNAL)
->setSpanKind(SpanKind::KIND_PRODUCER)
->setAttribute(TraceAttributes::CODE_FUNCTION, $function)
->setAttribute(TraceAttributes::CODE_NAMESPACE, $class)
->setAttribute(TraceAttributes::CODE_FILEPATH, $filename)
Expand Down Expand Up @@ -125,7 +125,7 @@ public static function register(): void
$builder = $instrumentation
->tracer()
->spanBuilder(\sprintf('SEND %s', $messageClass))
->setSpanKind(SpanKind::KIND_INTERNAL)
->setSpanKind(SpanKind::KIND_CONSUMER)
->setAttribute(TraceAttributes::CODE_FUNCTION, $function)
->setAttribute(TraceAttributes::CODE_NAMESPACE, $class)
->setAttribute(TraceAttributes::CODE_FILEPATH, $filename)
Expand Down

0 comments on commit 018e7fd

Please sign in to comment.