Skip to content

Commit

Permalink
chore: fixing the publisher hook
Browse files Browse the repository at this point in the history
  • Loading branch information
obecny committed Sep 23, 2024
1 parent 366cb67 commit 5015ddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const EXPECTED_MESSAGE_SPAN_PRODUCER = expect.objectContaining({
'messaging.system': 'rabbitmq',
'otel.kind': 'PRODUCER',
'sentry.op': 'message',
'sentry.origin': 'auto.amqplib.otel.publisher',
}),
status: 'ok',
});
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/integrations/tracing/amqplib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config: AmqplibInstrumentationConfig = {
consumeEndHook: (span: Span) => {
addOriginToSpan(span, 'auto.amqplib.otel.consumer');
},
publishConfirmHook: (span: Span) => {
publishHook: (span: Span) => {
addOriginToSpan(span, 'auto.amqplib.otel.publisher');
},
};
Expand Down

0 comments on commit 5015ddc

Please sign in to comment.