Skip to content

Commit

Permalink
do not strip out endpoint ports
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmarnell committed Nov 3, 2023
1 parent d4f6e70 commit 82a9b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go-kit/metrics/provider/otel/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func WithHTTPEndpointExporter(endpoint string, options ...otlpmetrichttp.Option)
authHeader["Authorization"] = "Basic" + base64.StdEncoding.EncodeToString([]byte(u.User.String()))

defaults := []otlpmetrichttp.Option{
otlpmetrichttp.WithEndpoint(u.Hostname()),
otlpmetrichttp.WithEndpoint(u.Host),
otlpmetrichttp.WithTLSClientConfig(tlsconfig.New()),
otlpmetrichttp.WithHeaders(authHeader),
otlpmetrichttp.WithAggregationSelector(cfg.aggregationSelector),
Expand Down

0 comments on commit 82a9b35

Please sign in to comment.