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 22, 2023
1 parent 6ee8176 commit 48f8d3a
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 48f8d3a

Please sign in to comment.