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

Method startTrace

provisionerd/runner/runner.go:1149–1154  ·  view source on GitHub ↗
(ctx context.Context, name string, opts ...trace.SpanStartOption)

Source from the content-addressed store, hash-verified

1147}
1148
1149func (r *Runner) startTrace(ctx context.Context, name string, opts ...trace.SpanStartOption) (context.Context, trace.Span) {
1150 return r.tracer.Start(ctx, name, append(opts, trace.WithAttributes(
1151 semconv.ServiceNameKey.String("coderd.provisionerd"),
1152 attribute.String("job_id", r.job.JobId),
1153 ))...)
1154}
1155
1156// queueLog adds a log to the buffer and debounces a timer
1157// if one exists to flush the logs. It stores a maximum of

Callers 14

initMethod · 0.95
RunMethod · 0.95
sendHeartbeatMethod · 0.95
updateMethod · 0.95
doCleanFinishMethod · 0.95
doMethod · 0.95
heartbeatRoutineMethod · 0.95
runTemplateImportMethod · 0.95
runTemplateDryRunMethod · 0.95
runWorkspaceBuildMethod · 0.95

Calls 2

StartMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected