StartSpan calls StartSpanWithName with the name set to the caller's function name.
(ctx context.Context, opts ...trace.SpanStartOption)
| 116 | // StartSpan calls StartSpanWithName with the name set to the caller's function |
| 117 | // name. |
| 118 | func StartSpan(ctx context.Context, opts ...trace.SpanStartOption) (context.Context, trace.Span) { |
| 119 | return StartSpanWithName(ctx, FuncNameSkip(1), opts...) |
| 120 | } |
| 121 | |
| 122 | // StartSpanWithName starts a new span with the given name from the context. If |
| 123 | // a tracer name was set on the context (or one of its parents), it will be used |
no test coverage detected