Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Support copying span contexts. #56

Merged
merged 6 commits into from
Aug 27, 2018
Merged

Conversation

rnburn
Copy link
Contributor

@rnburn rnburn commented Feb 20, 2018

Adds support for copying span contexts.

Follow up from https://gitter.im/opentracing/opentracing-cpp?at=5a82810018f388e62697ab54

@rnburn
Copy link
Contributor Author

rnburn commented May 1, 2018

@isaachier - Not a high priority, but could you take a look at this when you get the chance?

@@ -21,12 +21,20 @@ void MockSpanContext::ForeachBaggageItem(
}
}

void MockSpanContext::SetData(SpanContextData& data) {
void MockSpanContext::SetData(SpanContextData& data) const {
Copy link
Contributor

Choose a reason for hiding this comment

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

This name is a bit confusing. Sounds like you are setting the data member named data. Maybe CopyData?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I'll rename it.

@rnburn rnburn merged commit 301ac82 into opentracing:master Aug 27, 2018
isaachier pushed a commit to jaegertracing/jaeger-client-cpp that referenced this pull request Nov 21, 2018
This was added to the opentracing API in
opentracing/opentracing-cpp#56

Signed-off-by: Matt Eastman <[email protected]>
@d4l3k
Copy link

d4l3k commented Sep 13, 2019

@rnburn Do you know when this will make it into a tagged release? It'd be really nice to be able to use this

(sorry for the double ping on GitHub and gitter but wasn't sure how often you'd check them)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants