-
Notifications
You must be signed in to change notification settings - Fork 126
An extension of enum opentracing::SpanReferenceType, for a new Span. #206
An extension of enum opentracing::SpanReferenceType, for a new Span. #206
Conversation
Only to copy traceID and (for non-root spans) spanID, because spanID for root spans == traceID.low() Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 89 completed (commit 017fb2314e by @) |
✅ Build jaeger-client-cpp 90 completed (commit 5c2ea4fea8 by @) |
I would prefer to stick with the same name FWIW, it's not a requirement that |
…lang implementations of Jaeger client 2) SpanId is always taken from the SelfRef context Signed-off-by: Oleksandr Bukaiev <[email protected]>
…alizer_list) is explicit Signed-off-by: Oleksandr Bukaiev <[email protected]>
❌ Build jaeger-client-cpp 91 failed (commit be62396d5a by @Alek86) |
❌ Build jaeger-client-cpp 92 failed (commit a54cfd8498 by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 93 completed (commit 405ab3917e by @Alek86) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a section to README, similar to Go client.
…ly reference to enforce this rule Signed-off-by: Oleksandr Bukaiev <[email protected]>
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 94 completed (commit 42e5fe3877 by @Alek86) |
✅ Build jaeger-client-cpp 95 completed (commit 20a26c413e by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 96 completed (commit 7006a29004 by @Alek86) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdouaihy PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a Unit Test is missing to illustrate the usage and to make sure that the behavior is the desired one.
Signed-off-by: Oleksandr Bukaiev <[email protected]>
❌ Build jaeger-client-cpp 97 failed (commit 4228e083e0 by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 99 completed (commit 87741a8404 by @Alek86) |
✅ Build jaeger-client-cpp 107 completed (commit c060282a18 by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 108 completed (commit dad3412cb6 by @Alek86) |
✅ Build jaeger-client-cpp 109 completed (commit 34e74027f8 by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 110 completed (commit 7cc37db36d by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 112 completed (commit 464e0f9c1b by @Alek86) |
Signed-off-by: Oleksandr Bukaiev <[email protected]>
✅ Build jaeger-client-cpp 113 completed (commit c49f49314a by @Alek86) |
…aegertracing#206) * An extension of enum opentracing::SpanReferenceType, for a new Span. Only to copy traceID and (for non-root spans) spanID, because spanID for root spans == traceID.low() Signed-off-by: Oleksandr Bukaiev <[email protected]> * 1) Renamed useTheseIDs to SelfRef, for consistency between different lang implementations of Jaeger client 2) SpanId is always taken from the SelfRef context Signed-off-by: Oleksandr Bukaiev <[email protected]> * Seems like on some compilers jaegertracing::SpanContext::StrMap(initializer_list) is explicit Signed-off-by: Oleksandr Bukaiev <[email protected]> * Temporarily commented out the new unit test case body Signed-off-by: Oleksandr Bukaiev <[email protected]> * SelfRef only used for creating root spans and can be passed as the only reference to enforce this rule Signed-off-by: Oleksandr Bukaiev <[email protected]> * Apparently std::exception ctor with a const char* is not standard Signed-off-by: Oleksandr Bukaiev <[email protected]> * Updates in README and code comments as per reviewer's request Signed-off-by: Oleksandr Bukaiev <[email protected]> * Added a testTracer subtest with no selfref to check the github CI result Signed-off-by: Oleksandr Bukaiev <[email protected]> * Removed test changes Signed-off-by: Oleksandr Bukaiev <[email protected]> * Added 2 unittests - a simple span child and a simple self ref Signed-off-by: Oleksandr Bukaiev <[email protected]> * Added child span to selfref unittest, small changes in new tests Signed-off-by: Oleksandr Bukaiev <[email protected]> * Show better log if sef ref is used with other references Signed-off-by: Oleksandr Bukaiev <[email protected]> * Change in error log if selfref is used with another ref Signed-off-by: Oleksandr Bukaiev <[email protected]>
The PR is the result of this discussion: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/opentracing/92uhSCO-Tu8/D83rq-j4GQAJ
Basically, I need a way to force a traceId from user's code. Didn't see such way, had to write some dirty code in my copy of jaeger-client-cpp code.
Yuri Shkuro suggested to add a new jaeger specific reference type. He called it SELF, I decided to give a more specific name because of limitations (see below).
It is a bit similar to GO implementation (jaegertracing/jaeger-client-go#397) but I had some limitations: