Skip to content

Commit

Permalink
chore: use formatted error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Oct 14, 2024
1 parent f82fe77 commit 717072d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autometer/autometer.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func NewMeterProvider(ctx context.Context, options ...Option) (
enc := json.NewEncoder(writer)
exp, err := stdoutmetric.New(stdoutmetric.WithEncoder(enc))
if err != nil {
return nil, nil, errors.Wrapf(err, exporter)
return nil, nil, errors.Wrapf(err, "create %q metric exporter", exporter)
}
return ret(sdkmetric.NewPeriodicReader(exp))
case expNone:
Expand Down
2 changes: 1 addition & 1 deletion autotracer/autotracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func NewTracerProvider(ctx context.Context, options ...Option) (
}
exp, err := stdouttrace.New(stdouttrace.WithWriter(writer))
if err != nil {
return nil, nil, errors.Wrap(err, exporter)
return nil, nil, errors.Wrapf(err, "create %q trace exporter", exporter)
}
return ret(exp)
case expNone:
Expand Down

0 comments on commit 717072d

Please sign in to comment.