send otel data to grafana cloud endpoint directly

If I follow the getting started guide, it tells me to use
OTEL_TRACES_EXPORTER="otlp" \
OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp-gateway-prod-eu-west-2.grafana.net/otlp" \
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic <key redacted>"\
OTEL_RESOURCE_ATTRIBUTES="service.name=my-app,service.namespace=my-application-group,deployment.environment=production" \
OTEL_NODE_RESOURCE_DETECTORS="env,host,os" \
NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register" \
node <my-app>.js
OTEL_TRACES_EXPORTER="otlp" \
OTEL_EXPORTER_OTLP_ENDPOINT="https://otlp-gateway-prod-eu-west-2.grafana.net/otlp" \
OTEL_EXPORTER_OTLP_HEADERS="Authorization=Basic <key redacted>"\
OTEL_RESOURCE_ATTRIBUTES="service.name=my-app,service.namespace=my-application-group,deployment.environment=production" \
OTEL_NODE_RESOURCE_DETECTORS="env,host,os" \
NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register" \
node <my-app>.js
I just add OTEL_DENO=true and switch node to deno, But still I can't see the traces If I self host grafana server it just works with OTEL_DENO=true
3 Replies
Mrcool 🇵🇸
Is the connection with OTEL debug-able ? also node does work with the cloud endpoint, if I monitor it Isee it makes a sucessful post request to otlp/traces
Mrcool 🇵🇸
but deno makes no requests at all Actually even when deno works with the self hosted grafana, the request doesn't show up in the http monitor, so this is probably not relevant and is just a limitation of the monitor I'm using

Did you find this page helpful?