cap-js / telemetry

CDS plugin providing observability features, incl. automatic OpenTelemetry instrumentation.
https://cap.cloud.sap/docs
Apache License 2.0
8 stars 6 forks source link

Incorrect host metrics printed to the console #222

Closed prophet1906 closed 2 weeks ago

prophet1906 commented 1 month ago

I get undefined in the console host metrics instead of system and user. Here is an example:

[telemetry] - host metrics:
  Process Cpu time in seconds: { undefined: 0.540655 }
  Process Cpu usage time 0-1: { undefined: 0.000914005466848895 }
  Process Memory usage in bytes: 332152832
sjvans commented 2 weeks ago

hi @prophet1906

thanks for reporting. looks like there was a change in @opentelemetry/host-metrics... we'll adjust.

best, sebastian

sjvans commented 2 weeks ago

cf. https://github.com/open-telemetry/opentelemetry-js-contrib/pull/2240