Skip to content

Commit

Permalink
fix: update endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: namkyu1999 <[email protected]>
  • Loading branch information
namkyu1999 committed Jul 4, 2024
1 parent 5af262e commit f6e11c5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/telemetry/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package telemetry
import (
"context"
"errors"
"os"

log "github.com/sirupsen/logrus"
"go.opentelemetry.io/otel"
Expand Down Expand Up @@ -61,9 +62,7 @@ func newPropagator() propagation.TextMapPropagator {
}

func newTracerProvider(ctx context.Context) (*trace.TracerProvider, error) {
//var endpoint string
//flag.StringVar(&endpoint, OTELExporterOTLPEndpoint, "localhost:4317", "OTLP endpoint to connect to")
endpoint := "simplest-collector.default.svc.cluster.local:4317"
endpoint := os.Getenv(OTELExporterOTLPEndpoint)
res, err := resource.New(ctx,
resource.WithAttributes(
semconv.ServiceNameKey.String(OTELServiceName),
Expand Down

0 comments on commit f6e11c5

Please sign in to comment.