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

Added json example for exponential histogram #580

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

swamisriman
Copy link
Contributor

@swamisriman swamisriman commented Aug 31, 2024

Resolves #544

The exponential histogram datapoint in this commit, when sent to otel col, produces this log

Metric #0
Descriptor:
     -> Name: my.exponential.histogram
     -> Description: I am an Exponential Histogram
     -> Unit: 1
     -> DataType: ExponentialHistogram
     -> AggregationTemporality: Delta
ExponentialHistogramDataPoints #0
Data point attributes:
     -> my.exponential.histogram.attr: Str(some value)
StartTimestamp: 2018-12-13 14:51:00.3 +0000 UTC
Timestamp: 2018-12-13 14:51:00.3 +0000 UTC
Count: 3
Sum: 10.000000
Min: 0.000000
Max: 5.000000
Bucket [0, 0], Count: 1
Bucket (2.000000, 4.000000], Count: 0
Bucket (4.000000, 8.000000], Count: 2

The actual datapoint values are {0, 5, 5}

@swamisriman swamisriman requested a review from a team August 31, 2024 10:02
Copy link

linux-foundation-easycla bot commented Aug 31, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: swamisriman / name: Sriman Swami (826dd49)

@swamisriman
Copy link
Contributor Author

Hi @reyang
Can you please review?

@reyang reyang merged commit c269bbe into open-telemetry:main Sep 13, 2024
15 checks passed
@reyang
Copy link
Member

reyang commented Sep 13, 2024

Hi @reyang Can you please review?

Done, thanks for your contribution @swamisriman!

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.

Example not available for Exponential Histogram metric type
3 participants