Misleading variable 'operation' #2645
Labels
area: instrumentation
Related to an instrumentation package
enhancement
New feature or request
instrumentation: otelhttp
My understanding is it defines the task that an HTTP handler tends to do in a particular API call.
Example:
But looking at the implementation otel has done. It means
server_name
. In the final metrics, it's displayed ashttp_server_name
Is this the expected behavior? or maybe I'm missing something. Let me know how can endpoint-specific metrics be collected.
Reference:
https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/net/http/otelhttp/handler_example_test.go#L98-L101
https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/net/http/otelhttp/handler.go#L207-L212
https://github.com/open-telemetry/opentelemetry-go/blob/main/semconv/internal/http.go#L209-L219
The text was updated successfully, but these errors were encountered: