Skip to content

Commit 6bc026a

Browse files
committed
Add semantic conventions for log_source attributes
1 parent ecc2635 commit 6bc026a

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ release.
1919
([#1935](https://github.com/open-telemetry/opentelemetry-specification/pull/1935))
2020

2121
### Logs
22+
- Add log_source attributes.
23+
([#2022](https://github.com/open-telemetry/opentelemetry-specification/pull/2022))
2224

2325
### Resource
2426

spec-compliance-matrix.md

+6
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 |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Semantic Conventions for Log Files
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 Files](#log-files)
12+
* [`log_source.file.`](#log_sourcefile)
13+
14+
<!-- tocstop -->
15+
16+
## Log Files
17+
18+
### `log_source.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)