diff --git a/semantic_conventions/exception.yaml b/semantic_conventions/exception.yaml index 959aba51f..9f47fb670 100644 --- a/semantic_conventions/exception.yaml +++ b/semantic_conventions/exception.yaml @@ -1,5 +1,6 @@ groups: - id: exception + type: span prefix: exception brief: > This document defines the shared attributes used to diff --git a/semantic_conventions/logs/events.yaml b/semantic_conventions/logs/events.yaml index da8ac3ccf..7d7d80f88 100644 --- a/semantic_conventions/logs/events.yaml +++ b/semantic_conventions/logs/events.yaml @@ -1,5 +1,6 @@ groups: - id: event + type: span prefix: event brief: > This document defines attributes for Events represented using Log Records. diff --git a/semantic_conventions/logs/log-exception.yaml b/semantic_conventions/logs/log-exception.yaml index 285701d59..94c52ba80 100644 --- a/semantic_conventions/logs/log-exception.yaml +++ b/semantic_conventions/logs/log-exception.yaml @@ -1,5 +1,6 @@ groups: - id: log-exception + type: span prefix: exception brief: > This document defines attributes for exceptions represented using Log diff --git a/semantic_conventions/trace/general.yaml b/semantic_conventions/trace/general.yaml index fd800b973..4491cc102 100644 --- a/semantic_conventions/trace/general.yaml +++ b/semantic_conventions/trace/general.yaml @@ -289,3 +289,8 @@ groups: brief: > The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. 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 diff --git a/specification/trace/semantic_conventions/span-general.md b/specification/trace/semantic_conventions/span-general.md index 8666d3378..b0091f667 100644 --- a/specification/trace/semantic_conventions/span-general.md +++ b/specification/trace/semantic_conventions/span-general.md @@ -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.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.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 |