Skip to content

Commit

Permalink
O11Y-1045: opentelemetry-dart must manage different contexts for asyn…
Browse files Browse the repository at this point in the history
…c code

 - Improvements to Context documentation.
  • Loading branch information
Michael Yeager committed Oct 20, 2021
1 parent 58a3b47 commit 8b805ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/api/context/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ class Context {
/// It should generally not be required to use the root [Context] directly -
/// instead, use [Context.current] to operate on the current [Context].
/// Only use this context if you are certain you need to disregard the
/// current [Context].
/// current [Context]. For example, when instrumenting an asynchronous
/// event handler which may fire while an unrelated [Context] is "current".
static Context get root => Context._(Zone.root);

/// Returns a key to be used to read and/or write values to a context.
Expand Down

0 comments on commit 8b805ca

Please sign in to comment.