Skip to content

[cartservice] Record seconds instead of ticks for custom metrics#2135

Merged
puckpuck merged 7 commits intoopen-telemetry:mainfrom
matt-hensley:cartservice-metric-unit-seconds
Apr 20, 2025
Merged

[cartservice] Record seconds instead of ticks for custom metrics#2135
puckpuck merged 7 commits intoopen-telemetry:mainfrom
matt-hensley:cartservice-metric-unit-seconds

Conversation

@matt-hensley
Copy link
Contributor

@matt-hensley matt-hensley commented Mar 27, 2025

Changes

Change custom app metrics from ticks to seconds and adds units for metrics.

Per the .NET docs, ElapsedTicks:

... represents the number of elapsed ticks in the underlying timer mechanism. A tick is the smallest unit of time that the Stopwatch timer can measure. Use the Frequency field to convert the ElapsedTicks value into a number of seconds.

Uses same bucket boundaries as http.server.request.duration and messaging.client.operation.duration - happy to change this, seemed like a reasonable default.

Merge Requirements

For new features contributions, please make sure you have completed the following
essential items:

  • CHANGELOG.md updated to document new feature additions
  • Appropriate documentation updates in the docs
  • Appropriate Helm chart updates in the helm-charts

Maintainers will not merge until the above have been completed. If you're unsure
which docs need to be changed ping the
@open-telemetry/demo-approvers.

@github-actions
Copy link

github-actions bot commented Apr 4, 2025

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

@matt-hensley matt-hensley marked this pull request as ready for review April 9, 2025 21:02
@puckpuck puckpuck requested a review from a team as a code owner April 17, 2025 03:09
@puckpuck puckpuck merged commit 6676676 into open-telemetry:main Apr 20, 2025
11 checks passed
cloud-hb pushed a commit to cloud-hb/opentelemetry-demo that referenced this pull request Nov 17, 2025
…n-telemetry#2135)

* add unit and record seconds instead of ticks

* CHANGELOG

* new bucket boundaries

---------

Co-authored-by: Pierre Tessier <pierre@pierretessier.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.

5 participants