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

[repo] Metrics instrumentations - utilize advice API for histogram boundaries #2430

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

Kielek
Copy link
Contributor

@Kielek Kielek commented Dec 18, 2024

Fixes #
Design discussion issue #

Changes

[repo] Metrics instrumentations - utilize advice API for histogram boundaries
Values taken from semantic conventions.
Kafka also adds units and descriptions.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • [ ] Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • [ ] Changes in public API reviewed (if applicable)

@github-actions github-actions bot added comp:instrumentation.aspnet Things related to OpenTelemetry.Instrumentation.AspNet comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.confluentkafka Things related to OpenTelemetry.Instrumentation.ConfluentKafka comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.owin Things related to OpenTelemetry.Instrumentation.Owin comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient labels Dec 18, 2024
@Kielek Kielek marked this pull request as ready for review December 18, 2024 08:33
@Kielek Kielek requested a review from a team as a code owner December 18, 2024 08:33
@@ -2,6 +2,9 @@

## Unreleased

* Histograms produced by this instrumentation package specify explicit bucket boundaries.
Copy link
Member

Choose a reason for hiding this comment

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

I think we could level this up a bit.

  • The http.server.request.duration histogram (measured in seconds) produced by the metrics instrumentation in this package now uses the Advice API to set default explicit buckets following the OpenTelemetry Specification.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, with stable links ffee25f

Copy link
Member

Choose a reason for hiding this comment

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

I approved but I don't know if I love the stable link part 😄 Fine for the semantic conventions. But the link to advice API doc in main repo, I'm hoping to update that if this ever lands: dotnet/docs#43640

Copy link
Contributor

@g7ed6e g7ed6e left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Mikel Blanchard <[email protected]>
Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

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

LGTM

@Kielek Kielek merged commit 31cea68 into open-telemetry:main Dec 19, 2024
73 checks passed
@Kielek Kielek deleted the histogram-boundaries branch December 19, 2024 19:33
Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (71655ce) to head (ffee25f).
Report is 663 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #2430       +/-   ##
==========================================
- Coverage   73.91%       0   -73.92%     
==========================================
  Files         267       0      -267     
  Lines        9615       0     -9615     
==========================================
- Hits         7107       0     -7107     
+ Misses       2508       0     -2508     

see 263 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.aspnet Things related to OpenTelemetry.Instrumentation.AspNet comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore comp:instrumentation.confluentkafka Things related to OpenTelemetry.Instrumentation.ConfluentKafka comp:instrumentation.http Things related to OpenTelemetry.Instrumentation.Http comp:instrumentation.owin Things related to OpenTelemetry.Instrumentation.Owin comp:instrumentation.sqlclient Things related to OpenTelemetry.Instrumentation.SqlClient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants