-
Notifications
You must be signed in to change notification settings - Fork 701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support opentelemetry #346
Conversation
go.mod
Outdated
@@ -63,18 +66,14 @@ require ( | |||
|
|||
require ( | |||
github.com/aws/aws-sdk-go v1.40.45 // indirect | |||
github.com/cosmtrek/air v0.0.0-20220504050646-0c5e73afb027 | |||
github.com/cosmtrek/air v1.29.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.com/cosmtrek/air 这里需要升级到v1.40.1
不然不支持args_bin参数
pkg/xtrace/utils.go
Outdated
@@ -0,0 +1,60 @@ | |||
// Copyright 2020 Douyu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022
pkg/client/rocketmq/consumer.go
Outdated
ctx, span = tracer.Start(ctx, msg.Topic, carrier, trace.WithAttributes(attrs...)) | ||
defer span.End() | ||
span.SetAttributes( | ||
semconv.MessagingDestinationKindKey.String(msg.Topic), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这行代码可以和 semconv.MessagingSystemKey.String("rocketmq") 放在一起
Codecov Report
@@ Coverage Diff @@
## master #346 +/- ##
==========================================
+ Coverage 33.56% 33.93% +0.37%
==========================================
Files 92 88 -4
Lines 6516 6441 -75
==========================================
- Hits 2187 2186 -1
+ Misses 4197 4123 -74
Partials 132 132
Continue to review full report at Codecov.
|
support opentelemetry