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

Add JSON encoder to stdoutmetric exporter that ignores timestamps #3223

Closed
2 tasks
MrAlias opened this issue Sep 22, 2022 · 2 comments · Fixed by #3828
Closed
2 tasks

Add JSON encoder to stdoutmetric exporter that ignores timestamps #3223

MrAlias opened this issue Sep 22, 2022 · 2 comments · Fixed by #3828
Assignees
Labels
area:metrics Part of OpenTelemetry Metrics pkg:exporter:stdout Related to the stdout exporter package

Comments

@MrAlias
Copy link
Contributor

MrAlias commented Sep 22, 2022

The current stdoutmetric exporter uses a JSON encoder to print metric data to STDOUT. It can be configured with alternate encoders. For example and demonstration purposes, it is needed to print metric data without timestamp. Otherwise, the produced output will continually change. Therefore, a new JSON encoder needs to be added to the exporter package that ignores these timestamps, likely just printing a zero value for them instead.

  • Add timestamp redacting JSON encoder to the stdoutmetric package
  • Update the example code in the stdoutmetric package to use the SDK directly to output metric data using the new encoder.
@MrAlias MrAlias added area:metrics Part of OpenTelemetry Metrics pkg:exporter:stdout Related to the stdout exporter package labels Sep 22, 2022
@MrAlias MrAlias added this to the Metric SDK: Beta milestone Sep 22, 2022
@MrAlias MrAlias removed this from the Metric SDK: Beta milestone Oct 20, 2022
@fatsheep9146
Copy link
Contributor

Can I take this issue? @MrAlias

@Petrie
Copy link
Contributor

Petrie commented Mar 1, 2023

hi @MrAlias , I would like to work on this issue, please assign it to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:metrics Part of OpenTelemetry Metrics pkg:exporter:stdout Related to the stdout exporter package
Projects
Development

Successfully merging a pull request may close this issue.

3 participants