mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
fix(core): pass OTEL config to workspace env (#23154)
This commit is contained in:
@@ -28,7 +28,7 @@ export type WorkspaceAdaptor = {
|
|||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
configure(info: WorkspaceInfo): WorkspaceInfo | Promise<WorkspaceInfo>
|
configure(info: WorkspaceInfo): WorkspaceInfo | Promise<WorkspaceInfo>
|
||||||
create(info: WorkspaceInfo, env: Record<string, string>, from?: WorkspaceInfo): Promise<void>
|
create(info: WorkspaceInfo, env: Record<string, string | undefined>, from?: WorkspaceInfo): Promise<void>
|
||||||
remove(info: WorkspaceInfo): Promise<void>
|
remove(info: WorkspaceInfo): Promise<void>
|
||||||
target(info: WorkspaceInfo): Target | Promise<Target>
|
target(info: WorkspaceInfo): Target | Promise<Target>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,6 +115,8 @@ export const create = fn(CreateInput, async (input) => {
|
|||||||
OPENCODE_AUTH_CONTENT: JSON.stringify(await AppRuntime.runPromise(Auth.Service.use((auth) => auth.all()))),
|
OPENCODE_AUTH_CONTENT: JSON.stringify(await AppRuntime.runPromise(Auth.Service.use((auth) => auth.all()))),
|
||||||
OPENCODE_WORKSPACE_ID: config.id,
|
OPENCODE_WORKSPACE_ID: config.id,
|
||||||
OPENCODE_EXPERIMENTAL_WORKSPACES: "true",
|
OPENCODE_EXPERIMENTAL_WORKSPACES: "true",
|
||||||
|
OTEL_EXPORTER_OTLP_HEADERS: process.env.OTEL_EXPORTER_OTLP_HEADERS,
|
||||||
|
OTEL_EXPORTER_OTLP_ENDPOINT: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
|
||||||
}
|
}
|
||||||
await adaptor.create(config, env)
|
await adaptor.create(config, env)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user