-
Notifications
You must be signed in to change notification settings - Fork 373
Update Telemetry client with data outlined in spec #3737
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 33 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3190435
Add cache details to token cache notification args
neha-bhargava 2b2d6fd
Change code to make it more readable.
neha-bhargava 4fe6bd7
Address comments
neha-bhargava 169d95c
Address comments
neha-bhargava 969867c
Remove unused imports
neha-bhargava c233b72
Change from dictionary to class
neha-bhargava 09d2d35
Update comments and CacheUsed enum values
neha-bhargava c537f87
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
neha-bhargava fd6dd23
Removing the enum as this can be inferred from Latencies
neha-bhargava 5449a7d
Merge branch 'nebharg/AddCacheDetailsTelemetry' of https://github.com…
neha-bhargava bd32bba
Merge remote-tracking branch 'origin/pmaytak/1' into nebharg/AddCache…
39ed3f0
Adding api event for credential type.
02dd568
Updating telemetry Data
e9e9ceb
Adding tests for new telemetry datapoints.
1b9644f
Adding telemetry cache test.
057e407
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
trwalke 8477fc4
Merge remote-tracking branch 'origin/pmaytak/1' into nebharg/AddCache…
2df0d13
Refactoring
43ad450
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
18f153b
Refactoring
df4da2f
Adding scopes, resources and error message to telemetry
d7c655f
Apply suggestions from code review
trwalke 2d1eb42
Merge remote-tracking branch 'origin/main' into nebharg/AddCacheDetai…
35b5c73
Updating scope parsing logic.
8a66797
Refactoring
1a88f21
Updating telemetry data points
1823be2
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
trwalke 40d62f8
Test update
15896d2
Fix typo
d64f181
Test Fixes
9346d15
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
trwalke 24d2bc3
Apply suggestions from code review
trwalke 4e1bf52
Adding additional test
657a8cc
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
40a22d0
test fix
0be7992
Test Fix
cb4667f
Test Update
059b6e4
Merge branch 'main' into nebharg/AddCacheDetailsTelemetry
gladjohn 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
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 |
---|---|---|
|
@@ -160,7 +160,6 @@ public X509Certificate2 ClientCredentialCertificate | |
return null; | ||
} | ||
} | ||
|
||
#endregion | ||
|
||
#region Region | ||
|
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,35 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.Identity.Client.Cache | ||
{ | ||
/// <summary> | ||
/// Identifies the type of cache that the token was read from. Cache implementations must provide this. | ||
/// </summary> | ||
public enum CacheLevel | ||
pmaytak marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{ | ||
/// <summary> | ||
/// Specifies that the cache level used is None. | ||
/// Token was retrieved from ESTS | ||
/// </summary> | ||
None = 0, | ||
/// <summary> | ||
/// Specifies that the cache level used is unknown. | ||
/// Token was retrieved from cache but the token cache implementation didn't specify which cache level was used. | ||
/// </summary> | ||
Unknown = 1, | ||
/// <summary> | ||
/// Specifies if the L1 cache is used. | ||
/// </summary> | ||
L1Cache = 2, | ||
/// <summary> | ||
/// Specifies if the L2 cache is used. | ||
L2Cache = 3 | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
src/client/Microsoft.Identity.Client/TelemetryCore/AssertionType.cs
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 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.Identity.Client.TelemetryCore | ||
{ | ||
internal enum AssertionType | ||
{ | ||
None = 0, | ||
CertificateWithoutSni = 1, | ||
CertificateWithSni = 2, | ||
Secret = 3, | ||
ClientAssertion = 4, | ||
ManagedIdentity = 5 | ||
} | ||
} |
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.