From c762c4ccb602f584b9670445794becb8b155b962 Mon Sep 17 00:00:00 2001 From: golangisfun123 Date: Wed, 4 Sep 2024 11:54:44 -0500 Subject: [PATCH] add lint --- core/metrics/otlp.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/core/metrics/otlp.go b/core/metrics/otlp.go index dd31d38eda..0a93075832 100644 --- a/core/metrics/otlp.go +++ b/core/metrics/otlp.go @@ -29,12 +29,20 @@ func NewOTLPMetricsHandler(buildInfo config.BuildInfo) Handler { func (n *otlpHandler) Start(ctx context.Context) (err error) { // TODO: generalize this to allow for more than two exporters. - client, err := buildClientFromTransport(transportFromString(core.GetEnv(otlpTransportEnv, otlpTransportGRPC.String()))) + client, err := buildClientFromTransport( + transportFromString( + core.GetEnv(otlpTransportEnv, otlpTransportGRPC.String()), + ), + ) if err != nil { return fmt.Errorf("could not create client: %w", err) } - secondaryClient, err := buildClientFromTransport(transportFromString(core.GetEnv(otlpTransportEnvSecondary, otlpTransportHTTP.String()))) + secondaryClient, err := buildClientFromTransport( + transportFromString( + core.GetEnv(otlpTransportEnvSecondary, otlpTransportGRPC.String()), + ), + ) if err != nil { return fmt.Errorf("could not create secondary client: %w", err) }