Skip to content

Commit 4f82878

Browse files
authored
Move implementation details of the Observed Timestamp to the Log SDK (#4482)
1 parent 8bbac83 commit 4f82878

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ release.
6161
([#4463](https://github.com/open-telemetry/opentelemetry-specification/pull/4463))
6262
- Stabilize `EventName`.
6363
([#4475](https://github.com/open-telemetry/opentelemetry-specification/pull/4475))
64+
- Move implementation details of the `Observed Timestamp` to the Log SDK.
65+
([#4482](https://github.com/open-telemetry/opentelemetry-specification/pull/4482))
6466

6567
### Baggage
6668

specification/logs/api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ The effect of calling this API is to emit a `LogRecord` to the processing pipeli
112112
The API MUST accept the following parameters:
113113

114114
- [Timestamp](./data-model.md#field-timestamp) (optional)
115-
- [Observed Timestamp](./data-model.md#field-observedtimestamp) (optional). If unspecified the
116-
implementation SHOULD set it equal to the current time.
115+
- [Observed Timestamp](./data-model.md#field-observedtimestamp) (optional)
117116
- The [Context](../context/README.md) associated with the `LogRecord`.
118117
When implicit Context is supported, then this parameter SHOULD be optional and
119118
if unspecified then MUST use current Context.

specification/logs/sdk.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [ForceFlush](#forceflush)
1717
- [Logger](#logger)
1818
* [LoggerConfig](#loggerconfig)
19+
* [Emit a LogRecord](#emit-a-logrecord)
1920
* [Enabled](#enabled)
2021
- [Additional LogRecord interfaces](#additional-logrecord-interfaces)
2122
* [ReadableLogRecord](#readablelogrecord)
@@ -192,6 +193,11 @@ It consists of the following parameters:
192193
necessary for implementations to ensure that changes to `disabled` are
193194
immediately visible to callers of `Enabled`.
194195

196+
### Emit a LogRecord
197+
198+
If [Observed Timestamp](./data-model.md#field-observedtimestamp) is unspecified,
199+
the implementation SHOULD set it equal to the current time.
200+
195201
### Enabled
196202

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

0 commit comments

Comments
 (0)