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)
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
Are you passing
--unstable-otel
to Deno?Not after updating to 2.4.1
Let me try, just to be sure
ah right, I was just looking at our docs and it mentioned that. Might be that this page hasn't been updated yet
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:*
There is
DENO_LOG=debug
which dumps a bunch of internal thingsOh, 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
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
I’ll give that a try, thanks!