-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add docs for network change * Update instrumentation/network/README.md Co-authored-by: Manoel Aranda Neto <[email protected]> --------- Co-authored-by: Manoel Aranda Neto <[email protected]>
- Loading branch information
1 parent
ed83d5e
commit ae83d01
Showing
2 changed files
with
30 additions
and
1 deletion.
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,29 @@ | ||
|
||
# Network Change Instrumentation | ||
|
||
Status: experimental | ||
|
||
Android applications are typically deployed on mobile devices. These mobile devices | ||
have the ability to move between networks, and sometimes a network change can | ||
have an impact on application performance characteristics. This instrumentation | ||
will generate telemetry when the network changes, as detected | ||
via [ConnectivityManager.NetworkCallback](https://developer.android.com/reference/android/net/ConnectivityManager.NetworkCallback). | ||
|
||
This instrumentation only generates telemetry when the application is in the foreground, | ||
not when the application is backgrounded. | ||
|
||
## Telemetry | ||
|
||
This instrumentation produces the following telemetry: | ||
|
||
### Network Change | ||
|
||
* Type: Span | ||
* Name: `network.change` | ||
* Description: This zero-duration span is started and ended when a network change is detected. | ||
* Attributes: | ||
* `network.status`: One of `lost` or `available`. | ||
* `network.connection.type` (semconv) one of `cell`, `wifi`, `wired`, `unavailable`, `unknown`, `vpn`. | ||
|
||
Note: This instrumentation supports additional user-configurable `AttributeExtractors` that | ||
may set additional attributes when given a `CurrentNetwork` instance. |