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

[wip][chore] migrate away from opencensus over to otel #33664

Closed

Conversation

codeboten
Copy link
Contributor

This migrates the opencensus metrics to opentelemetry via mdatagen. Note that there is functionality to override the metric names in this exporter that isn't supported out of the box w/ mdatagen. This will be configurable via the configuration of metric views in service::telemetry::metrics::views in the future.

One option to get around this in the short term would be to not use mdatagen and just use otel directly.

Closes #33471

Pinging @atoulme as you may have thoughts on how to move this work forward.

This migrates the opencensus metrics to opentelemetry via mdatagen. Note that
there is functionality to override the metric names in this exporter that isn't
supported out of the box w/ mdatagen. This will be configurable via the configuration
of metric views in `service::telemetry::metrics::views` in the future.

One option to get around this in the short term would be to not use mdatagen and
just use otel directly.

Closes open-telemetry#33471

Signed-off-by: Alex Boten <[email protected]>
@atoulme
Copy link
Contributor

atoulme commented Jun 21, 2024

Thanks @codeboten I can try to look at it soon.

@codeboten
Copy link
Contributor Author

Thanks @atoulme, any update on this?

@crobert-1
Copy link
Member

crobert-1 commented Jul 3, 2024

FYI, looks like a lot of checks are failing and from what I can tell they're related to this PR. It would be helpful to fix those before reviewing.

ETA: Is this ready for review, or still a draft?

@codeboten
Copy link
Contributor Author

@crobert-1 i was leaving this in draft until I know which way I should be addressing the shortcomings of this PR (regarding the configuration for the component that currently allows users to rename their emitted metrics)

codeboten added a commit to codeboten/opentelemetry-collector-contrib that referenced this pull request Jul 4, 2024
This is an alternative to open-telemetry#33664, since mdatagen doesn't support changing metric names, this substitutes the opencensus sdk calls with otel directly.

Signed-off-by: Alex Boten <[email protected]>
@codeboten
Copy link
Contributor Author

codeboten commented Jul 5, 2024

As per #33924 (comment), going to close this one in favour of #33924

@codeboten codeboten closed this Jul 5, 2024
codeboten added a commit that referenced this pull request Jul 8, 2024
This is an alternative to
#33664,
since mdatagen doesn't support changing metric names, this substitutes
the opencensus sdk calls with otel directly.

Pinging @atoulme @dmitryax @crobert-1 to guide which of the two
approaches is preferred. This component is the last one blocking the
removal of the opencensus bridge in core.

Closes
#33471
Closes
#29867

~NOTE: tests need to be fixed, but i wanted to propose this alternative
before spending time to fix the tests~

---------

Signed-off-by: Alex Boten <[email protected]>
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.

Migrate from opencensus library: exporter/splunkhec
3 participants