@@ -46,7 +46,7 @@ type: date
46
46
47
47
required: True
48
48
49
- The date when this log message was written.
49
+ The human-readable date when the message was written.
50
50
51
51
52
52
==== written_ts
@@ -57,7 +57,7 @@ example: 1456820553816849408
57
57
58
58
required: True
59
59
60
- The timestamp in nano-second precision when this request metric message was written.
60
+ The timestamp in nano-second precision when the message was written.
61
61
62
62
63
63
==== correlation_id
@@ -68,11 +68,10 @@ example: db2d002e-2702-41ec-66f5-c002a80a3d3f
68
68
69
69
required: True
70
70
71
- Should provide a unique identifier that can be used to correlate multiple
72
- log messages into a logical unit (aka "business transaction")..
71
+ A unique identifier that can be used to correlate multiple messages into a logical unit.
73
72
74
73
Currently, we use a UUID for that matter, but future versions may use
75
- SAP passport for this.
74
+ a different key for this.
76
75
77
76
"-" indicates that no proper value could be provided.
78
77
@@ -83,6 +82,24 @@ inherit correlation ids from request processing layers further up in
83
82
the processing stack. If so, that id should be used.
84
83
85
84
85
+ ==== request_id
86
+
87
+ example: e24a5963-95eb-4568-b1ae-81b67c41e99a
88
+
89
+ required: False
90
+
91
+ A unique identifier that can be used to correlate multiple messages to a request.
92
+
93
+
94
+ ==== tenant_id
95
+
96
+ example: e24a5963-95eb-4568-b1ae-81b67c41e99a
97
+
98
+ required: False
99
+
100
+ A unique identifier that can be used to correlate multiple messages to a tenant.
101
+
102
+
86
103
==== component_id
87
104
88
105
type: string
@@ -91,8 +108,8 @@ example: 9e6f3ecf-def0-4baf-8fac-9339e61d5645
91
108
92
109
required: True
93
110
94
- Uniquely identifies the software component that has processed the current
95
- request. It may either be a "service" or an "application" that can be deployed to
111
+ A unique identifier of the software component that has written the message.
112
+ It may either be a "service" or an "application" that can be deployed to
96
113
a container or VM, but it may not yet fully identify the actual "running instance" of
97
114
that "component".
98
115
@@ -108,9 +125,7 @@ example: my-fancy-component
108
125
109
126
required: False
110
127
111
- A human-friendly name representing the software component.
112
-
113
- NOTE: Most likely NOT unique!
128
+ A human-friendly, not necessarily unique, name representing the software component.
114
129
115
130
116
131
==== component_type
@@ -121,8 +136,7 @@ example: application
121
136
122
137
required: True
123
138
124
- Specifies the type of the sofware component that processed the current
125
- request.
139
+ The type of the software component that has written the message.
126
140
127
141
Either "application" or "service"
128
142
@@ -136,7 +150,7 @@ example: 7
136
150
required: True
137
151
138
152
CF allows us to scale out horizontally by running several instances of the
139
- same "component" (see above) in one container, this is identifying the instance.
153
+ same "component" in one container, this is identifying the instance.
140
154
Defaults to "0".
141
155
142
156
@@ -150,8 +164,7 @@ format: ???
150
164
151
165
required: False
152
166
153
- Will allow us to identify the "box" or "container" onto which the component
154
- instance(s) were deployed.
167
+ The unique identifier of the container on which the software component instance is running.
155
168
156
169
NOTE: If security/privacy is not an issue, an IP address would be ok.
157
170
@@ -167,8 +180,7 @@ example: 280437b3-dd8b-40b1-bbab-1f05a44345f8
167
180
168
181
required: True
169
182
170
- Uniquley identifies the CF organization to which the component belongs which
171
- emitted this message.
183
+ The unique identifier of the Cloud Foundry organization to which the software component belongs.
172
184
173
185
"-" indicates that no proper value could be provided.
174
186
@@ -181,7 +193,7 @@ example: acme
181
193
182
194
required: True
183
195
184
- A human-friendly name representing the CF organization.
196
+ The human-readable name of the Cloud Foundry organization.
185
197
186
198
NOTE: Most likely NOT unique!
187
199
@@ -196,7 +208,7 @@ example: 280437b3-dd8b-40b1-bbab-1f05a44345f8
196
208
197
209
required: True
198
210
199
- Uniquely identifies the CF space to which the component belongs which emitted this message .
211
+ The unique identifier of the Cloud Foundry space to which the software component belongs.
200
212
201
213
"-" indicates that no proper value could be provided.
202
214
@@ -209,7 +221,7 @@ example: test
209
221
210
222
required: True
211
223
212
- A human-friendly name representing the CF space.
224
+ The human-readable name of the Cloud Foundry space.
213
225
214
226
NOTE: Most likely NOT unique!
215
227
@@ -222,7 +234,7 @@ example: [JAVA:BusinessLogicController]
222
234
223
235
required: True
224
236
225
- The execution layer in the overall setup that emitted the message.
237
+ The execution layer in the overall processing chain that has written the message.
226
238
227
239
228
240
==== type
@@ -231,6 +243,7 @@ type: string
231
243
232
244
required: True
233
245
246
+ The type of the message.
234
247
To make the message self-contained this is the type tag.
235
248
As we're talking about log messages, it's always "logs".
236
249
@@ -251,7 +264,7 @@ example: com.sap.demo.shine.OrderController
251
264
252
265
required: True
253
266
254
- The actual entity that wrote the log message.
267
+ The actual application entity that wrote the log message, e.g. the Java class name .
255
268
256
269
NOTE: In Java, this is the name that was passed to the LoggerFactory
257
270
when instantiating a Logger.
@@ -265,7 +278,7 @@ example: http-nio-4655
265
278
266
279
required: False
267
280
268
- Identifies the execution thread in which this log message has been written.
281
+ The execution thread in which the log message has been written.
269
282
270
283
"-" indicates that no proper value could be provided.
271
284
@@ -289,12 +302,14 @@ example: This is a log messasge
289
302
290
303
required: True
291
304
292
- The actual message string passed to the logger .
305
+ The original log message that has been written by the application .
293
306
294
307
295
308
==== stacktrace
296
309
297
- type: string
310
+ type: array
311
+
312
+ example: stacktrace: ["java.lang.NullPointerException","at com.sap.demo.exception.NullPointerException"]
298
313
299
314
required: False
300
315
@@ -314,10 +329,7 @@ A list of names to further categorize this log message.
314
329
315
330
=== custom_fields Fields
316
331
317
- A JSON object representing the custom arguments passed to the logging
318
- framework.
319
-
320
- NOTE: In Java, arguments have to be of type CustomField.
332
+ A collection of non-standard fields as key-value pairs.
321
333
322
334
NOTE: As this is "custom" there are no predefined fields here!
323
335
0 commit comments