Skip to content

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@9e4e683c improvement(client): fix exactOptionalPropertyTypes for telemetry-utils - #14

Open
amirzaushnizer wants to merge 3 commits into
base_pr_27546_20260621_4132from
corrupted_pr_27546_20260621_4132
Open

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@9e4e683c improvement(client): fix exactOptionalPropertyTypes for telemetry-utils#14
amirzaushnizer wants to merge 3 commits into
base_pr_27546_20260621_4132from
corrupted_pr_27546_20260621_4132

Conversation

@amirzaushnizer

Copy link
Copy Markdown
Collaborator

Benchmark PR microsoft#27546

Type: Corrupted (contains bugs)

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

jason-ha added 3 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.
as preference for private `event` member.
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