File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Some of the additional features provided include:
58
58
* [ ANR detection] ( ./instrumentation/anr/ )
59
59
* [ Network change detection] ( ./instrumentation/network/ )
60
60
* Android [ Activity lifecycle instrumentation] ( ./instrumentation/activity/ )
61
- * Android Fragment lifecycle monitoring
61
+ * Android [ Fragment lifecycle monitoring] ( ./instrumentation/fragment )
62
62
* Access to the OpenTelemetry APIs for manual instrumentation
63
63
* Helpers to redact any span from export, or change span attributes before export
64
64
* Slow / frozen render detection
Original file line number Diff line number Diff line change @@ -23,15 +23,17 @@ This instrumentation produces the following telemetry:
23
23
### Activity state change
24
24
25
25
* Type: Span
26
- * Name: {` Created ` | ` Resumed ` | ` Paused ` | ` Stopped ` | ` Destroyed ` } (depends on the activity state transition)
26
+ * Name: {` Created ` | ` Resumed ` | ` Paused ` | ` Stopped ` | ` Destroyed ` | ` Restarted ` | } (depends on the activity state transition)
27
27
* Description: As the activity transitions between states, a span will be created to represent the
28
28
lifecycle of that state. Events are added for subsequent minor state changes.
29
29
* SpanEvents: {
30
30
` activityPreCreated ` | ` activityCreated ` | ` activityPostCreated ` |
31
+ ` activityPreStarted ` | ` activityStarted ` | ` activityPostStarted ` |
31
32
` activityPreResumed ` | ` activityResumed ` | ` activityPostResumed ` |
32
33
` activityPrePaused ` | ` activityPaused ` | ` activityPostPaused ` |
33
34
` activityPreStopped ` | ` activityStopped ` | ` activityPostStopped ` |
34
35
` activityPreDestroyed ` | ` activityDestroyed ` | ` activityPostDestroyed ` }
35
36
* Attributes:
36
- * ` activity.name ` : <name of activity >
37
+ * ` activityName ` : <name of activity >
37
38
* ` screen.name ` : <name of screen >
39
+ * ` last.screen.name ` : <name of screen >, only when span contains the ` activityPostResumed ` event.
Original file line number Diff line number Diff line change
1
+ # Fragment Instrumentation
2
+
3
+ Status: experimental
4
+
5
+ The fragment instrumentation helps to track the state of your application's Fragment lifecycle.
6
+
7
+ ## Telemetry
8
+
9
+ This instrumentation produces the following telemetry:
10
+
11
+ ### Fragment state change
12
+
13
+ * Type: Span
14
+ * Name: {` Created ` | ` Restored ` | ` Resumed ` | ` Paused ` | ` Stopped ` | ` Destroyed ` | ` ViewDestroyed ` | ` Detached ` |} (depends on the activity state transition)
15
+ * Description: As the activity transitions between states, a span will be created to represent the
16
+ lifecycle of that state. Events are added for subsequent minor state changes.
17
+ * SpanEvents: {
18
+ ` fragmentPreAttached ` | ` fragmentAttached ` | ` fragmentPreCreated ` | ` fragmentCreated ` | ` fragmentViewCreated `
19
+ ` fragmentStarted ` | ` fragmentResumed ` | ` fragmentPaused ` | ` fragmentStopped ` |
20
+ ` fragmentViewDestroyed ` | ` fragmentDestroyed ` | ` fragmentDetached ` }
21
+ * Attributes:
22
+ * ` fragmentName ` : <name of fragment >
23
+ * ` screen.name ` : <name of screen >
24
+ * ` last.screen.name ` : <name of screen >, when span contains the ` fragmentResumed ` event.
You can’t perform that action at this time.
0 commit comments