mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
envoyconfig: default zipkin path to / when empty (#2359)
This commit is contained in:
parent
4c64daa8c2
commit
a9ba3ffff5
1 changed files with 5 additions and 1 deletions
|
@ -113,9 +113,13 @@ func buildTracingHTTP(options *config.Options) (*envoy_config_trace_v3.Tracing_H
|
||||||
},
|
},
|
||||||
}, nil
|
}, nil
|
||||||
case trace.ZipkinTracingProviderName:
|
case trace.ZipkinTracingProviderName:
|
||||||
|
path := tracingOptions.ZipkinEndpoint.Path
|
||||||
|
if path == "" {
|
||||||
|
path = "/"
|
||||||
|
}
|
||||||
tracingTC, _ := anypb.New(&envoy_config_trace_v3.ZipkinConfig{
|
tracingTC, _ := anypb.New(&envoy_config_trace_v3.ZipkinConfig{
|
||||||
CollectorCluster: "zipkin",
|
CollectorCluster: "zipkin",
|
||||||
CollectorEndpoint: tracingOptions.ZipkinEndpoint.Path,
|
CollectorEndpoint: path,
|
||||||
CollectorEndpointVersion: envoy_config_trace_v3.ZipkinConfig_HTTP_JSON,
|
CollectorEndpointVersion: envoy_config_trace_v3.ZipkinConfig_HTTP_JSON,
|
||||||
})
|
})
|
||||||
return &envoy_config_trace_v3.Tracing_Http{
|
return &envoy_config_trace_v3.Tracing_Http{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue