Skip to content

Commit 3fcb74b

Browse files
pellaredtrasklmolkova
authored
Logs API to have functionality for reusing Standard Attributes (#4373)
Fixes #4201 Reference implementations: - open-telemetry/opentelemetry-go#6180 - open-telemetry/opentelemetry-java#6983 Related Slack thread: https://cloud-native.slack.com/archives/C062HUREGUV/p1736545245331779 --------- Co-authored-by: Trask Stalnaker <[email protected]> Co-authored-by: Liudmila Molkova <[email protected]>
1 parent 3b037be commit 3fcb74b

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ release.
1717

1818
- Define how SDK implements `Logger.Enabled`.
1919
([#4381](https://github.com/open-telemetry/opentelemetry-specification/pull/4381))
20+
- Logs API should have functionality for reusing Standard Attributes.
21+
([#4373](https://github.com/open-telemetry/opentelemetry-specification/pull/4373))
2022

2123
### Baggage
2224

spec-compliance-matrix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ Disclaimer: this list of features is still a work in progress, please refer to t
193193
| LoggerProvider.Shutdown | | | + | | + | | | + | | + | - | |
194194
| LoggerProvider.ForceFlush | | | + | | + | | | + | | + | - | |
195195
| Logger.Emit(LogRecord) | | | + | | + | | | + | | + | - | |
196+
| Reuse Standard Attributes | X | + | | | | | | | | | | |
196197
| LogRecord.Set EventName | | | | | | | | | | | | |
197198
| Logger.Enabled | X | + | | | | | | | + | + | | |
198199
| SimpleLogRecordProcessor | | | + | | + | | | + | | + | | |

specification/logs/api.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,14 @@ The API MUST accept the following parameters:
124124
- [Attributes](./data-model.md#field-attributes) (optional)
125125
- **Status**: [Development](../document-status.md) - [Event Name](./data-model.md#field-eventname) (optional)
126126

127+
**Status**: [Development](../document-status.md)
128+
129+
The API SHOULD provide functionality for users to convert
130+
[Standard Attributes](../common/README.md#standard-attribute)
131+
so they can be used, or directly accept them, in the log signal.
132+
This allows the reuse of [Standard Attributes](../common/README.md#standard-attribute)
133+
across signals.
134+
127135
### Enabled
128136

129137
**Status**: [Development](../document-status.md)

0 commit comments

Comments
 (0)