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

Commit 0166cd4

Browse files
author
Amir Blum
authored
Merge pull request #12 from aspecto-io/fix/consumer-span-kind
fix(plugin-kafkajs): fixing consumer sent with wrong span kind
2 parents 017a721 + c2382dd commit 0166cd4

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)