-
Notifications
You must be signed in to change notification settings - Fork 9
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
introduce flag for insecure communication #14
introduce flag for insecure communication #14
Conversation
otel.go
Outdated
@@ -38,6 +38,7 @@ func RegisterOpenTelemetryFlags(flags *pflag.FlagSet, flagPrefix, serviceName st | |||
flags.String(prefixed("endpoint"), "", "OpenTelemetry collector endpoint - the endpoint can also be set by using enviroment variables") | |||
flags.String(prefixed("service-name"), serviceName, "service name for trace data") | |||
flags.String(prefixed("trace-propagator"), "w3c", `OpenTelemetry trace propagation format ("b3", "w3c", "ottrace"). Add multiple propagators separated by comma.`) | |||
flags.String(prefixed("insecure"), "false", `OpenTelemetry communicate with the collector with HTTP instead of HTTPS.`) |
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.
Trying to think of a better flag description
"connect to the OpenTelemetry collector in plaintext"
Let's double check there isn't a way to do this with environment variables first. |
Closing - you can achieve this by using OTELs |
6cd28a2
to
08dd9c3
Compare
@jzelinskie I've reopened this. Even though it's possible to enable insecure communication via OTEL environment variables, it's not immediately obvious to users of applications using Until it's decided to deprecate cobrautil/otel flags in favour of OTEL's native envs, we should provide a cohesive interface in cobrautil. |
8e4f573
to
e2da000
Compare
I think that's reasonable, is there an equivalent for Jaeger though? Because the cobrautil flag is not tied to a particular provider, ideally it can also trigger the behavior for Jaeger. |
in Jaeger the endpoint must have the protocol as prefix, so it's defined through that. Nothing in the API showed the equivalent, but I can dig a bit more EDIT: I couldn't wind any equivalent in the otel Jaeger exporter. It would seem to be delegated to the |
3d14db9
to
e26feef
Compare
this is particularly useful in development environments so that folks don't have to setup TLS in their collector
e26feef
to
972f47d
Compare
closes #13
this is particularly useful in development environments so that folks don't have to setup TLS in their collector