Skip to content

Commit 7d482a9

Browse files
authored
Add device registration IPC attributes to AttributeName enum and update SpanName enum, Fixes AB#3534948 (#3007)
This pull request adds new telemetry support for device registration IPC strategies by introducing several new attributes and a span name. These changes will allow us to track and diagnose device registration flows more effectively in distributed tracing. **Telemetry attribute additions:** * Added new `AttributeName` enum values for device registration IPC strategies: `content_provider_status`, `bound_service_status`, `legacy_am_status`, and `device_registration_protocol_name`, enabling more granular telemetry on device registration flows. **Span name additions:** * Added `DeviceRegistrationIpc` to the `SpanName` enum, allowing tracing of device registration IPC operations as distinct spans. [AB#3534948](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3534948)
1 parent 98034f5 commit 7d482a9

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,30 @@ public enum AttributeName {
615615

616616
//endregion
617617

618+
//region Device Registration IPC Attributes
619+
620+
/**
621+
* Indicates the status of content provider IPC strategy for device registration.
622+
*/
623+
content_provider_status,
624+
625+
/**
626+
* Indicates the status of bound service IPC strategy for device registration.
627+
*/
628+
bound_service_status,
629+
630+
/**
631+
* Indicates the status of Legacy Account Manager IPC strategy for device registration.
632+
*/
633+
legacy_account_manager_status,
634+
635+
/**
636+
* Indicates the name of the device registration protocol being executed.
637+
*/
638+
device_registration_protocol_name,
639+
640+
//endregion
641+
618642
//region WebView target=_blank navigation
619643

620644
/**

common4j/src/main/com/microsoft/identity/common/java/opentelemetry/SpanName.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public enum SpanName {
3737
CertBasedAuth,
3838
MSAL_PerformIpcStrategy,
3939
DeviceRegistrationApi,
40+
DeviceRegistrationIpc,
4041
WorkplaceJoinApi,
4142
AcquireTokenDcf,
4243
AcquireTokenDcfAuthRequest,

0 commit comments

Comments
 (0)