Skip to content

Commit

Permalink
remove the log line for OTLP Metrics (too noisy)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Labarussias <[email protected]>
  • Loading branch information
Issif authored and poiana committed Dec 3, 2024
1 parent d448390 commit ca11149
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions outputs/otlpmetrics/otlpmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ package otlpmetrics
import (
"context"
"fmt"
"log"
"os"
"strings"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc"
Expand All @@ -11,9 +15,6 @@ import (
sdkmetric "go.opentelemetry.io/otel/sdk/metric"
sdkresource "go.opentelemetry.io/otel/sdk/resource"
semconv "go.opentelemetry.io/otel/semconv/v1.23.1"
"log"
"os"
"strings"
)

const (
Expand Down Expand Up @@ -246,5 +247,4 @@ func (c *counterInstrument) Inc() {
}

ruleCounter.Add(context.Background(), 1, metric.WithAttributes(c.attributes...))
log.Println("[INFO] : OTLP Metrics - OK")
}

0 comments on commit ca11149

Please sign in to comment.