Skip to content

Commit

Permalink
Fix Zipkin spanFormat
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Fang <yuanfang@alauda.io>
  • Loading branch information
fyuan1316 committed Mar 8, 2024
1 parent c2e6235 commit ed0f593
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/collector/app/handler/zipkin_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ func startZipkinReceiver(
}

consumerAdapter := newConsumerDelegate(logger, spanProcessor, tm)
// reset Zipkin spanFormat
consumerAdapter.batchConsumer.spanOptions.SpanFormat = processor.ZipkinSpanFormat

nextConsumer, err := newTraces(consumerAdapter.consume)
if err != nil {
return nil, fmt.Errorf("could not create Zipkin consumer: %w", err)
Expand Down

0 comments on commit ed0f593

Please sign in to comment.