-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
telemetrygen: Allow setting custom paths #24551
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a changelog as this is user-facing.
The current description for the flag is wrong. ``` ❯ ../../open-telemetry/opentelemetry-collector-contrib/cmd/telemetrygen/telemetrygen metrics --otlp-endpoint example.com/v1/metrics --otlp-http --otlp-insecure 2023-07-25T22:03:45.884+0200 INFO metrics/metrics.go:56 starting HTTP exporter Error: failed to obtain OTLP exporter: parse "http://example.com%2Fv1%2Fmetrics/v1/metrics": invalid URL escape "%2F" ``` Signed-off-by: Goutham <[email protected]>
36b2926
to
6ef1b74
Compare
@songy23 Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, no change needed in logs because of #18867
The current description for the flag is wrong.
I couldn't make it easily work with the existing flag because
url.Parse(c.Endpoint)
puts everything in path, and u.Host is unset. This is because url.Parse expectshttp://
orhttps://
which is set through a different flag.