@@ -303,12 +303,12 @@ func TestExporter_ExportSpan(t *testing.T) {
303303 // Create Jaeger Exporter
304304 exp , err := NewRawExporter (
305305 withTestCollectorEndpoint (),
306- WithSDK ( & sdktrace. Config {
307- Resource : resource .NewWithAttributes (
306+ WithSDKOptions (
307+ sdktrace . WithResource ( resource .NewWithAttributes (
308308 semconv .ServiceNameKey .String (serviceName ),
309309 attribute .String (tagKey , tagVal ),
310- ),
311- } ),
310+ )) ,
311+ ),
312312 )
313313
314314 assert .NoError (t , err )
@@ -947,17 +947,4 @@ func TestNewExporterPipelineWithOptions(t *testing.T) {
947947 assert .True (t , len (uploadedSpans ) == 1 )
948948 uploadedSpan := uploadedSpans [0 ]
949949 assert .Equal (t , len (uploadedSpan .GetLogs ()), eventCountLimit )
950- assert .Condition (t , func () bool {
951- tagFound := false
952- serviceNameFound := false
953- for _ , tag := range uploadedSpan .GetTags () {
954- if tag .GetKey () == tagKey && tag .GetVStr () == tagVal {
955- tagFound = true
956- }
957- if tag .GetKey () == string (semconv .ServiceNameKey ) && tag .GetVStr () == serviceName {
958- serviceNameFound = true
959- }
960- }
961- return tagFound && serviceNameFound
962- })
963950}
0 commit comments