Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing GRPC header #41

Open
pleshakov opened this issue Mar 6, 2024 · 0 comments
Open

Add missing GRPC header #41

pleshakov opened this issue Mar 6, 2024 · 0 comments
Labels
bug An issue reporting a potential bug

Comments

@pleshakov
Copy link
Contributor

F5 telemetry service requires the presence of the X-F5-OTEL set to GRPC.

The exporter doesn't set this header by default.

Workaround - set it using Options when creating Exporter:

                . . .
		options := []otlptracegrpc.Option{
			otlptracegrpc.WithEndpoint(cfg.ProductTelemetryConfig.Endpoint),
			otlptracegrpc.WithHeaders(map[string]string{
				"X-F5-OTEL": "GRPC",
			}),
		}
		if cfg.ProductTelemetryConfig.Insecure {
			options = append(options, otlptracegrpc.WithInsecure())
		}

		var err error
		exporter, err = tel.NewExporter(
			tel.ExporterConfig{
				SpanProvider: tel.CreateOTLPSpanProvider(options...),
			},
			tel.WithGlobalOTelLogger(logger),
			tel.WithGlobalOTelErrorHandler(errorHandler),
		)

However, it should be done by default by the exporter library

@pleshakov pleshakov added the bug An issue reporting a potential bug label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a potential bug
Projects
None yet
Development

No branches or pull requests

1 participant