Remove accidentally added config.NewState()

This commit is contained in:
Jochen Schalanda 2024-12-14 17:27:56 +01:00
parent 2a81882de3
commit 6c013c25cb

View file

@ -60,7 +60,7 @@ func Initialize() error {
case "grpc": case "grpc":
opts := []otlptracegrpc.Option{ opts := []otlptracegrpc.Option{
otlptracegrpc.WithEndpoint(config.GetTracingEndpoint()), otlptracegrpc.WithEndpoint(config.GetTracingEndpoint()),
otlptracegrpc.WithHeaders(config.NewState().GetTracingHeaders()), otlptracegrpc.WithHeaders(config.GetTracingHeaders()),
} }
if insecure { if insecure {
opts = append(opts, otlptracegrpc.WithInsecure()) opts = append(opts, otlptracegrpc.WithInsecure())