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

[telemetry] mark useOtelForInternalMetrics stable #9102

Merged
merged 7 commits into from Jan 16, 2024

Conversation

codeboten
Copy link
Contributor

@codeboten codeboten commented Dec 13, 2023

This marks the flag as stable. Leaving this as a draft until v0.92.0 is released.

Closes #8962
Fixes #816

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (3a16592) 90.31% compared to head (6ad48b3) 90.33%.

Files Patch % Lines
service/service.go 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9102      +/-   ##
==========================================
+ Coverage   90.31%   90.33%   +0.02%     
==========================================
  Files         341      340       -1     
  Lines       18308    17923     -385     
==========================================
- Hits        16535    16191     -344     
+ Misses       1437     1409      -28     
+ Partials      336      323      -13     

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

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Dec 28, 2023
@codeboten codeboten removed the Stale label Jan 4, 2024
@codeboten codeboten marked this pull request as ready for review January 10, 2024 19:37
@codeboten codeboten requested a review from a team as a code owner January 10, 2024 19:37
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.

It's beautiful. What impact does this have on components in Contrib, like tailsamplingprocessor or filterprocessor, that use OC?

@atoulme
Copy link
Contributor

atoulme commented Jan 11, 2024

@codeboten
Copy link
Contributor Author

Should have no impact, the opencensus bridge is still in place to receive OC metrics

@codeboten
Copy link
Contributor Author

@TylerHelmuth @atoulme the global OC registry is still usable by components:

metricproducer.GlobalManager().AddProducer(tel.ocRegistry)

@splunkericl
Copy link
Contributor

Can this PR wait for a couple releases? Our team relies on OpenCensus reporting and the metrics generated. Some metrics in queue_sender like queue size and queue capacity are important for our business.

We only notice the OpenCensus metrics is being removed because of the feature gate change in V0.92. I can imagine there are other users in the same boat. Would it make sense to wait for a couple releases so users have time to migrate off OpenCensus metrics?

@codeboten
Copy link
Contributor Author

Some metrics in queue_sender like queue size and queue capacity are important for our business.

Thanks for the feedback @splunkericl! Can you specify which metrics? Queue size and capacity were added to the opentelemetry generated metrics some time ago. See #8716

@codeboten
Copy link
Contributor Author

Our team relies on OpenCensus reporting and the metrics generated

@splunkericl just more follow up on this, any components that's using OpenCensus to generate metrics can continue to do so even with this change. The telemetry configuration for the Collector still supports the OpenCensus bridge.

@splunkericl
Copy link
Contributor

@codeboten ah I see. So the application generating open census metrics will see them in the prometheus server spawned? If that is the case that should be fine.

Our application has been scraping against the prometheus metrics endpoint and use these metrics for business logics. As long as the workflow is still the same it should be fine and gives us more time to migrate to start using OTEL metrics framework.

@codeboten
Copy link
Contributor Author

@splunkericl right. The metrics that are being exposed via prometheus today will continue to be exposed in the same manner, regardless of how those metrics are being recorded inside the collector itself.

You can see a sample output of the metrics before and after the flag is used here: #9029 (comment)

Any component (in core or in contrib) that is still recording its metrics via opencensus will continue to see its metrics exported via the collector's internal prometheus endpoint. Note there is an open issue to migrate components away in the future though: open-telemetry/opentelemetry-collector-contrib#29867. This would allow us to remove a dependency on the opencensus library.

@splunkericl
Copy link
Contributor

Got it. Thanks for the explanations!

Alex Boten added 5 commits January 16, 2024 14:41
This marks the flag as stable. Leaving this as a draft until v0.92.0 is released.

Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
Alex Boten added 2 commits January 16, 2024 14:42
Signed-off-by: Alex Boten <aboten@lightstep.com>
Signed-off-by: Alex Boten <aboten@lightstep.com>
@codeboten codeboten merged commit 8344135 into open-telemetry:main Jan 16, 2024
32 checks passed
@codeboten codeboten deleted the codeboten/mark-stable-otel branch January 16, 2024 23:38
@github-actions github-actions bot added this to the next release milestone Jan 16, 2024
codeboten pushed a commit that referenced this pull request Jan 30, 2024
Follows
#9102

---------

Signed-off-by: Alex Boten <aboten@lightstep.com>
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.

recording metrics with OTel SDK doesn't produce metrics Migrate collector's metrics from OC to OpenTelemetry
6 participants