Skip to content

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] improvement(client): fix exactOptionalPropertyTypes for telemetry-utils - #6

Open
amirzaushnizer wants to merge 5 commits into
base_pr_27546_20260621_1755from
corrupted_pr_27546_20260621_1755
Open

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] improvement(client): fix exactOptionalPropertyTypes for telemetry-utils#6
amirzaushnizer wants to merge 5 commits into
base_pr_27546_20260621_1755from
corrupted_pr_27546_20260621_1755

Conversation

@amirzaushnizer

Copy link
Copy Markdown
Collaborator

Benchmark PR microsoft#27546

Type: Corrupted (contains bugs)

Original PR Title: [bench] improvement(client): fix exactOptionalPropertyTypes for telemetry-utils
Original PR Description: Reconstructed for skills benchmark from microsoft#27546
Original PR URL: microsoft#27546

jason-ha added 5 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.
as preference for private `startMark` 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