-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
HTTPServerSettings: Support for additional headers #7328
Comments
@ledor473 would you like to work on this issue? I'd be happy to assign it to you. |
If the proposal makes sense, I'd be happy to contribute it yes. |
not sure, you can bring it to the SIG meeting for discussion or open a PR to provoke thoughts. |
@ledor473 ready to close? This was shipped in 0.81.0. |
Yep! I thought it would auto-close. Closing.. |
It closes only if in the PR you use the keyword |
Is your feature request related to a problem? Please describe.
When deploying an OpenTelemetry Collector with
httpforwarder
orhealthcheckextension
behind a caching proxy or a CDN, the GET requests gets cached and there's currently no options to pass additional headers on HTTPServerSettings.Here are some links for various caching proxy that documents the headers that can be used to configure the cache behavior:
Describe the solution you'd like
Add a
headers
configuration to HTTPServerSettings.It would be similar to the
headers
property on HTTPClientSettings:opentelemetry-collector/config/confighttp/confighttp.go
Lines 57 to 60 in 687d5b7
Describe alternatives you've considered
I've looked at CORSSettings that is exposed but it only exposes
MaxAge
that ends up in Access-Control-Max-AgeThe text was updated successfully, but these errors were encountered: