Skip to content

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

Open
amirzaushnizer wants to merge 1 commit into
base_pr_27546_20260621_5873from
corrupted_pr_27546_20260621_5873
Open

[CORRUPTED] Synthetic Benchmark PR #27546 - [bench] prefix@b5720370 improvement(client): fix exactOptionalPropertyTypes for telemetry-utils#16
amirzaushnizer wants to merge 1 commit into
base_pr_27546_20260621_5873from
corrupted_pr_27546_20260621_5873

Conversation

@amirzaushnizer

Copy link
Copy Markdown
Collaborator

Benchmark PR microsoft#27546

Type: Corrupted (contains bugs)

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

…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