You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This event represents an instantaneous click on the screen of an application.
37
-
38
-
The `app.screen.click` event can be used to indicate that a user has clicked or tapped on the screen portion of an application. Clicks outside of an application's active area SHOULD NOT generate this event. This event does not differentiate between touch/mouse down and touch/mouse up. Implementations SHOULD give preference to generating this event at the time the click is complete, typically on touch release or mouse up. The location of the click event MUST be provided in absolute screen pixels.
|[`app.screen.coordinate.x`](/docs/registry/attributes/app.md)| int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. |`0`; `131`|`Required`||
43
-
|[`app.screen.coordinate.y`](/docs/registry/attributes/app.md)| int | The y (vertical) component of a screen coordinate, in screen pixels. |`12`; `99`|`Required`||
44
-
45
-
<!-- markdownlint-restore -->
46
-
<!-- prettier-ignore-end -->
47
-
<!-- END AUTOGENERATED TEXT -->
48
-
<!-- endsemconv -->
49
-
50
-
### Event: `app.widget.click`
51
-
52
-
<!-- semconv event.app.widget.click -->
53
-
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
54
-
<!-- see templates/registry/markdown/snippet.md.j2 -->
|[`app.widget.id`](/docs/registry/attributes/app.md)| string | An identifier that uniquely differentiates this widget from other widgets in the same application. [1]|`f9bc787d-ff05-48ad-90e1-fca1d46130b3`; `submit_order_1829`|`Required`||
70
-
|[`app.screen.coordinate.x`](/docs/registry/attributes/app.md)| int | The x (horizontal) coordinate of a screen coordinate, in screen pixels. |`0`; `131`|`Opt-In`||
71
-
|[`app.screen.coordinate.y`](/docs/registry/attributes/app.md)| int | The y (vertical) component of a screen coordinate, in screen pixels. |`12`; `99`|`Opt-In`||
72
-
|[`app.widget.name`](/docs/registry/attributes/app.md)| string | The name of an application widget. [2]|`submit`; `attack`; `Clear Cart`|`Opt-In`||
73
-
74
-
**[1]`app.widget.id`:** A widget is an application component, typically an on-screen visual GUI element.
75
-
76
-
**[2]`app.widget.name`:** A widget is an application component, typically an on-screen visual GUI element.
Copy file name to clipboardExpand all lines: docs/code/README.md
+33-1Lines changed: 33 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ This document defines semantic conventions for source code.
23
23
|[`code.file.path`](/docs/registry/attributes/code.md)| string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity. |`/usr/local/MyApplication/content_root/app/index.php`|`Recommended`||
24
24
|[`code.function.name`](/docs/registry/attributes/code.md)| string | The method or function fully-qualified name without arguments. The value should fit the natural representation of the language runtime, which is also likely the same used within `code.stacktrace` attribute value. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Function'. This constraint is imposed to prevent redundancy and maintain data integrity. [1]|`com.example.MyHttpService.serveRequest`; `GuzzleHttp\Client::transfer`; `fopen`|`Recommended`||
25
25
|[`code.line.number`](/docs/registry/attributes/code.md)| int | The line number in `code.file.path` best representing the operation. It SHOULD point within the code unit named in `code.function.name`. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Line'. This constraint is imposed to prevent redundancy and maintain data integrity. |`42`|`Recommended`||
26
-
|[`code.stacktrace`](/docs/registry/attributes/code.md)| string | A stacktrace as a string in the natural representation for the language runtime. The representation is identical to [`exception.stacktrace`](/docs/exceptions/exceptions-spans.md#stacktrace-representation). This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Location'. This constraint is imposed to prevent redundancy and maintain data integrity. |`at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)`|`Opt-In`||
26
+
|[`code.stacktrace`](/docs/registry/attributes/code.md)| string | A stacktrace as a string in the natural representation for the language runtime. This attribute MUST NOT be used on the Profile signal since the data is already captured in 'message Location'. This constraint is imposed to prevent redundancy and maintain data integrity.[2]|`at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)`|`Opt-In`||
27
27
28
28
**[1]`code.function.name`:** Values and format depends on each language runtime, thus it is impossible to provide an exhaustive list of examples.
29
29
The values are usually the same (or prefixes of) the ones found in native stack trace representation stored in
@@ -41,6 +41,38 @@ Examples:
41
41
* Rust: `playground::my_module::my_cool_func`
42
42
* C function: `fopen`
43
43
44
+
**[2]`code.stacktrace`:** The table below, adapted from [Google Cloud][gcp-error-reporting], includes
45
+
possible representations of stacktraces in various languages. The table is not
46
+
meant to be a recommendation for any particular language, although SIGs are free
0 commit comments