Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
vNext
----------
- [PATCH] Track MAM flow in telemetry (#2608)
- [PATCH] Fix multiple prompts issue in cross cloud request (#2599)
- [PATCH] Corrected error handling in cross cloud scenario (#2602)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ public Bundle bundleFromBaseException(@NonNull final BaseException exception,
}

if (exception instanceof IntuneAppProtectionPolicyRequiredException) {
// Record MAM flow in telemetry
SpanExtension.current().setAttribute(AttributeName.is_mam_flow.name(), true);

builder.userName(((IntuneAppProtectionPolicyRequiredException) exception).getAccountUpn())
.localAccountId(((IntuneAppProtectionPolicyRequiredException) exception).getAccountUserId())
.authority(((IntuneAppProtectionPolicyRequiredException) exception).getAuthorityUrl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,5 +333,10 @@ public enum AttributeName {
/**
* Records the stacktrace for an out-of-memory exception.
*/
out_of_memory_exception_stacktrace
out_of_memory_exception_stacktrace,

/**
* Records if current flow is a mam flow.
*/
is_mam_flow
}