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

chore: otel stable metric API update v1.16.0 / v0.39.0 #72

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

fracasula
Copy link
Collaborator

Description

The new stable metric API has been released, thus this update. My tests highlight no regressions.

Additional changes

I'm removing a mutex optimization done a while back for gRPC which we are not using at the moment due to its instability.
My guess is that it could be related to this issue.

Notion Ticket

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

// WithNamespace configures the Exporter to prefix metric with the given namespace.
// Metadata metrics such as target_info and otel_scope_info are not prefixed since these
// have special behavior based on their name.
func WithNamespace(ns string) Option {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NOTE: I added this even though we are not using it just to avoid having our prometheus exporter drift too much from the original.

@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Patch coverage: 58.06% and project coverage change: -0.09 ⚠️

Comparison is base (1a49424) 78.09% compared to head (f1b7475) 78.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   78.09%   78.00%   -0.09%     
==========================================
  Files          67       67              
  Lines        4816     4815       -1     
==========================================
- Hits         3761     3756       -5     
- Misses        856      861       +5     
+ Partials      199      198       -1     
Impacted Files Coverage Δ
stats/internal/otel/prometheus/config.go 51.72% <0.00%> (-10.78%) ⬇️
stats/stats.go 98.57% <ø> (ø)
stats/internal/otel/prometheus/exporter.go 57.48% <62.50%> (-0.19%) ⬇️
stats/internal/otel/otel.go 78.91% <100.00%> (ø)
stats/otel.go 73.68% <100.00%> (+1.71%) ⬆️
stats/otel_measurement.go 73.80% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@fracasula fracasula merged commit 2fbe8cd into main Jul 3, 2023
8 checks passed
@fracasula fracasula deleted the chore.updateOtel branch July 3, 2023 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants