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

Closed
Tracked by #158
pleshakov opened this issue Mar 6, 2024 · 0 comments · Fixed by #165
Closed
Tracked by #158

Add missing GRPC header #41

pleshakov opened this issue Mar 6, 2024 · 0 comments · Fixed by #165
Assignees
Labels
bug An issue reporting a potential bug refined Issues that are ready to be prioritized

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

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 refined Issues that are ready to be prioritized
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants