From 93f15d614523268e8639d6714e701b49358837d9 Mon Sep 17 00:00:00 2001 From: Tom Tan Date: Wed, 20 Oct 2021 00:39:23 -0700 Subject: [PATCH] Add test for SetAttribute in ETW exporter --- exporters/etw/test/etw_tracer_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exporters/etw/test/etw_tracer_test.cc b/exporters/etw/test/etw_tracer_test.cc index 400099bbe7..1c9c1f09be 100644 --- a/exporters/etw/test/etw_tracer_test.cc +++ b/exporters/etw/test/etw_tracer_test.cc @@ -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 =