Skip to content

Commit

Permalink
Add test for SetAttribute in ETW exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Oct 20, 2021
1 parent ed834df commit 93f15d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exporters/etw/test/etw_tracer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ TEST(ETWTracer, TracerCheck)
auto innerSpan = tracer->StartSpan("MySpanL3", attribs);
auto innerScope = tracer->WithActiveSpan(innerSpan);

// Add span attribute
EXPECT_NO_THROW(outerSpan->SetAttribute("AttrName1", "AttrValue1"));

// Add first event
std::string eventName1 = "MyEvent1";
Properties event1 =
Expand Down

0 comments on commit 93f15d6

Please sign in to comment.