Skip to content

Commit

Permalink
Relax type on observability.enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Dec 4, 2024
1 parent 608988a commit 3bfef91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-teachers-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Relax type on observability.enabled to remove linting error for nested configurations
4 changes: 2 additions & 2 deletions packages/wrangler/src/config/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,11 +953,11 @@ export type Assets = {

export interface Observability {
/** If observability is enabled for this Worker */
enabled: boolean;
enabled?: boolean;
/** The sampling rate */
head_sampling_rate?: number;
logs?: {
enabled: boolean;
enabled?: boolean;
/** The sampling rate */
head_sampling_rate?: number;
/** Set to false to disable invocation logs */
Expand Down

0 comments on commit 3bfef91

Please sign in to comment.