From a14cc3a6428678ed8dd298f0fff9353c3a8e165b Mon Sep 17 00:00:00 2001 From: Ran Nozik Date: Thu, 4 Apr 2024 12:33:17 +0300 Subject: [PATCH] fix: add changelog --- CHANGELOG.md | 1 + exporters/otlp/otlptrace/otlptracegrpc/options.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a5af468a04..6a805c5fb3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm - Add `otel.scope.name` and `otel.scope.version` tags to spans exported by `go.opentelemetry.io/otel/exporters/zipkin`. (#5108) - Add support for `AddLink` to `go.opentelemetry.io/otel/bridge/opencensus`. (#5116) - Add `String` method to `Value` and `KeyValue` in `go.opentelemetry.io/otel/log`. (#5117) +- Add `Query` option in `go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp`. (#5118) ### Changed diff --git a/exporters/otlp/otlptrace/otlptracegrpc/options.go b/exporters/otlp/otlptrace/otlptracegrpc/options.go index d7559bfb5a1..8e836b3f461 100644 --- a/exporters/otlp/otlptrace/otlptracegrpc/options.go +++ b/exporters/otlp/otlptrace/otlptracegrpc/options.go @@ -200,3 +200,8 @@ func WithTimeout(duration time.Duration) Option { func WithRetry(settings RetryConfig) Option { return wrappedOption{otlpconfig.WithRetry(retry.Config(settings))} } + +// WithQuery will send the provided query values with each gRPC request. +func WithQuery(query map[string][]string) Option { + return wrappedOption{otlpconfig.WithQuery(query)} +}