Skip to content

Commit 65083e3

Browse files
committed
Add semantic conventions for log_source attributes
1 parent ecc2635 commit 65083e3

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ release.
2020

2121
### Logs
2222

23+
- Add log_source attributes.
24+
([#2022](https://github.com/open-telemetry/opentelemetry-specification/pull/2022))
25+
2326
### Resource
2427

2528
### Semantic Conventions

spec-compliance-matrix.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ formats is required. Implementing more than one format is optional.
9494
|----------------------------------------------|--------|--|----|---|------|----|------|---|----|---|----|-----|
9595
|TBD|
9696

97+
## Logs
98+
99+
|Feature |Optional|Collector|Go|Java|JS |Python|Ruby|Erlang|PHP|Rust|C++|.NET|Swift|
100+
|----------------------------------------------|--------|---------|--|----|---|------|----|------|---|----|---|----|-----|
101+
|TBD|
102+
97103
## Resource
98104

99105
| Feature | Optional | Go | Java | JS | Python | Ruby | Erlang | PHP | Rust | C++ | .NET | Swift |
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Semantic Conventions for Log Sources
2+
3+
**Status**: [Experimental](../../document-status.md)
4+
5+
This document describes attributes for log files in OpenTelemetry.
6+
7+
<!-- Re-generate TOC with `markdown-toc --no-first-h1 -i` -->
8+
9+
<!-- toc -->
10+
11+
- [Log Sources](#log-sources)
12+
* [File](#file)
13+
14+
<!-- tocstop -->
15+
16+
## Log Sources
17+
18+
### File
19+
20+
**Description:** A file from which logs were read.
21+
| Name | Description | Value Type | Attribute Key | Attribute Values |
22+
| ----------------| ----------- | ---------- | -------------- | -------------------- |
23+
| log_source.file | The basename of the file | string | name | (identifier) |
24+
| | The full path to the file | string | path | (identifier) |
25+
| | The basename of the file, with symlinks resolved | string | type | (identifier) |
26+
| | The full path to the file, with symlinks resolved | string | mode | (identifier) |
27+
| | If applicable, the stream associated with the file | string | stream | stdout, stderr |

0 commit comments

Comments
 (0)