Skip to content

Commit

Permalink
Update instrumentation/shoryuken/lib/opentelemetry/instrumentation/sh…
Browse files Browse the repository at this point in the history
…oryuken/middlewares/server/tracer_middleware.rb

Co-authored-by: Ariel Valentin <[email protected]>
  • Loading branch information
mcinbell and arielvalentin authored Aug 11, 2023
1 parent 08b5b5c commit af05e2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TracerMiddleware
def call(worker_instance, queue, sqs_msg, _body) # rubocop:disable Metrics/MethodLength
attributes = {
OpenTelemetry::SemanticConventions::Trace::MESSAGING_SYSTEM => 'shoryuken',
'messaging.shoryuken.job_class' => worker_instance.class.name,
'code.namespace' => worker_instance.class.name,
OpenTelemetry::SemanticConventions::Trace::MESSAGING_MESSAGE_ID => sqs_msg.message_id,
OpenTelemetry::SemanticConventions::Trace::MESSAGING_DESTINATION => queue,
OpenTelemetry::SemanticConventions::Trace::MESSAGING_DESTINATION_KIND => 'queue',
Expand Down

0 comments on commit af05e2e

Please sign in to comment.