-
Notifications
You must be signed in to change notification settings - Fork 534
feat: Configures otel log collector #20895
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
Conversation
90b1bff
to
f6577ac
Compare
f6577ac
to
f46025a
Compare
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.
Current implementation relies on optional env variable to configure otel endpoint that will have to be set on sync pod in scheduler.
Ensures that otel Body has always log messag poupulated
cli/cmd/root.go
Outdated
@@ -224,3 +244,14 @@ func CloseLogFile() { | |||
logFile.Close() | |||
} | |||
} | |||
|
|||
func otelConfig() (*otel.Config, error) { | |||
insecureEndpoint, err := strconv.ParseBool(env.GetEnvOrDefault("OTEL_ENDPOINT_INSECURE", "true")) |
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.
Let's maybe default this to false?
🤖 I have created a release *beep* *boop* --- ## [6.21.0](cli-v6.20.5...cli-v6.21.0) (2025-06-23) ### Features * Configures otel log collector ([#20895](#20895)) ([146a279](146a279)) * Transform table name for DeleteRecord ([#20870](#20870)) ([8ce11f6](8ce11f6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
Adds support for open telemetry collector.
Tested on local Tilt cluster
Example otel records