-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
The ability to add additional metadata to fetch requests
What problem does this feature solve?
A couple of scenarios I think this would help for
- When using GraphQL endpoints it would be useful to add a datapoint that would help to identify what query is being made as currently the tracing doesn't include the body (query)
- Being able to identify requests by users who have a flag/AB test enabled
Ideal solution
I haven't given it lots of thought but the first idea that came to mind for me was having a reserved header prefix so any fetch requests can add a header and that is added to the tracing logs. Something like
fetch(url, {
headers: {
'x-opentelemetry-keyname': 'value'
}
});Alternatives
π€·ββοΈ I am not familiar enough with this software to know if my suggestion would even work so alternatives are a stretch π
alexmuller, CyntiBinti and rowanmanning
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
π₯ Inbox