4242 type : date
4343 required : true
4444 description : |
45- The date when this log message was written.
45+ The human-readable date when the message was written.
4646
4747 - name : " written_ts"
4848 type : long
4949 required : true
5050 example : 1456820553816849408
5151 description : |
52- The timestamp in nano-second precision when this request metric message was written.
52+ The timestamp in nano-second precision when the message was written.
5353
5454 - name : " correlation_id"
5555 type : string
5656 required : true
5757 example : " db2d002e-2702-41ec-66f5-c002a80a3d3f"
5858 description : |
59- Should provide a unique identifier that can be used to correlate multiple
60- log messages into a logical unit (aka "business transaction")..
61-
59+ A unique identifier that can be used to correlate multiple messages into a logical unit.
60+
6261 Currently, we use a UUID for that matter, but future versions may use
63- SAP passport for this.
62+ a different key for this.
6463
6564 "-" indicates that no proper value could be provided.
6665
7069 inherit correlation ids from request processing layers further up in
7170 the processing stack. If so, that id should be used.
7271
72+ - name : " request_id"
73+ string : string
74+ required : false
75+ example : " e24a5963-95eb-4568-b1ae-81b67c41e99a"
76+ description : |
77+ A unique identifier that can be used to correlate multiple messages to a request.
78+
79+ - name : " tenant_id"
80+ string : string
81+ required : false
82+ example : " e24a5963-95eb-4568-b1ae-81b67c41e99a"
83+ description : |
84+ A unique identifier that can be used to correlate multiple messages to a tenant.
85+
7386 - name : " component_id"
7487 type : string
7588 required : true
7689 example : " 9e6f3ecf-def0-4baf-8fac-9339e61d5645"
7790 description : |
78- Uniquely identifies the software component that has processed the current
79- request. It may either be a "service" or an "application" that can be deployed to
91+ A unique identifier of the software component that has written the message.
92+ It may either be a "service" or an "application" that can be deployed to
8093 a container or VM, but it may not yet fully identify the actual "running instance" of
8194 that "component".
8295
@@ -88,17 +101,14 @@ ctx:
88101 required : false
89102 example : " my-fancy-component"
90103 description : |
91- A human-friendly name representing the software component.
92-
93- NOTE: Most likely NOT unique!
104+ A human-friendly, not necessarily unique, name representing the software component.
94105
95106 - name : " component_type"
96107 type : string
97108 required : true
98109 example : " application"
99110 description : |
100- Specifies the type of the sofware component that processed the current
101- request.
111+ The type of the software component that has written the message.
102112
103113 Either "application" or "service"
104114
108118 example : " 7"
109119 description : |
110120 CF allows us to scale out horizontally by running several instances of the
111- same "component" (see above) in one container, this is identifying the instance.
121+ same "component" in one container, this is identifying the instance.
112122 Defaults to "0".
113123
114124 - name : " container_id"
117127 format : ???
118128 example : " ???"
119129 description : |
120- Will allow us to identify the "box" or "container" onto which the component
121- instance(s) were deployed.
130+ The unique identifier of the container on which the software component instance is running.
122131
123132 NOTE: If security/privacy is not an issue, an IP address would be ok.
124133
130139 required : true
131140 example : " 280437b3-dd8b-40b1-bbab-1f05a44345f8"
132141 description : |
133- Uniquley identifies the CF organization to which the component belongs which
134- emitted this message.
142+ The unique identifier of the Cloud Foundry organization to which the software component belongs.
135143
136144 "-" indicates that no proper value could be provided.
137145
140148 required : true
141149 example : " acme"
142150 description : |
143- A human-friendly name representing the CF organization.
151+ The human-readable name of the Cloud Foundry organization.
144152
145153 NOTE: Most likely NOT unique!
146154
151159 required : true
152160 example : " 280437b3-dd8b-40b1-bbab-1f05a44345f8"
153161 description : |
154- Uniquely identifies the CF space to which the component belongs which emitted this message .
162+ The unique identifier of the Cloud Foundry space to which the software component belongs.
155163
156164 "-" indicates that no proper value could be provided.
157165
160168 required : true
161169 example : " test"
162170 description : |
163- A human-friendly name representing the CF space.
171+ The human-readable name of the Cloud Foundry space.
164172
165173 NOTE: Most likely NOT unique!
166174
@@ -169,12 +177,13 @@ ctx:
169177 required : true
170178 example : " [JAVA:BusinessLogicController]"
171179 description : |
172- The execution layer in the overall setup that emitted the message.
180+ The execution layer in the overall processing chain that has written the message.
173181
174182 - name : " type"
175183 type : string
176184 required : true
177185 description : |
186+ The type of the message.
178187 To make the message self-contained this is the type tag.
179188 As we're talking about log messages, it's always "logs".
180189
@@ -190,7 +199,7 @@ app-logs:
190199 required : true
191200 example : " com.sap.demo.shine.OrderController"
192201 description : |
193- The actual entity that wrote the log message.
202+ The actual application entity that wrote the log message, e.g. the Java class name .
194203
195204 NOTE: In Java, this is the name that was passed to the LoggerFactory
196205 when instantiating a Logger.
@@ -200,7 +209,7 @@ app-logs:
200209 required : false
201210 example : " http-nio-4655"
202211 description : |
203- Identifies the execution thread in which this log message has been written.
212+ The execution thread in which the log message has been written.
204213
205214 "-" indicates that no proper value could be provided.
206215
@@ -216,11 +225,12 @@ app-logs:
216225 required : true
217226 example : " This is a log messasge"
218227 description : |
219- The actual message string passed to the logger .
228+ The original log message that has been written by the application .
220229
221230 - name : " stacktrace"
222- type : string
231+ type : array
223232 required : false
233+ example : " stacktrace: [\" java.lang.NullPointerException\" ,\" at com.sap.demo.exception.NullPointerException\" ]"
224234 description : |
225235 Stacktrace information in case the message is reporting an exception.
226236
@@ -237,9 +247,6 @@ app-logs:
237247 required : false
238248 example : " cutom_fields: {\" some_key\" : \" some_value\" }"
239249 description : |
240- A JSON object representing the custom arguments passed to the logging
241- framework.
242-
243- NOTE: In Java, arguments have to be of type CustomField.
250+ A collection of non-standard fields as key-value pairs.
244251
245252 NOTE: As this is "custom" there are no predefined fields here!
0 commit comments