Reporting metrics via Node SDK? #2978
triblondon
started this conversation in
General
Replies: 1 comment
-
We didn't document much of the metrics part for the node-sdk because it wasn't stable yet (and still isn't but we are near), If you really want to use them, i would advise to checkout what's missing from the RC release: https://github.com/open-telemetry/opentelemetry-js/projects/16?query=is%3Aopen+sort%3Aupdated-desc |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a working oTel tracing setup for a Node app which looks like this:
I noticed that the SDK has a
metricExporter
property on the SDK constructor. However, the example code to use OTel for metrics in NodeJS doesn't use the SDK at all:Instead (as shown above) the metrics exporter is given to the
MeterProvider
. What is the current best practice here, and what the most future compatible way of doing this?(
[email protected]
,[email protected]
)Beta Was this translation helpful? Give feedback.
All reactions