-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
break(middleware): update dependencies and improve tracing attributes #3621
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
base: main
Are you sure you want to change the base?
Conversation
9d05797
to
76f5064
Compare
@shenqidebaozi @Cluas Can you help take a look? It's mainly about upgrading otel tracing semconv and replacing deprecated attributes. |
semconv.NetPeerIPKey.String("127.0.0.1"), | ||
semconv.NetPeerPortKey.String("8080"), | ||
semconv.NetworkPeerAddressKey.String("127.0.0.1"), | ||
semconv.ServerPortKey.Int(8080), |
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.
Will this result in inconsistent final results, or is it just a change in method name
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.
will result in inconsistent trace attributes, because some attributes have been deprecated in the latest version of OpenTelemetry and stable attributes have been provided, such as net.peer.ip
76f5064
to
41001d1
Compare
…tracing attributes - Updated `github.com/google/uuid` from v1.4.0 to v1.6.0. - Upgraded OpenTelemetry dependencies to v1.29.0. - Updated `github.com/go-logr/logr` from v1.4.1 to v1.4.2. - Updated `golang.org/x/sys` from v0.18.0 to v0.24.0. - Enhanced tracing attributes in `span.go` and `span_test.go` to include client/server context. - Refactored `peerAttr` function to accept an `isClient` parameter for better attribute handling. - Replaced some deprecated semantic conventions.
41001d1
to
31f181d
Compare
/hold |
Upgrading to OpenTelemetry v1.29.0 and replacing deprecated conventions is much needed. The peerAttr refactor with isClient looks good. Curious about any backward compatibility issues and would appreciate more tests if possible. |
Description (what this PR does / why we need it):
Dependency Updates
Tracing Improvements
These changes ensure our application follows the current best practices for distributed tracing and maintains compatibility with the latest OpenTelemetry standards.