Created
March 25, 2022 18:26
-
-
Save ammbra/60966d62c011d3b2c914eaf7a44add78 to your computer and use it in GitHub Desktop.
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
Span span = Span.fromContext(Context.current()) | |
.setAttribute("pause", "start"); |
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
Option1 | |
span.setStatus(StatusCode.ERROR, "Execution was interrupted"); | |
span.setAttribute("unexpected.pause", "exception"); | |
Option 2 | |
span.setStatus(StatusCode.ERROR, | |
"Execution was interrupted"); | |
span.setAttribute("unexpected.pause", "exception"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment