Skip to content

Commit

Permalink
rename WithURLPath option
Browse files Browse the repository at this point in the history
  • Loading branch information
paivagustavo committed Jun 7, 2021
1 parent b007639 commit adb0d3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions exporters/otlp/otlptrace/otlptracehttp/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ func TestEndToEnd(t *testing.T) {
{
name: "with empty paths (forced to defaults)",
opts: []otlptracehttp.Option{
otlptracehttp.WithTracesURLPath(""),
otlptracehttp.WithURLPath(""),
},
},
{
name: "with relative paths",
opts: []otlptracehttp.Option{
otlptracehttp.WithTracesURLPath(relOtherTracesPath),
otlptracehttp.WithURLPath(relOtherTracesPath),
},
mcCfg: mockCollectorConfig{
TracesURLPath: otherTracesPath,
Expand Down
4 changes: 2 additions & 2 deletions exporters/otlp/otlptrace/otlptracehttp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ func WithCompression(compression Compression) Option {
return wrappedOption{otlpconfig.WithCompression(otlpconfig.Compression(compression))}
}

// WithTracesURLPath allows one to override the default URL path used
// WithURLPath allows one to override the default URL path used
// for sending traces. If unset, default ("/v1/traces") will be used.
func WithTracesURLPath(urlPath string) Option {
func WithURLPath(urlPath string) Option {
return wrappedOption{otlpconfig.WithTracesURLPath(urlPath)}
}

Expand Down

0 comments on commit adb0d3f

Please sign in to comment.