feat: add option for exporting traces to a provided Honeycomb team (#4816)

This commit is contained in:
Colin Adler
2022-11-01 09:15:41 -05:00
committed by GitHub
parent 21e64943ac
commit 4c5bf42355
7 changed files with 67 additions and 9 deletions
+2 -2
View File
@@ -125,9 +125,9 @@ func Server(vip *viper.Viper, newAPI func(context.Context, *coderd.Options) (*co
shouldCoderTrace = cfg.Telemetry.Trace.Value
}
if cfg.TraceEnable.Value || shouldCoderTrace {
if cfg.Trace.Enable.Value || shouldCoderTrace {
sdkTracerProvider, closeTracing, err := tracing.TracerProvider(ctx, "coderd", tracing.TracerOpts{
Default: cfg.TraceEnable.Value,
Default: cfg.Trace.Enable.Value,
Coder: shouldCoderTrace,
})
if err != nil {