Skip to content

Commit

Permalink
Suggest column # as an extra source code attribute (open-telemetry#3029)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordigh authored Jan 3, 2023
1 parent 57a2f3e commit 59232c2
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ release.

### Semantic Conventions

- Add `code.lineno` source code attribute
([#3029](https://github.com/open-telemetry/opentelemetry-specification/pull/3029))

### Compatibility

### OpenTelemetry Protocol
Expand Down
1 change: 1 addition & 0 deletions semantic_conventions/exception.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
groups:
- id: exception
type: span
prefix: exception
brief: >
This document defines the shared attributes used to
Expand Down
1 change: 1 addition & 0 deletions semantic_conventions/logs/events.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
groups:
- id: event
type: span
prefix: event
brief: >
This document defines attributes for Events represented using Log Records.
Expand Down
1 change: 1 addition & 0 deletions semantic_conventions/logs/log-exception.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
groups:
- id: log-exception
type: span
prefix: exception
brief: >
This document defines attributes for exceptions represented using Log
Expand Down
5 changes: 5 additions & 0 deletions semantic_conventions/trace/general.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions specification/trace/semantic_conventions/span-general.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
<!-- endsemconv -->

0 comments on commit 59232c2

Please sign in to comment.