diff --git a/otel/autometrics/instrument.go b/otel/autometrics/instrument.go index c1c0a05..955d11d 100644 --- a/otel/autometrics/instrument.go +++ b/otel/autometrics/instrument.go @@ -94,7 +94,7 @@ func Instrument(ctx context.Context, err *error) { // NOTE: This call means that goroutines that outlive this function as the caller will not have access to parent // caller information, but hopefully by that point we got all the necessary accesses done. // If not, it is a convenience we accept to give up to prevent memory usage from exploding - am.PopFunctionName(ctx) + _ = am.PopFunctionName(ctx) } // PreInstrument runs the "before wrappee" part of instrumentation. diff --git a/prometheus/autometrics/instrument.go b/prometheus/autometrics/instrument.go index dfb7226..9db0e76 100644 --- a/prometheus/autometrics/instrument.go +++ b/prometheus/autometrics/instrument.go @@ -115,7 +115,7 @@ func Instrument(ctx context.Context, err *error) { // NOTE: This call means that goroutines that outlive this function as the caller will not have access to parent // caller information, but hopefully by that point we got all the necessary accesses done. // If not, it is a convenience we accept to give up to prevent memory usage from exploding - am.PopFunctionName(ctx) + _ = am.PopFunctionName(ctx) } // PreInstrument runs the "before wrappee" part of instrumentation.