Comments (9)
The router would only originate a trace Id when it doesn't get one from the headers. Do you have tracing propagation setup or any exporters enabled? Can you share more of your configuration?
from router.
Put another way, the thing you're asking for should definitely already work. The router is meant to play nice with existing distributed tracing headers, including passing them to subgraphs as fit.
@BrynCooke Anything to add here?
from router.
The router would only originate a trace Id when it doesn't get one from the headers. Do you have tracing propagation setup or any exporters enabled? Can you share more of your configuration?
I tried it and left comment here. #4823 (comment)
datadog:
enabled: true
enable_span_mapping: true
batch_processor:
...
endpoint: "xx"
propagation:
datadog: true
request:
header_name: trace-id
I think it trimmed off the . Our downstream received value like -
from UUIDtraceid=28e9fb547e465690f288cdb96194d119
which failed their UUID validation.
Update: i'll take another look tmr to observe the change.
from router.
I still get a different trace_id than trace-id header used above. The log is from subgraph_service
.
And, subgraph would receive this error(invalid UUID) from trace-id header. So somewhere overwrite trace-id header.
Also the following trace ids are mutual exclusive in router span attrs.
router:
attributes:
trace_id: true
trace-id:
request_header: trace-id
from router.
In debug mode, I get following error
"message": "cannot generate custom trace_id: invalid digit found in string",
"target": "apollo_router::plugins::telemetry",
looks like trace_id is recreated because it couldn't parse UUID header.
from router.
Related Issues (20)
- Add configuration option for `events.subgraph.request|response|error` to target only specified subgraphs
- propagate tracing headers to coprocessor calls HOT 1
- Reducing the configuration schema file
- Introspection query doesn't return latest schema changes when query plan is being persisted on Redis HOT 6
- `request.body.operaton_name` is empty even `query` contain named operation
- Send response errors only to coprocessor
- Unable to remove the Apollo-Expose-Query-Plan with header propagation remove regex HOT 1
- telemetry: add selectors for errors to be able to match on a specific error
- Remove `experimental_when_header` once advanced telemetry features are part of a release
- Add support for response status code in rhai
- Allow `print` or `log_error` to log JSON objects HOT 1
- Have an option to enable TCP connection details in tracing. HOT 2
- Conditional apply safelisting with operation limits
- Propostal: Injection of state into plugin init
- docs: broken link for "tech notes" HOT 3
- Rust v1.78.0 router-bridge startup panic HOT 1
- trace_id check to accepts dashes as UUID format HOT 6
- distributed Query Plan cache may be poisoned by experimental query plan features HOT 2
- Proposal: Remove apollo-router-scaffold
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router.