-
Notifications
You must be signed in to change notification settings - Fork 46
Helper method to record elapsed time in Otel, Fixes AB#2973488 #2768
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
Conversation
|
✅ Work item link check complete. Description contains link AB#2973488 to an Azure Boards work item. |
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.
Pull Request Overview
This PR adds a helper method to simplify recording elapsed time in OpenTelemetry by calculating the duration between a start time and the current time, then recording it as a span attribute.
- Adds a new
recordElapsedTimemethod to theOTelUtilityclass for measuring and recording time durations
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
common4j/src/main/com/microsoft/identity/common/java/opentelemetry/OTelUtility.java
Show resolved
Hide resolved
common4j/src/main/com/microsoft/identity/common/java/opentelemetry/OTelUtility.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <[email protected]>
mohitc1
left a comment
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.
![]()
Fixes AB#2973488
Helper method to record elapsed time in Otel