Skip to content

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@0412ca76 improvement(client): fix exactOptionalPropertyTypes for telemetry-utils - #12

Open
amirzaushnizer wants to merge 2 commits into
base_pr_27546_20260621_3933from
corrupted_pr_27546_20260621_3933
Open

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@0412ca76 improvement(client): fix exactOptionalPropertyTypes for telemetry-utils#12
amirzaushnizer wants to merge 2 commits into
base_pr_27546_20260621_3933from
corrupted_pr_27546_20260621_3933

Conversation

@amirzaushnizer

Copy link
Copy Markdown
Collaborator

Benchmark PR microsoft#27546

Type: Corrupted (contains bugs)

Original PR Title: [bench] prefix@0412ca76 improvement(client): fix exactOptionalPropertyTypes for telemetry-utils
Original PR Description: Pre-fix reconstruction of microsoft#27546 at parent of 0412ca7 (bug present).
Original PR URL: microsoft#27546

jason-ha added 2 commits June 13, 2026 18:27
…tils

`ChildLogger` (which is almost always the logger anything accesses) supports `minLogLevel` with a getter that may return `undefined`.
Update `ITelemetryBaseLogger` to allow `minLogLevel` to be `undefined`.

This is a type breaking change for anyone not using `exactOptionalPropertyTypes:false`, but not a runtime breaking change.

`telemetry-utils` corrections:
- use `...(cond ? {} { prop: value })` to only define properties with defined values.
- delete optional properties instead of setting to `undefined`.
- in logger helper functions allow explicit `undefined`
  - internal `ChildLogger.create` clarified to expect to arguments though `undefined` is allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants