samples-python icon indicating copy to clipboard operation
samples-python copied to clipboard

[Bug] the open telemetry example doesn't export metrics

Open kinfaikan opened this issue 1 year ago • 1 comments

What are you really trying to do?

I want to export metrics to datadog.

Describe the bug

I don't see any metrics in any terminals.

Minimal Reproduction

follow the steps in the readme https://github.com/temporalio/samples-python/tree/main/open_telemetry

Environment/Versions

  • OS and processor: M2 Mac
  • Temporal Version: 1.22.0 and/or SDK version: 1.6.0
  • Are you using Docker or Kubernetes or building Temporal from source? docker

Additional context

kinfaikan avatar Aug 13 '24 23:08 kinfaikan

It looks like the Jaeger all-in-one container no longer dumps OTel metrics as it once did. We will find another solution to show the metrics here (probably something like https://opentelemetry.io/docs/demo/docker-deployment/). Thanks for the report!

cretz avatar Aug 14 '24 13:08 cretz

Thanks @kinfaikan. The sample now uses an OTEL collector and UI that accept and display the metrics, in addition to the tracing data.

dandavison avatar Jan 25 '25 13:01 dandavison