Skip to content

feat(bootstrap): Add Telemetry settings to codesphere config#433

Open
BBesrour wants to merge 7 commits into
mainfrom
bilel/central-otel-endpoint
Open

feat(bootstrap): Add Telemetry settings to codesphere config#433
BBesrour wants to merge 7 commits into
mainfrom
bilel/central-otel-endpoint

Conversation

@BBesrour
Copy link
Copy Markdown
Member

@BBesrour BBesrour commented May 20, 2026

Adds support for configuring telemetry export.
Adds new command-line flags to enable sending traces and span metrics

@BBesrour BBesrour self-assigned this May 20, 2026
Signed-off-by: BBesrour <58034472+BBesrour@users.noreply.github.com>
@BBesrour BBesrour requested a review from joka134 May 20, 2026 10:25
Copy link
Copy Markdown
Member

@joka134 joka134 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one thing

Comment on lines +322 to +329
if b.Env.CentralOtelPassword != "" || b.Env.LocalTraceExport {
b.Env.InstallConfig.Codesphere.TelemetryExport = &files.TelemetryExport{
Endpoint: b.Env.CentralOtelEndpoint,
RemoteExport: b.Env.CentralOtelPassword != "",
Traces: b.Env.LocalTraceExport,
SpanMetrics: b.Env.CentralOtelSpanMetrics,
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some verification to give users some feedback, when these flags are partially configured but ignored by oms? Should be done atm in gcp.go.

Like password and LocalTraceExport was configured but no endpoint

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have default value in case export is enabled but no import specified. But added some check for creds and endpoint

@BBesrour BBesrour requested a review from joka134 May 21, 2026 15:07
BBesrour added 2 commits May 21, 2026 15:09
Signed-off-by: BBesrour <58034472+BBesrour@users.noreply.github.com>
Signed-off-by: BBesrour <58034472+BBesrour@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants