MCPcopy Index your code
hub / github.com/coder/coder / StartSpan

Function StartSpan

coderd/tracing/httpmw.go:118–120  ·  view source on GitHub ↗

StartSpan calls StartSpanWithName with the name set to the caller's function name.

(ctx context.Context, opts ...trace.SpanStartOption)

Source from the content-addressed store, hash-verified

116// StartSpan calls StartSpanWithName with the name set to the caller's function
117// name.
118func 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

Callers 15

WriteFunction · 0.92
WriteIndentFunction · 0.92
ReadFunction · 0.92
FilterFunction · 0.92
AuthorizeMethod · 0.92
PrepareMethod · 0.92
CompileToSQLMethod · 0.92
CalculateAutostopFunction · 0.92
GetMethod · 0.92
SetMethod · 0.92
WatchWorkspaceMethod · 0.92

Calls 2

StartSpanWithNameFunction · 0.85
FuncNameSkipFunction · 0.85

Tested by

no test coverage detected