aws-observability / aws-otel-js

AWS Distro for OpenTelemetry JavaScript SDK
https://aws-otel.github.io/
Apache License 2.0
36 stars 22 forks source link

Sample App Not Emitting Metrics #62

Closed spirrello closed 3 years ago

spirrello commented 3 years ago

Hi,

I followed the sample app instructions however I don't see any metrics showing up in X-Ray.  What is interesting is that the sample app in the Go repo works fine and I can see data showing up in X-ray.

Node app:

https://github.com/aws-observability/aws-otel-js/tree/main/sample-apps

Go app:

https://github.com/aws-observability/aws-otel-go

spirrello commented 3 years ago

I found the problem.  I had to export this environment variable.  


export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317"