Skip to content

Commit 8117a7f

Browse files
committed
fixup! feat: add option for exporting traces to a provided Honeycomb team
1 parent ca5539b commit 8117a7f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

cli/deployment/config.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,10 @@ func newConfig() *codersdk.DeploymentConfig {
296296
Flag: "trace",
297297
},
298298
HoneycombAPIKey: &codersdk.DeploymentConfigField[string]{
299-
Name: "Trace Honeycomb API Key",
300-
Usage: "Enables trace exporting to Honeycomb.io using the provided API Key.",
301-
Flag: "trace-honeycomb-api-key",
299+
Name: "Trace Honeycomb API Key",
300+
Usage: "Enables trace exporting to Honeycomb.io using the provided API Key.",
301+
Flag: "trace-honeycomb-api-key",
302+
Secret: true,
302303
},
303304
},
304305
SecureAuthCookie: &codersdk.DeploymentConfigField[bool]{

site/src/api/typesGenerated.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export interface DeploymentConfig {
292292
readonly oidc: OIDCConfig
293293
readonly telemetry: TelemetryConfig
294294
readonly tls: TLSConfig
295-
readonly trace_enable: DeploymentConfigField<boolean>
295+
readonly trace: TraceConfig
296296
readonly secure_auth_cookie: DeploymentConfigField<boolean>
297297
readonly ssh_keygen_algorithm: DeploymentConfigField<string>
298298
readonly auto_import_templates: DeploymentConfigField<string[]>
@@ -664,6 +664,12 @@ export interface TemplateVersionsByTemplateRequest extends Pagination {
664664
readonly template_id: string
665665
}
666666

667+
// From codersdk/deploymentconfig.go
668+
export interface TraceConfig {
669+
readonly enable: DeploymentConfigField<boolean>
670+
readonly honeycomb_api_key: DeploymentConfigField<string>
671+
}
672+
667673
// From codersdk/templates.go
668674
export interface UpdateActiveTemplateVersion {
669675
readonly id: string

0 commit comments

Comments
 (0)