-
Notifications
You must be signed in to change notification settings - Fork 575
feat(telemetry-utils): deprecate LogLevel.default/error and tag unspecified events as essential #27207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MarioJGMsoft
wants to merge
23
commits into
microsoft:main
Choose a base branch
from
MarioJGMsoft:marioja/deprecateLogLevel
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat(telemetry-utils): deprecate LogLevel.default/error and tag unspecified events as essential #27207
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
09cc182
feat: deprecate LogLevel.default and .error and remove all calls to t…
MarioJGMsoft 3525674
feat: send LogLevel as undefined and default to essential on send logic
MarioJGMsoft f3c37bf
Merge branch 'main' into marioja/deprecateLogLevel
MarioJGMsoft 07925f4
Merge branch 'microsoft:main' into marioja/deprecateLogLevel
MarioJGMsoft 67614c8
refactor: properly ordered imports and removed LogLevel.default
MarioJGMsoft a568d12
docs: fixed comments
MarioJGMsoft 9a81682
docs: updated docs
MarioJGMsoft da948a1
docs: added changesets
MarioJGMsoft c0d9396
docs: added removal timeline
MarioJGMsoft f3a92b6
docs: updated deprecation message
MarioJGMsoft 0ba1037
docs: addressed docs comments
MarioJGMsoft eab130c
Merge branch 'microsoft:main' into marioja/deprecateLogLevel
MarioJGMsoft 5f1205d
docs: updated chengeset title
MarioJGMsoft ba39358
feat: applied changes to docs and code based on comments
MarioJGMsoft bad5774
feat: made logLevel required in various levels and added tests
MarioJGMsoft 71c1f07
fix: removed type import from normal import
MarioJGMsoft 2c13181
fix: applied changes based on review
MarioJGMsoft 3b3f5fe
docs: updated docs
MarioJGMsoft fbd560a
docs: removed changeset
MarioJGMsoft 5d5fcb1
docs: updated performance docs
MarioJGMsoft beeac4c
Merge branch 'main' into marioja/deprecateLogLevel
MarioJGMsoft bee89e1
chore: untrack dev-container bind-mounted files accidentally added
MarioJGMsoft 1131b62
docs: updated docs message
MarioJGMsoft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| "@fluidframework/core-interfaces": minor | ||
| "__section": deprecation | ||
| --- | ||
|
|
||
| Deprecated LogLevel.default and LogLevel.error | ||
|
|
||
| `LogLevel.default` and `LogLevel.error` in `@fluidframework/core-interfaces` are deprecated in favor of the semantically clearer `LogLevel.info` and `LogLevel.essential` respectively. | ||
|
|
||
| #### Migration | ||
|
|
||
| - `LogLevel.default` (= `20`) → use `LogLevel.info` | ||
| - `LogLevel.error` (= `30`) → use `LogLevel.essential` | ||
|
|
||
| Removal is tracked in [issue #26969](https://github.com/microsoft/FluidFramework/issues/26969) and is planned for the v3.0 major release. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -136,14 +136,14 @@ export interface ITelemetryLoggerExt extends ITelemetryBaseLogger { | |
| * Send an information telemetry event. | ||
| * @param event - Event to send. | ||
| * @param error - Optional error object to log. | ||
| * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.essential}. | ||
| * @param logLevel - Optional level of the log. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevel.essential}. | ||
| * @deprecated This method is being removed without a replacement. | ||
| * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details. | ||
| */ | ||
| sendTelemetryEvent( | ||
| event: ITelemetryGenericEventExt, | ||
| error?: unknown, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.default, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.info, | ||
| ): void; | ||
|
|
||
| /** | ||
|
|
@@ -159,14 +159,14 @@ export interface ITelemetryLoggerExt extends ITelemetryBaseLogger { | |
| * Send a performance telemetry event. | ||
| * @param event - Event to send | ||
| * @param error - Optional error object to log. | ||
| * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.essential}. | ||
| * @param logLevel - Optional level of the log. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevel.essential}. | ||
| * @deprecated This method is being removed without a replacement. | ||
| * @see {@link https://github.com/microsoft/FluidFramework/issues/26910 | Issue #26910} for details. | ||
| */ | ||
| sendPerformanceEvent( | ||
| event: ITelemetryPerformanceEventExt, | ||
| error?: unknown, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.default, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.info, | ||
| ): void; | ||
| } | ||
|
|
||
|
|
@@ -183,12 +183,12 @@ export interface TelemetryLoggerExt extends ITelemetryBaseLogger { | |
| * Send an information telemetry event. | ||
| * @param event - Event to send. | ||
| * @param error - Optional error object to log. | ||
| * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevel.default}. | ||
| * @param logLevel - Optional level of the log. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevelConst.essential | LogLevel.essential}. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this version of interface, we are the only implementors. So, we can document this for the callers. Can say "will be treated as". Or the prior "Default:" text was fine. |
||
| */ | ||
| sendTelemetryEvent( | ||
| event: ITelemetryGenericEventExt, | ||
| error?: unknown, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.default, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.info, | ||
| ): void; | ||
|
MarioJGMsoft marked this conversation as resolved.
|
||
|
|
||
| /** | ||
|
|
@@ -202,11 +202,11 @@ export interface TelemetryLoggerExt extends ITelemetryBaseLogger { | |
| * Send a performance telemetry event. | ||
| * @param event - Event to send | ||
| * @param error - Optional error object to log. | ||
| * @param logLevel - Optional level of the log. Default: {@link @fluidframework/core-interfaces#LogLevelConst.default | LogLevel.default}. | ||
| * @param logLevel - Optional level of the log. If undefined, the logLevel should be treated as {@link @fluidframework/core-interfaces#LogLevelConst.essential | LogLevel.essential}. | ||
| */ | ||
| sendPerformanceEvent( | ||
| event: ITelemetryPerformanceEventExt, | ||
| error?: unknown, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.default, | ||
| logLevel?: typeof LogLevel.verbose | typeof LogLevel.info, | ||
| ): void; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I keep thinking this one should be nuanced. In the context of use are an event's
logLevelthe recommendation is to useessential. In the context ofminLogLevel,infois right.Since we can change guidance and this is not super simple, I would direct readers to the tracking issue.