-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* order alphabeticaly * add docs for anr * spotless
- Loading branch information
1 parent
5b3d4ea
commit 33fa4a5
Showing
2 changed files
with
34 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
# ANR (Application Not Responding) Instrumentation | ||
|
||
Status: experimental | ||
|
||
The ANR (Application Not Responding) instrumentation helps to detect | ||
when an application becomes unresponsive. This instrumentation functions | ||
by polling the UI thread once every second, verifying that the main UI | ||
thread is still active. If 5 consecutive checks fail, then an ANR condition | ||
has occurred, and telemetry will be generated. | ||
|
||
The ANR instrumentation is only active when the application is in the | ||
foreground. | ||
|
||
## Telemetry | ||
|
||
This instrumentation produces the following telemetry: | ||
|
||
### ANR | ||
|
||
* Type: Span | ||
* Name: `ANR` | ||
* Description: This zero-duration span is created when this instrumentation detects an ANR. | ||
* Status: `ERROR` (always) | ||
* Attributes: | ||
* `exception.stacktrace`: A string representation of the call stack of the main thread at the time of the ANR. | ||
([see semconv here](https://github.com/open-telemetry/semantic-conventions/blob/0b3babde7ff9f74b03a1a49adcdb319354d47d85/docs/attributes-registry/exception.md#exception-stacktrace)) | ||
|
||
Note: This instrumentation supports additional user-configurable `AttributeExtractors` that | ||
may set additional attributes from the given `StackTraceElement[]`. |