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

Commit

Permalink
fix(plugin-kafkajs): fixing consumer sent with wrong span kind
Browse files Browse the repository at this point in the history
  • Loading branch information
aspecto-system committed Jun 25, 2020
1 parent 017a721 commit c2382dd
Show file tree
Hide file tree
Showing 2 changed files with 641 additions and 711 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-kafkajs/src/kafkajs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class KafkaJsPlugin extends BasePlugin<typeof kafkaJs> {
const span = this._tracer.startSpan(
topic,
{
kind: SpanKind.PRODUCER,
kind: SpanKind.CONSUMER,
attributes: {
[AttributeNames.MESSAGING_SYSTEM]: 'kafka',
[AttributeNames.MESSAGING_DESTINATION]: topic,
Expand Down
Loading

0 comments on commit c2382dd

Please sign in to comment.