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

[processor/filter] mv from opencensus to otel #30736

Merged
merged 4 commits into from
Jan 24, 2024

Conversation

codeboten
Copy link
Contributor

This moves the telemetry generated by the processor from using opencensus to using otel. Note that the test checks the name of the metric in the format that it is generated using the meter provider, hence the change from processor_filter_datapoints_filtered to processor/filter/datapoints.filtered. When using the prometheus exporter, the output name will be the same as before.

Fixes #30734

@codeboten codeboten requested a review from a team January 23, 2024 18:18
@github-actions github-actions bot added the processor/filter Filter processor label Jan 23, 2024
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.

@codeboten is this a breaking change for users who are using the telemetry.useOtelWithSDKConfigurationForInternalTelemetry feature gate to export metrics using the OTel GO SDK?

@codeboten codeboten marked this pull request as draft January 23, 2024 19:46
@codeboten
Copy link
Contributor Author

Moved back to draft until i fix a missing attribute issue i found while testing manually

@codeboten codeboten marked this pull request as ready for review January 23, 2024 21:58
@codeboten
Copy link
Contributor Author

@TylerHelmuth confirmedthis is not a breaking change. The current metric emitted look like:

 "Name": "processor/filter/spans.filtered",
          "Description": "Number of spans dropped by the filter processor",

Although it's currently not working because of this bug open-telemetry/opentelemetry-collector#9361

Alex Boten added 4 commits January 24, 2024 14:14
This moves the telemetry generated by the processor from using opencensus to using otel. Note that the test checks the name of the metric in the format that it is generated using the meter provider, hence the change from `processor_filter_datapoints_filtered` to `processor/filter/datapoints.filtered`. When using the prometheus exporter, the output name will be the same as before.

Fixes open-telemetry#30734

Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
@codeboten codeboten merged commit 9f6aeb6 into open-telemetry:main Jan 24, 2024
78 checks passed
@codeboten codeboten deleted the codeboten/rm-census-filter branch January 24, 2024 22:36
@github-actions github-actions bot added this to the next release milestone Jan 24, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Feb 1, 2024
This moves the telemetry generated by the processor from using
opencensus to using otel. Note that the test checks the name of the
metric in the format that it is generated using the meter provider,
hence the change from `processor_filter_datapoints_filtered` to
`processor/filter/datapoints.filtered`. When using the prometheus
exporter, the output name will be the same as before.

Fixes open-telemetry#30734

---------

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
Labels
processor/filter Filter processor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[processor/filterprocessor] Migrate from opencensus library
4 participants