Skip to content

Commit 95e0aa6

Browse files
authored
Add tracing fields to spec (#29)
1 parent 121c8dd commit 95e0aa6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

spec/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ The following example describes a richer set of fields in an event that has not
6060
"app_uptime": "2016-05-15T14:03:12.345Z"
6161
},
6262
"tags": ["production", "env001"],
63+
"trace.id": "4bf92f3577b34da6a3ce929d0e0e4736",
64+
"transaction.id": "00f067aa0ba902b7"
6365
}
6466
```
6567

spec/spec.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@
3838
"substitute": "_"
3939
}
4040
}
41+
},
42+
"trace.id": {
43+
"type": "string",
44+
"required": false,
45+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-tracing.html",
46+
"comment": "When APM agents add this field to the context, ecs loggers should pick it up and add it to the log event."
47+
},
48+
"transaction.id": {
49+
"type": "string",
50+
"required": false,
51+
"url": "https://www.elastic.co/guide/en/ecs/current/ecs-tracing.html",
52+
"comment": "When APM agents add this field to the context, ecs loggers should pick it up and add it to the log event."
4153
}
4254
}
43-
}
55+
}

0 commit comments

Comments
 (0)