Skip to content

Commit 2a943f8

Browse files
alcoclaude
andcommitted
Register shape_dir_group_depth in telemetry opts schema
The StackSupervisor telemetry child passes :shape_dir_group_depth into ElectricTelemetry.StackTelemetry, but it was never added to the NimbleOptions schema. StackTelemetry therefore failed option validation at init, crashing the whole application on boot (surfaced as every integration test failing to start Electric). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7014522 commit 2a943f8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/electric-telemetry/lib/electric/telemetry

packages/electric-telemetry/lib/electric/telemetry/opts.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ defmodule ElectricTelemetry.Opts do
55
installation_id: [type: :string],
66
stack_id: [type: :string],
77
storage_dir: [type: :string],
8+
# Directory depth (relative to the disk-usage walk root) at which a single
9+
# shape's directory sits, used to bucket the per-shape
10+
# `electric.storage.dir.bytes` metric. `nil` disables per-shape grouping.
11+
shape_dir_group_depth: [type: {:or, [:pos_integer, nil]}, default: nil],
812
version: [type: :string, required: true],
913
reporters: [
1014
type: :keyword_list,

0 commit comments

Comments
 (0)