From fc28665d090f4426ece597ea44546dbc1d95d665 Mon Sep 17 00:00:00 2001 From: Jamie Danielson Date: Mon, 10 Jul 2023 11:31:57 -0400 Subject: [PATCH] docs(sdk-metrics): add example of exponential histogram metric (#3855) Co-authored-by: Chengzhong Wu Co-authored-by: Marc Pichler --- doc/metrics.md | 8 ++--- examples/otlp-exporter-node/metrics.js | 44 ++++++++++++++++++++++---- experimental/CHANGELOG.md | 4 +++ 3 files changed, 45 insertions(+), 11 deletions(-) diff --git a/doc/metrics.md b/doc/metrics.md index 7162f43638..e2f2b5a147 100644 --- a/doc/metrics.md +++ b/doc/metrics.md @@ -20,7 +20,7 @@ _Metrics API Reference: { requestCounter.add(1, attributes); upDownCounter.add(Math.random() > 0.5 ? 1 : -1, attributes); histogram.record(Math.random(), attributes); + exponentialHistogram.record(Math.random(), attributes); }, 1000); diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 7d22becab6..762a2b9aa6 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to experimental packages in this project will be documented ## Unreleased +### :books: (Refine Doc) + +* docs(sdk-metrics): add example of exponential histogram metric [#3855](https://github.com/open-telemetry/opentelemetry-js/pull/3855) @JamieDanielson + ### :boom: Breaking Change ### :rocket: (Enhancement)