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

use LinkedTo rather than ChildOf for PublicEndpoint #272

Merged
merged 3 commits into from
Nov 4, 2019
Merged

use LinkedTo rather than ChildOf for PublicEndpoint #272

merged 3 commits into from
Nov 4, 2019

Conversation

lizthegrey
Copy link
Member

This causes us to no longer emit missing root spans if we do not have the trace associated with the tracing headers we receive on public endpoints.

@lizthegrey
Copy link
Member Author

@freeformz @freeformzSFDC @iredelmeier FYI, and thank you <3

opt = trace.ChildOf(sc)
// If the endpoint is a public endpoint, it should start a new trace
// and incoming remote sctx should be added as a link.
opt = trace.LinkedTo(sc)
} else { // not a private endpoint, so assume child relationship
opt = trace.ChildOf(sc)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On this note, aren't we removing ChildOf? I'm on the fence about this, because we still haven't fully clarified SpanKind. open-telemetry/opentelemetry-specification#337

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In either case we need a way to set the parent relationship, regardless of whether it's precisely specified according to SpanKind or more generic.

I am fine with punting this until we more fully remove ChildOf and just updating in place when we do so.

@lizthegrey
Copy link
Member Author

Exigency: need this code in the repo for OTel workshop tomorrow to behave correctly. It has a maintainer and approver stamp on it, so using governance powers to merge.

@lizthegrey lizthegrey merged commit 9f82c64 into open-telemetry:master Nov 4, 2019
@lizthegrey lizthegrey deleted the lizf.LinkTo branch November 4, 2019 13:03
@lizthegrey lizthegrey restored the lizf.LinkTo branch November 4, 2019 13:03
@lizthegrey lizthegrey deleted the lizf.LinkTo branch November 4, 2019 13:03
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants