-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add contextHeaderBehavior option #900
Conversation
src/config.ts
Outdated
/** | ||
* Specifies how to use incoming trace context headers. The following options | ||
* are available: | ||
* 'default' -- Trace context headers will be respected for incoming |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
* requests that support it. A new trace will be created for requests | ||
* without trace context headers. | ||
* 'require' -- Same as default, but traces won't be created for requests | ||
* without trace context headers. This should not be set for end user-facing |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
src/config.ts
Outdated
* services, as this header is usually set by other traced services rather | ||
* than by users. | ||
* 'ignore' -- Always ignore trace context headers, so a new trace with a | ||
* unique ID will be created for every request. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Fixes #879, but also rolls the "experimental"
ignoreContextHeader
option into a newcontextHeaderOptions
.