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

[TraceGen] Add support to pass in custom headers for the oltp calls made via tracegen #7308

Closed
pavankrish123 opened this issue Jan 24, 2022 · 1 comment
Assignees

Comments

@pavankrish123
Copy link
Contributor

pavankrish123 commented Jan 24, 2022

Tracegen is very invaluable in our load testing. It would be even helpful if we can pass in test/basic-auth headers along with http/grpc export calls. Otel Go SDK already supports an option to add headers to export calls, so it is a matter of reading map[string]string via tracegen command line as config and passing them on

something like will do.

	if len(cfg.Headers) > 0 {
		grpcExpOpt = append(grpcExpOpt, otlptracegrpc.WithHeaders(cfg.Headers))
		httpExpOpt = append(httpExpOpt, otlptracehttp.WithHeaders(cfg.Headers))
	}
@pavankrish123
Copy link
Contributor Author

Please assign this to me. Issued a PR #7309 already

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants