Skip to content

Commit

Permalink
Update log data model JSON examples to use nanosecond values (open-te…
Browse files Browse the repository at this point in the history
…lemetry#2024)

The data model says that timestamps are nanosecond values, but examples use milliseconds.
Updated to use stringified nanoseconds according to open-telemetry#1637

Fixes: open-telemetry#1049

Co-authored-by: Sergey Kanzhelev <S.Kanzhelev@live.com>
  • Loading branch information
tigrannajaryan and SergeyKanzhelev authored Oct 15, 2021
1 parent 1762f0d commit 57a60fa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions specification/logs/data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@ Example 1

```javascript
{
"Timestamp": 1586960586000, // JSON needs to make a decision about
// how to represent nanoseconds.
"Timestamp": "1586960586000000000",
"Attributes": {
"http.status_code": 500,
"http.url": "http://example.com",
Expand All @@ -475,7 +474,7 @@ Example 2

```javascript
{
"Timestamp": 1586960586000,
"Timestamp": "1586960586000000000",
...
"Body": {
"i": "am",
Expand All @@ -491,7 +490,7 @@ Example 3

```javascript
{
"Timestamp": 1586960586000,
"Timestamp": "1586960586000000000",
"Attributes":{
"http.scheme":"https",
"http.host":"donut.mycie.com",
Expand Down

0 comments on commit 57a60fa

Please sign in to comment.