-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[System.ClientModel] Add Logging #45472
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
8d9dd93
initial draft
m-redding 74c77c4
WIP test stubs pt 1
m-redding 4192f6c
WIP test stubs 2
m-redding 7f5c7cf
tweaks
m-redding edccce7
changes
m-redding b08f2c5
p1 of adding Event Source
m-redding 291365d
tests p1
m-redding 107abf0
test updates
m-redding 207b215
Tests2
m-redding 3747094
updates
m-redding c986aed
API
m-redding d802bc3
try slimming methods and adding retry policy log
m-redding fc17694
test
m-redding 7253073
conflicts
m-redding 205ef71
refactory + add abstraction
m-redding 1c2f4dc
add tests and update api
m-redding cb53622
more tests
m-redding 8f98aec
fix functional tests
m-redding 06126f2
static -> instance
m-redding 6f51ac6
updates
m-redding 69ced27
tweaks
m-redding e445a1b
tweaks
m-redding dec45fd
fix
m-redding 524edc9
Merge branch 'Azure:main' into loggingpolicy2
m-redding 469aeb7
little refactorings
m-redding ecf0a26
tweaks
m-redding 373fb99
tweaks
m-redding 441ee3e
WIP feedback
m-redding 49a3bcd
reformat
m-redding da1b7f8
WIP more feedback
m-redding 86dc327
WIP
m-redding 672390a
Merge branch 'Azure:main' into loggingpolicy2
m-redding ef183ef
Merge branch 'loggingpolicy2' of https://github.com/m-redding/azure-s…
m-redding 9f93eea
Merge branch 'Azure:main' into loggingpolicy2
m-redding 281aa37
Merge branch 'loggingpolicy2' of https://github.com/m-redding/azure-s…
m-redding b5d97f0
Merge branch 'Azure:main' into loggingpolicy2
m-redding 4a97e78
WIP - updates
m-redding 2726470
Export API
m-redding e93cbd9
API
m-redding 9e5f1d3
API tweaks
m-redding 87bafa7
comment
m-redding 009792c
Merge branch 'Azure:main' into loggingpolicy2
m-redding 1fb84da
changes 1
m-redding d5a9360
changes 2
m-redding 985844f
changes
m-redding 3afbc2e
fixes
m-redding b5ba8ac
more updates
m-redding 382f0d7
some tests
m-redding eaebe02
WIP - experiment
m-redding 72c2062
Merge branch 'Azure:main' into loggingpolicy2
m-redding 21bea5e
wip
m-redding fca37df
Merge branch 'Azure:main' into loggingpolicy2
m-redding 7818432
Merge branch 'loggingpolicy2' of https://github.com/m-redding/azure-s…
m-redding 909cdb8
wip fixes
m-redding e21486a
Merge branch 'Azure:main' into loggingpolicy2
m-redding f474c2c
event source / logger tests green
m-redding 8cd0d58
API
m-redding 75c24dc
fb
m-redding bc0c547
implement request ID
m-redding 80ca39a
adding tests, some fb
m-redding f35144c
more FB
m-redding 2e92d6f
more fb + more tests
m-redding 7cdeb49
WIP
m-redding 41e3abd
tweaks to logging stream
m-redding eadd1bb
tests green
m-redding 37975b6
test updates
m-redding 9b2f9a0
more test updates
m-redding 8d307b8
Update sdk/core/System.ClientModel/src/Options/ClientLoggingOptions.cs
m-redding 0ebff9d
fb 1
m-redding 778c70b
fb 2
m-redding dccb471
fixes
m-redding 57b9166
Merge branch 'Azure:main' into loggingpolicy2
m-redding bdf8068
initial samples
m-redding 91e2a03
api fix and logging.md
m-redding 18d6ae0
tests
m-redding fbcbf57
Merge branch 'Azure:main' into loggingpolicy2
m-redding 9f75d15
Merge branch 'Azure:main' into loggingpolicy2
m-redding d0123df
Merge branch 'Azure:main' into loggingpolicy2
m-redding 2ade2a6
Apply suggestions from code review
m-redding 96a36c8
feedback 1
m-redding 433a018
more fb
m-redding 7dbc599
more feedback
m-redding 9f5b4e6
test fix
m-redding ccd5775
prefer activity.current for request id
m-redding 0ce5416
last clean up tweaks
m-redding 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
WIP - updates
- Loading branch information
commit 4a97e780f2de7d0da75844acda1dff03b8f92604
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
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 |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Text; | ||
|
|
||
| namespace System.ClientModel.Internal; | ||
|
|
||
| internal class TrackingList<T> : List<T>, IList<T> | ||
| { | ||
| public TrackingList(IEnumerable<T> collection) : base(collection) | ||
| { | ||
| } | ||
|
|
||
| public bool HasChanged { get; private set; } | ||
|
|
||
| public new T this[int index] | ||
| { | ||
| get => base[index]; | ||
| set | ||
| { | ||
| if (!EqualityComparer<T>.Default.Equals(base[index], value)) | ||
| { | ||
| HasChanged = true; | ||
| } | ||
| base[index] = value; | ||
| } | ||
| } | ||
|
|
||
| public new void Add(T item) | ||
| { | ||
| base.Add(item); | ||
| HasChanged = true; | ||
| } | ||
|
|
||
| public new void Clear() | ||
| { | ||
| if (Count > 0) | ||
| { | ||
| HasChanged = true; | ||
| } | ||
| base.Clear(); | ||
| } | ||
|
|
||
| public new bool Remove(T item) | ||
| { | ||
| if (base.Remove(item)) | ||
| { | ||
| HasChanged = true; | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
|
|
||
| public new void RemoveAt(int index) | ||
| { | ||
| if (index >= 0 && index < Count) | ||
| { | ||
| HasChanged = true; | ||
| } | ||
| base.RemoveAt(index); | ||
| } | ||
|
|
||
| public void AcceptChanges() | ||
| { | ||
| HasChanged = false; | ||
| } | ||
| } | ||
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
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.
Uh oh!
There was an error while loading. Please reload this page.