Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit c2382dd

Browse files
fix(plugin-kafkajs): fixing consumer sent with wrong span kind
1 parent 017a721 commit c2382dd

File tree

2 files changed

+641
-711
lines changed

2 files changed

+641
-711
lines changed

packages/plugin-kafkajs/src/kafkajs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class KafkaJsPlugin extends BasePlugin<typeof kafkaJs> {
169169
const span = this._tracer.startSpan(
170170
topic,
171171
{
172-
kind: SpanKind.PRODUCER,
172+
kind: SpanKind.CONSUMER,
173173
attributes: {
174174
[AttributeNames.MESSAGING_SYSTEM]: 'kafka',
175175
[AttributeNames.MESSAGING_DESTINATION]: topic,

0 commit comments

Comments
 (0)