Skip to content
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

otelgrpc: add custom attributes to the stats handler #5133

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

inigohu
Copy link

@inigohu inigohu commented Feb 19, 2024

Fixes #3894

@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch 2 times, most recently from ce0e777 to aac80ca Compare February 20, 2024 10:52
@inigohu inigohu marked this pull request as ready for review February 20, 2024 10:54
@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch 2 times, most recently from eacf0ac to d594e0c Compare May 9, 2024 15:52
@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch from d594e0c to 99ea5ca Compare June 3, 2024 10:57
@inigohu
Copy link
Author

inigohu commented Jun 3, 2024

Friendly ping @dashpole @hanyuancheung

@dashpole
Copy link
Contributor

dashpole commented Jun 3, 2024

This looks like it does a lot more than just add a labeler. Would you mind doing general refactoring in its own PR?

@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch 2 times, most recently from e4f7d19 to c82b0f0 Compare June 4, 2024 09:41
@inigohu
Copy link
Author

inigohu commented Jun 4, 2024

This looks like it does a lot more than just add a labeler. Would you mind doing general refactoring in its own PR?

Sure. I have simplified this PR by adding only the labeler.

Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add tests?

@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch 2 times, most recently from 26b7c36 to 3d28af9 Compare June 5, 2024 11:07
Copy link
Contributor

@dashpole dashpole left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you test the span from the stats handler as well?

Copy link

codecov bot commented Jun 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.9%. Comparing base (0430e80) to head (3d28af9).
Report is 1 commits behind head on main.

Current head 3d28af9 differs from pull request most recent head a6b8d67

Please upload reports for the commit a6b8d67 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5133   +/-   ##
=====================================
  Coverage   63.8%   63.9%           
=====================================
  Files        194     194           
  Lines      12236   12248   +12     
=====================================
+ Hits        7817    7830   +13     
+ Misses      4197    4196    -1     
  Partials     222     222           
Files Coverage Δ
...n/google.golang.org/grpc/otelgrpc/stats_handler.go 100.0% <100.0%> (ø)

... and 6 files with indirect coverage changes

@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch from 3d28af9 to 2d79ff4 Compare June 6, 2024 22:45
@inigohu inigohu force-pushed the feature/otelgrpc-custom-attr branch from 2d79ff4 to a6b8d67 Compare June 6, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

otelgrpc: Allow adding custom attributes to otelgrpc metrics
2 participants