Fastify auto instrumentation metrics missing http url/route #2058
Labels
bug
Something isn't working
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What version of OpenTelemetry are you using?
What version of Node are you using?
20.11.1
What did you do?
I've attempted to instrument otel using the autoinstrumentation in a Fastify server:
What did you expect to see?
I am using the grafana-agent to collect the otel data and emit it to Grafana Cloud. This integration seems to be mostly working but I expected more metrics. I can see traces + logs, but the metrics are all grouped together by status code and method, i.e.
GET 200
. These are the only metrics:Within those metrics the only labels are:
Which results in:
{__name__="http_server_duration_milliseconds_sum", http_flavor="1.1", http_method="GET", http_scheme="http", http_status_code="200", job="server", net_host_name="localhost", net_host_port="8080"}
There is no field to pivot by url or route.
What did you see instead?
I would have expected to see metrics by http_route so I can see how many requests per route, per status. I thought it might be related to #1569 but maybe I've misunderstood what comes out of the box with auto-instrumentation.
If I need to do some extra for my configuration to see typical RED metrics (Rate, Errors, Duration) per URL endpoint can anyone point me in the right direction. Preferably using a middleware or similar so I don't need to manually wire up each endpoint.
The text was updated successfully, but these errors were encountered: