This message was deleted.
# support
s
This message was deleted.
d
actually, NVM, I see that I cannot create PRs...
Copy code
diff --git a/zap_otlp_sync/zap_otlp_sync.go b/zap_otlp_sync/zap_otlp_sync.go
index 6e09c70..6dfeb97 100644
--- a/zap_otlp_sync/zap_otlp_sync.go
+++ b/zap_otlp_sync/zap_otlp_sync.go
@@ -20,8 +20,6 @@ import (
        "<http://google.golang.org/protobuf/proto|google.golang.org/protobuf/proto>"
 )
 
-var otlpHeaders = os.Getenv("OTEL_EXPORTER_OTLP_HEADERS")
-
 type OtelSyncer struct {
        ctx       context.Context
        close     context.CancelFunc
@@ -71,6 +69,7 @@ func NewOtlpSyncer(conn *grpc.ClientConn, options Options) *OtelSyncer {
        }
 
        // check if there is md in the env
+       otlpHeaders := os.Getenv("OTEL_EXPORTER_OTLP_HEADERS")
        headers := map[string]string{}
        for _, header := range strings.Split(otlpHeaders, ",") {
                splittedHeader := strings.Split(header, "=")
patch if that helps
v
@nitya-signoz Can help here. But he will be available tomorrow.
d
Submitted PR
n
d
Thanks