From 27db82c22bfd2d6a1772494c9d1b843cfb302909 Mon Sep 17 00:00:00 2001 From: Leo Antunes Date: Wed, 8 Nov 2023 17:50:39 +0100 Subject: [PATCH] fix: report correct option in error Co-authored-by: Oliver Powell --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index 5b712b845..a1c86b9bb 100644 --- a/client.go +++ b/client.go @@ -309,7 +309,7 @@ func NewClient(options ClientOptions) (*Client, error) { options.Instrumenter = "sentry" case "sentry", "otel": // noop default: - return nil, fmt.Errorf("invalid value for TracesInstrumenter (supported are 'sentry' and 'otel'): %q", options.Instrumenter) + return nil, fmt.Errorf("invalid value for Instrumenter (supported are 'sentry' and 'otel'): %q", options.Instrumenter) } // SENTRYGODEBUG is a comma-separated list of key=value pairs (similar