From 2eb6f07bff2f3a4e82a35fabbae4f6e0b3ced587 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Wed, 21 Jun 2023 14:54:34 +0200 Subject: [PATCH] chore: remove obsolete config tracer --- driver/config/config.go | 4 ---- driver/factory.go | 1 - 2 files changed, 5 deletions(-) diff --git a/driver/config/config.go b/driver/config/config.go index cc72c2f7512f..49f660d5873c 100644 --- a/driver/config/config.go +++ b/driver/config/config.go @@ -465,10 +465,6 @@ func (p *Config) CORS(ctx context.Context, iface string) (cors.Options, bool) { } } -func (p *Config) SetTracer(ctx context.Context, t *otelx.Tracer) { - p.GetProvider(ctx).SetTracer(ctx, t) -} - func (p *Config) cors(ctx context.Context, prefix string) (cors.Options, bool) { return p.GetProvider(ctx).CORS(prefix, cors.Options{ AllowedMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE"}, diff --git a/driver/factory.go b/driver/factory.go index f059254732ae..e3470d3cffd9 100644 --- a/driver/factory.go +++ b/driver/factory.go @@ -51,6 +51,5 @@ func NewWithoutInit(ctx context.Context, stdOutOrErr io.Writer, sl *servicelocat return nil, err } - c.SetTracer(ctx, r.Tracer(ctx)) return r, nil }