Skip to content

Commit

Permalink
Update log data model JSON examples to use nanosecond values
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tigrannajaryan committed Oct 15, 2021
1 parent 3e380e2 commit 379b558
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 379b558

Please sign in to comment.