Add ObservedTimestamp to LogRecordData#6979
Add ObservedTimestamp to LogRecordData#6979juliuskoval wants to merge 6 commits intoopen-telemetry:mainfrom
Conversation
|
On a somewhat related note, it seems to me that the spec suggests that |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6979 +/- ##
==========================================
- Coverage 88.87% 88.81% -0.07%
==========================================
Files 263 263
Lines 12424 12434 +10
==========================================
+ Hits 11042 11043 +1
- Misses 1382 1391 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/OpenTelemetry.Api/.publicApi/Experimental/PublicAPI.Unshipped.txt
Outdated
Show resolved
Hide resolved
...emetry.Exporter.OpenTelemetryProtocol/Implementation/Serializer/ProtobufOtlpLogSerializer.cs
Show resolved
Hide resolved
rajkumar-rangaraj
left a comment
There was a problem hiding this comment.
Left a suggestion to update OTLP Exporter changelog.
I think that we should document this spec deviation in the document (can be separate PR). What is more it will be great to create some issue to fix it. There is label required major bump. |
I created this issue to track all the deviations from the spec. #6992 |
Kielek
left a comment
There was a problem hiding this comment.
Sorry for delays with reviews. Finally, I was able to finish other OTel Auto task.
If we go with non-nullable approach, it should be fine with some small adjustments.
I have checked also other possibilities (the code is still dirty and probably needs to be split into at least 2 PRs, but it shows potential solution without breaking changes.
Description https://github.com/Kielek/opentelemetry-dotnet/blob/3ee221fe48f17ca399b3dd4d59d7cca9cf8b96de/docs/design/make-timestamp-nullable.md
and the PR itself: Kielek@3ee221f
There was a problem hiding this comment.
Similar change should be done for ConsoleExporter.
Together with Timestamp, we should log also Observed timestamp.
Please add also CHANGELOG entry.
| { | ||
| internal DateTime TimestampBacking = DateTime.UtcNow; | ||
|
|
||
| internal DateTime ObservedTimestampBacking = DateTime.UtcNow; |
There was a problem hiding this comment.
Consider, I think that we should avoid any drifts between these values by default.
| internal DateTime ObservedTimestampBacking = DateTime.UtcNow; | |
| internal DateTime ObservedTimestampBacking = TimestampBacking; |
dee66ac to
27cb08b
Compare
|
@Kielek Sorry about taking so long as well. Regarding nullability, it seems to me that the safest approach would be to make |
Towards #4433
Changes
Adds
ObservedTimestamptoLogRecordDataandLogRecord.Merge requirement checklist
CHANGELOG.mdfiles updated for non-trivial changes