mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
tracing: adjust envoy otel trace batching settings to match go sdk (#5446)
This commit is contained in:
parent
0bd6d8cc83
commit
6ea51149f9
6 changed files with 59 additions and 17 deletions
|
@ -75,7 +75,10 @@ func (rec *OTLPTraceReceiver) Attach(ctx context.Context) {
|
|||
}
|
||||
|
||||
// Modify implements testenv.Modifier.
|
||||
func (rec *OTLPTraceReceiver) Modify(*config.Config) {}
|
||||
func (rec *OTLPTraceReceiver) Modify(cfg *config.Config) {
|
||||
cfg.Options.TracingProvider = "otlp"
|
||||
cfg.Options.TracingOTLPEndpoint = rec.GRPCEndpointURL().Value()
|
||||
}
|
||||
|
||||
func (rec *OTLPTraceReceiver) handleV1Traces(w http.ResponseWriter, r *http.Request) {
|
||||
if r.Header.Get("Content-Type") != "application/x-protobuf" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue