부현수
09/15/2025, 5:04 AMhttp.route
attribute.
Other HTTP-related attributes like http.target
are present, but http.route
is always missing.
Has anyone experienced a similar issue, or is there something additional I need to configure to get http.route
on the root span when using auto-instrumentation with NestJS?
Here is my Instrumentation CR
apiVersion: <http://opentelemetry.io/v1alpha1|opentelemetry.io/v1alpha1>
kind: Instrumentation
metadata:
name: backend-js-instrumentation
namespace: backend
spec:
exporter:
endpoint: <http://alloy.observability.svc.cluster.local:4317>
propagators:
- tracecontext
- baggage
sampler:
type: parentbased_traceidratio
argument: "1.0"
nodejs:
env:
- name: OTEL_INSTRUMENTATION_COMMON_DEFAULT_ENABLED
value: "true"
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: "grpc"
- name: OTEL_LOGS_EXPORTER
value: "otlp"
- name: OTEL_METRICS_EXPORTER
value: "otlp"
- name: OTEL_TRACES_EXPORTER
value: "otlp"
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "<http://alloy.observability.svc.cluster.local:4317>"
Jongha Park
09/15/2025, 5:48 AM부현수
09/15/2025, 5:49 AMJongha Park
09/15/2025, 6:02 AM부현수
09/15/2025, 6:07 AMHien Le
09/16/2025, 5:03 PMcomponent
attribute on my root span, so I'm guessing the root span is not created by the NestJs instrumentation.