Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
stats/opentelemetry: separate out interceptors for tracing and metrics #8063
base: master
Are you sure you want to change the base?
stats/opentelemetry: separate out interceptors for tracing and metrics #8063
Changes from 1 commit
7ddbe46
0486355
53fa9cd
4435b8a
a413555
4e203c3
e9ad552
71804b4
4b3bd26
69df069
770f430
b97a3ca
c89f3c9
3f07e48
5e8a4a5
76e422a
8fa0b03
1f41a49
d74c61d
170eef6
7f5f539
50999a0
68b8966
8b56f0f
ac6080f
ed5506c
be72377
a5ed115
f243b43
efb738f
7b97c65
e8b0180
f70274b
5e607c5
a850532
0f39f8d
2a914e3
05b4278
105efe9
3d78d59
44fce2d
e5f50b7
ffcc0fa
67e5b24
8cf7f15
7949501
ad22a22
dd179fb
3201805
a3915ef
1ff5159
4133dd3
f8e0cac
0b89cf6
42c08a0
5bb48b3
fb8025d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 45 in stats/opentelemetry/client_tracing.go
stats/opentelemetry/client_tracing.go#L43-L45
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.
As above.
Check warning on line 57 in stats/opentelemetry/client_tracing.go
stats/opentelemetry/client_tracing.go#L51-L57
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.
As above.
Check warning on line 75 in stats/opentelemetry/client_tracing.go
stats/opentelemetry/client_tracing.go#L69-L75
Check warning on line 148 in stats/opentelemetry/client_tracing.go
stats/opentelemetry/client_tracing.go#L135-L148
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.
I think Both HandleRPC and TagRPC use getRPCInfo() with logging and nil handling. Consider creating a common function to streamline this logic?
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.
done
Check warning on line 163 in stats/opentelemetry/client_tracing.go
stats/opentelemetry/client_tracing.go#L161-L163
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.
Isn't it possible to have metrics disabled and tracing enabled?
Check warning on line 40 in stats/opentelemetry/server_tracing.go
stats/opentelemetry/server_tracing.go#L38-L40
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.
Add comments here and move the logic. It's possible to make a common function for retrieving getRPCInfo from the context.
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.
make sense, done
Check warning on line 63 in stats/opentelemetry/server_tracing.go
stats/opentelemetry/server_tracing.go#L59-L63
Check warning on line 73 in stats/opentelemetry/server_tracing.go
stats/opentelemetry/server_tracing.go#L65-L73
Check warning on line 79 in stats/opentelemetry/server_tracing.go
stats/opentelemetry/server_tracing.go#L76-L79
Check warning on line 112 in stats/opentelemetry/server_tracing.go
stats/opentelemetry/server_tracing.go#L110-L112