Преглед на файлове

Use parent-based OTel sampler by default

DarthSim преди 2 години
родител
ревизия
d96a84221b
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 1
      CHANGELOG.md
  2. 0 1
      metrics/otel/otel.go

+ 4 - 1
CHANGELOG.md

@@ -3,9 +3,12 @@
 ## [Unreleased]
 ### Add
 - Add `IMGPROXY_OPEN_TELEMETRY_GRPC_INSECURE` config.
-- Better XMP data stripping.
 - (pro) Add XMP data to the `/info` response.
 
+### Change
+- Better XMP data stripping.
+- Use parent-based OpenTelemetry sampler by default.
+
 ## [3.10.0] - 2022-11-04
 ### Add
 - Add `IMGPROXY_CLIENT_KEEP_ALIVE_TIMEOUT` config.

+ 0 - 1
metrics/otel/otel.go

@@ -105,7 +105,6 @@ func Init() error {
 
 	tracerProvider = sdktrace.NewTracerProvider(
 		sdktrace.WithResource(res),
-		sdktrace.WithSampler(sdktrace.AlwaysSample()),
 		sdktrace.WithBatcher(traceExporter),
 		sdktrace.WithIDGenerator(idg),
 	)