Skip to content

Commit 8249502

Browse files
costelagreywolve
andcommitted
fix: report correct option in error
Co-authored-by: Oliver Powell <[email protected]>
1 parent 8028c85 commit 8249502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func NewClient(options ClientOptions) (*Client, error) {
309309
options.Instrumenter = "sentry"
310310
case "sentry", "otel": // noop
311311
default:
312-
return nil, fmt.Errorf("invalid value for TracesInstrumenter (supported are 'sentry' and 'otel'): %q", options.Instrumenter)
312+
return nil, fmt.Errorf("invalid value for Instrumenter (supported are 'sentry' and 'otel'): %q", options.Instrumenter)
313313
}
314314

315315
// SENTRYGODEBUG is a comma-separated list of key=value pairs (similar

0 commit comments

Comments
 (0)