File tree 1 file changed +2
-2
lines changed
plugin/storage/cassandra/spanstore
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ func (s *SpanReader) queryByTagsAndLogs(ctx context.Context, tq *spanstore.Trace
291
291
292
292
results := make ([]dbmodel.UniqueTraceIDs , 0 , len (tq .Tags ))
293
293
for k , v := range tq .Tags {
294
- childSpan := opentracing .StartSpan ( "queryByTag" )
294
+ childSpan , _ := opentracing .StartSpanFromContext ( ctx , "queryByTag" )
295
295
childSpan .LogFields (otlog .String ("tag.key" , k ), otlog .String ("tag.value" , v ))
296
296
query := s .session .Query (
297
297
queryByTag ,
@@ -330,7 +330,7 @@ func (s *SpanReader) queryByDuration(ctx context.Context, traceQuery *spanstore.
330
330
endTimeByHour := traceQuery .StartTimeMax .Round (durationBucketSize )
331
331
332
332
for timeBucket := endTimeByHour ; timeBucket .After (startTimeByHour ) || timeBucket .Equal (startTimeByHour ); timeBucket = timeBucket .Add (- 1 * durationBucketSize ) {
333
- childSpan := opentracing .StartSpan ( "queryForTimeBucket" )
333
+ childSpan , _ := opentracing .StartSpanFromContext ( ctx , "queryForTimeBucket" )
334
334
childSpan .LogFields (otlog .String ("timeBucket" , timeBucket .String ()))
335
335
query := s .session .Query (
336
336
queryByDuration ,
You can’t perform that action at this time.
0 commit comments