feat(opencode): add OTLP observability support (#21387)

This commit is contained in:
Dax
2026-04-07 17:02:55 -04:00
committed by GitHub
parent bc1840b196
commit c90fc6a486
3 changed files with 39 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ function falsy(key: string) {
}
export namespace Flag {
export const OTEL_EXPORTER_OTLP_ENDPOINT = process.env["OTEL_EXPORTER_OTLP_ENDPOINT"]
export const OTEL_EXPORTER_OTLP_HEADERS = process.env["OTEL_EXPORTER_OTLP_HEADERS"]
export const OPENCODE_AUTO_SHARE = truthy("OPENCODE_AUTO_SHARE")
export const OPENCODE_AUTO_HEAP_SNAPSHOT = truthy("OPENCODE_AUTO_HEAP_SNAPSHOT")
export const OPENCODE_GIT_BASH_PATH = process.env["OPENCODE_GIT_BASH_PATH"]