mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: ignore traces from (*API).workspaceAgentCoordinate
after accept (#4178)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user