OTEL not exporting to external server

Hey team, I've been reading docs and trying different configurations. But I can't seem to get my local OTEL logs and traces on my remote LGTM stack. The project is fairly simple, it's a Deno Fresh (1) setup. With some API endpoints which I want to see the logs for. Using Deno 2.4.1 Environment (not in .env, but actual runtime)
OTEL_DENO=true
OTEL_EXPORTER_OTLP_ENDPOINT=http://172.16.0.7:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_DENO=true
OTEL_EXPORTER_OTLP_ENDPOINT=http://172.16.0.7:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
The LGTM is from the default docker example in the docs. I can reach Grafana on port 3000 just fine. Any clues to what I'm doing wrong?
8 Replies
marvinh.
marvinh.•2mo ago
Are you passing --unstable-otel to Deno?
Maarten Bicknese 🇳🇱
Not after updating to 2.4.1 Let me try, just to be sure
marvinh.
marvinh.•2mo ago
ah right, I was just looking at our docs and it mentioned that. Might be that this page hasn't been updated yet
Maarten Bicknese 🇳🇱
You're all out there developing faster than you can write docs 😄 No change though Would be helpful if I could set the DEBUG variable to something so I get OTEL info in my terminal. Like DEBUG=OTEL:*
marvinh.
marvinh.•2mo ago
There is DENO_LOG=debug which dumps a bunch of internal things
Maarten Bicknese 🇳🇱
Oh, that's good info. Sadly no debugging on OTEL. I've upgraded the Docker image to the latest version. Also did some debugging on the LGTM stack as I started to suspect it might simply not accept any data. But I've succesfully send it a message from CURL
Mark G
Mark G•2mo ago
i've been doing a bit of Deno/OTEL work recently, and discovered this tool, which is quite good to run locally to receive and view OTEL msgs directly from Deno whilst debugging, without the faff of the full scale monitoring apps... https://github.com/ymtdzzz/otel-tui
GitHub
GitHub - ymtdzzz/otel-tui: A terminal OpenTelemetry viewer inspired...
A terminal OpenTelemetry viewer inspired by otel-desktop-viewer - ymtdzzz/otel-tui
Maarten Bicknese 🇳🇱
I’ll give that a try, thanks!

Did you find this page helpful?