(ctx context.Context)
| 781 | } |
| 782 | |
| 783 | func jaegerTraceID(ctx context.Context) string { |
| 784 | spanContext, ok := getSpanContext(ctx) |
| 785 | if !ok { |
| 786 | return "" |
| 787 | } |
| 788 | |
| 789 | return spanContext.TraceID().String() |
| 790 | } |
| 791 | |
| 792 | func getSpanContext(ctx context.Context) (jaeger.SpanContext, bool) { |
| 793 | span := opentracing.SpanFromContext(ctx) |
no test coverage detected