core/metrics/otlp.go
Function makeOTLPExporter
has 5 return statements (exceeds 4 allowed). Open
Open
func makeOTLPExporter(ctx context.Context, envSuffix string) (*otlptrace.Exporter, error) {
transport := transportFromString(getEnvSuffix(otelTransportEnv, envSuffix, otlpTransportGRPC.String()))
url := getEnvSuffix(otelEndpointEnv, envSuffix, "")
secure := core.GetEnvBool(makeEnv(otelInsecureEvn, envSuffix), false)
headers := getEnvSuffix(otelHeadersEnv, envSuffix, "")