Skip to content

Commit

Permalink
chore: remove obsolete config tracer
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Jun 21, 2023
1 parent d9ed5c0 commit 9bf1c4c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions driver/config/config.go
Expand Up @@ -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"},
Expand Down
1 change: 0 additions & 1 deletion driver/factory.go
Expand Up @@ -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
}

0 comments on commit 9bf1c4c

Please sign in to comment.