Skip to content
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

Merged
merged 3 commits into from
Nov 2, 2018
Merged

Conversation

kjin
Copy link
Contributor

@kjin kjin commented Oct 31, 2018

Fixes #879, but also rolls the "experimental" ignoreContextHeader option into a new contextHeaderOptions.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 31, 2018
@kjin kjin changed the title [dnr] feat: add contextHeaderBehavior option feat: add contextHeaderBehavior option Oct 31, 2018
@kjin kjin requested a review from a team October 31, 2018 22:07
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.

* 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.

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.

@kjin kjin merged commit 199cb42 into googleapis:master Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants