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

make useOtelForInternalMetrics as beta #9037

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Dec 4, 2023

The metrics are now consistent with the metrics produced by OpenCensus. We should move the featuregate forward.

Note that the OpenTelemetry generated metrics includes grpc client/server metrics (for receivers/exporters that use grpc) and target_info metrics

Fixes #7454

@codeboten
Copy link
Contributor Author

While testing this change I came across a discrepancy in how the otelcol_exporter_sent_spans counter is measured with and without the feature gate enabled. Will leave this in draft until I get to the bottom of it.

@codeboten
Copy link
Contributor Author

This is blocked by #9065

@codeboten codeboten marked this pull request as ready for review December 12, 2023 17:01
@codeboten codeboten requested a review from a team as a code owner December 12, 2023 17:01
@codeboten
Copy link
Contributor Author

No longer blocked, it was decided to move ahead without #9065

@bogdandrutu
Copy link
Member

Please add changelog

Alex Boten added 2 commits December 12, 2023 11:52
The metrics are now consistent with the metrics produced by OpenCensus. We should move the featuregate forward.

Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

🎉

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2d49f09) 91.42% compared to head (42c008c) 91.53%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9037      +/-   ##
==========================================
+ Coverage   91.42%   91.53%   +0.10%     
==========================================
  Files         316      316              
  Lines       17190    17210      +20     
==========================================
+ Hits        15716    15753      +37     
+ Misses       1173     1160      -13     
+ Partials      301      297       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit a158ff3 into open-telemetry:main Dec 12, 2023
32 checks passed
@codeboten codeboten deleted the codeboten/make-otel-default branch December 12, 2023 21:59
@github-actions github-actions bot added this to the next release milestone Dec 12, 2023
sokoide pushed a commit to sokoide/opentelemetry-collector that referenced this pull request Dec 18, 2023
The metrics are now consistent with the metrics produced by OpenCensus.
We should move the featuregate forward.

Note that the OpenTelemetry generated metrics includes grpc
client/server metrics (for receivers/exporters that use grpc) and
`target_info` metrics

Fixes
open-telemetry#7454

---------

Signed-off-by: Alex Boten <[email protected]>
dmitryax pushed a commit that referenced this pull request Jun 28, 2024
…10343)

#### Description
Fixing the bug: the latest version of otel-collector failed to start
with ipv6 metrics endpoint service telemetry.

This problem began to occur after
#9037 with
the feature gate flag enabled was merged. This problem is probably an
implementation omission because the enabled codepath, which was
originally added by
#7871, is
marked as WIP.

You can reproduce the issue with the config and the environment variable
(`MY_POD_IP=::1`).
```yaml
service:
  telemetry:
    logs:
      encoding: json
    metrics:
      address: '[${env:MY_POD_IP}]:8888'
```

#### Link to tracking issue
Fixes
#10011

---------

Co-authored-by: Tyler Helmuth <[email protected]>
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.

Work needed to enable useOtelForInternalMetrics by default
3 participants