Skip to content

Instantly share code, notes, and snippets.

@ammbra
Created March 25, 2022 18:26
Show Gist options
  • Save ammbra/60966d62c011d3b2c914eaf7a44add78 to your computer and use it in GitHub Desktop.
Save ammbra/60966d62c011d3b2c914eaf7a44add78 to your computer and use it in GitHub Desktop.
Span span = Span.fromContext(Context.current())
.setAttribute("pause", "start");
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