chore: ignore traces from (*API).workspaceAgentCoordinate after accept (#4178)

This commit is contained in:
Colin Adler
2022-09-23 15:21:44 -05:00
committed by GitHub
parent 4c8be34d81
commit 95aea104c7
2 changed files with 14 additions and 1 deletions

View File

@ -1,10 +1,20 @@
package tracing
import (
"context"
"runtime"
"strings"
"go.opentelemetry.io/otel/trace"
)
var NoopSpan trace.Span
func init() {
tracer := trace.NewNoopTracerProvider().Tracer("")
_, NoopSpan = tracer.Start(context.Background(), "")
}
const TracerName = "coderd"
func FuncName() string {