Need some help with tracing. The router is not generating any trace id, and i am not able to publish traces to jaeger either. #2222
-
Hi all, really need some help with tracing. I am moving from federation to router, and in federation Instrumentation took care of generating trace ids and propagating them. But in the router, I am not able to see any trace ids or publish traces to jaeger. Here's my config supergraph:
listen: 0.0.0.0:4006
path: /graphql
introspection: true
csrf:
unsafe_disabled: true
sandbox:
enabled: true
homepage:
enabled: false
cors:
match_origins:
- ".*"
allow_credentials: true
headers:
all:
request:
- propagate:
matching: .*
include_subgraph_errors:
all: true # Propagate errors from all subraphs
traffic_shaping:
deduplicate_variables: true
router:
timeout: 180s
all:
deduplicate_query: true
timeout: 180s
plugins:
ameyam.logger:
ameyam.authentication:
telemetry:
tracing:
propagation:
trace_context: true
trace_config:
service_name: ameyam_graphql_gateway
sampler: always_on
otlp:
endpoint: default
jaeger:
collector:
endpoint: http://localhost:14268
I have I also inspected the headers that were being sent to my subgraphs, and I couldn't see open telemetry related headers anywhere. This is a big blocker for me to shift to router. We use trace ID to associate request in different subgraphs together (our subgraphs can read trace id from headers and append them to logs). Am I doing something wrong here? Any help is really appreciated! Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
I have tried inspecting trace ID using
But the trace is None :( |
Beta Was this translation helpful? Give feedback.
I have tried inspecting trace ID using
But the trace is None :(