Skip to content

Commit

Permalink
fixed string conca
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaushal28 committed Apr 20, 2023
1 parent 0b6e7f6 commit a135353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/otlp/otlptrace/internal/otlpconfig/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func WithEndpoint(endpoint string) GenericOption {
return newGenericOption(func(cfg Config) Config {
// Add scheme if not present
if !hasScheme(endpoint) {
endpoint = fmt.Sprintf("%s://%s", getScheme(cfg), endpoint)
endpoint = getScheme(cfg) + "://" + endpoint
}
u, err := url.Parse(endpoint)
if err != nil {
Expand Down

0 comments on commit a135353

Please sign in to comment.