synapsecns/sanguine

View on GitHub
core/metrics/otlp.go

Summary

Maintainability
A
35 mins
Test Coverage

Function makeOTLPExporter has 5 return statements (exceeds 4 allowed).
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, "")
Severity: Major
Found in core/metrics/otlp.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status