Describe the bug
Right now, the OTLP HTTP receiver only allows for http2 upgrades if you specify a TLS configuration. This is an issue for environments that terminate TLS before the collector.
Additional contextThis is the only place where the http2 protocol is allowed right now. Related issue. We could manually create an http2 handler following something like this:
if serverOptions.AllowH2CUpgrade {
h2s := &http2.Server{IdleTimeout: 0}
// handler.ServeHTTP blocks until the connection is closed. It creates a new server which managed the ]
// upgraded connection and uses handler to serve requests to it.
handler = h2c.NewHandler(handler, h2s)
}
Describe the bug Right now, the OTLP HTTP receiver only allows for http2 upgrades if you specify a TLS configuration. This is an issue for environments that terminate TLS before the collector.
Steps to reproduce
What did you expect to see? that http2 succeeds
What did you see instead? A failure
What version did you use? v0.107.0
What config did you use?
Environment
Mac OS
Additional context This is the only place where the http2 protocol is allowed right now. Related issue. We could manually create an http2 handler following something like this: