Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8eaef37

Browse files
authoredFeb 22, 2020
Merge 3cc3bb9 into 9e1b39c
2 parents 9e1b39c + 3cc3bb9 commit 8eaef37

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/jaegertracing/TracerTest.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ TEST(Tracer, testTracer)
174174
ASSERT_TRUE(static_cast<bool>(span));
175175
ASSERT_EQ(static_cast<opentracing::Tracer*>(tracer.get()), &span->tracer());
176176

177+
{
178+
auto spanRootNoSelfRef = tracer->StartSpan("test-root-noselfref");
179+
ASSERT_TRUE(spanRootNoSelfRef);
180+
auto spanChildNoSelfRef = tracer->StartSpan("test-child-noselfref",
181+
{ opentracing::ChildOf(&spanRootNoSelfRef->context()) });
182+
ASSERT_TRUE(spanChildNoSelfRef);
183+
}
184+
177185
span->SetOperationName("test-set-operation");
178186
span->SetTag("tag-key", "tag-value");
179187
span->SetBaggageItem("test-baggage-item-key", "test baggage item value");

0 commit comments

Comments
 (0)
This repository has been archived.