Suggest column # as an extra source code attribute (#3029)

This commit is contained in:
jordigh 2023-01-02 19:01:32 -05:00 committed by GitHub
parent a7ede6fbfa
commit 4de43114a4
5 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
groups: groups:
- id: exception - id: exception
type: span
prefix: exception prefix: exception
brief: > brief: >
This document defines the shared attributes used to This document defines the shared attributes used to

View File

@ -1,5 +1,6 @@
groups: groups:
- id: event - id: event
type: span
prefix: event prefix: event
brief: > brief: >
This document defines attributes for Events represented using Log Records. This document defines attributes for Events represented using Log Records.

View File

@ -1,5 +1,6 @@
groups: groups:
- id: log-exception - id: log-exception
type: span
prefix: exception prefix: exception
brief: > brief: >
This document defines attributes for exceptions represented using Log This document defines attributes for exceptions represented using Log

View File

@ -289,3 +289,8 @@ groups:
brief: > brief: >
The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
examples: 42 examples: 42
- id: column
type: int
brief: >
The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
examples: 16

View File

@ -315,4 +315,5 @@ about the span.
| `code.namespace` | string | The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. | `com.example.MyHttpService` | Recommended | | `code.namespace` | string | The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. | `com.example.MyHttpService` | Recommended |
| `code.filepath` | string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). | `/usr/local/MyApplication/content_root/app/index.php` | Recommended | | `code.filepath` | string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). | `/usr/local/MyApplication/content_root/app/index.php` | Recommended |
| `code.lineno` | int | The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. | `42` | Recommended | | `code.lineno` | int | The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. | `42` | Recommended |
| `code.column` | int | The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. | `16` | Recommended |
<!-- endsemconv --> <!-- endsemconv -->