File tree Expand file tree Collapse file tree
google-cloud-clients/google-cloud-core-http/src/test/java/com/google/cloud/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535import io .opencensus .trace .TraceId ;
3636import io .opencensus .trace .TraceOptions ;
3737import io .opencensus .trace .Tracer ;
38+ import io .opencensus .trace .Tracestate ;
3839import io .opencensus .trace .Tracing ;
3940import io .opencensus .trace .propagation .TextFormat ;
4041import java .io .IOException ;
@@ -116,7 +117,8 @@ public void censusHttpExecuteInterceptorShouldInjectHeader() throws IOException
116117 SpanContext .create (
117118 TraceId .generateRandomId (random ),
118119 SpanId .generateRandomId (random ),
119- TraceOptions .DEFAULT );
120+ TraceOptions .DEFAULT ,
121+ Tracestate .builder ().build ());
120122 Span mockSpan =
121123 createMockBuilder (Span .class )
122124 .withConstructor (SpanContext .class , EnumSet .class )
You can’t perform that action at this time.
0 commit comments