|
| 1 | +/////////////////////////////////////////////////////////////////////////////// |
| 2 | + |
| 3 | + Copyright (c) 2021 Oracle and/or its affiliates. |
| 4 | + |
| 5 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | + you may not use this file except in compliance with the License. |
| 7 | + You may obtain a copy of the License at |
| 8 | + |
| 9 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | + |
| 11 | + Unless required by applicable law or agreed to in writing, software |
| 12 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | + See the License for the specific language governing permissions and |
| 15 | + limitations under the License. |
| 16 | + |
| 17 | +/////////////////////////////////////////////////////////////////////////////// |
| 18 | +
|
| 19 | +== Traced spans |
| 20 | +
|
| 21 | +The following table lists all spans traced by Helidon components: |
| 22 | +
|
| 23 | +|=== |
| 24 | +|component |span name |description |
| 25 | +
|
| 26 | +|`web-server` |`HTTP Request` |The overall span of the Web Server from request intitiation until response |
| 27 | +Note that in `Zipkin` the name is replaced with `jax-rs` span name if `jax-rs` tracing |
| 28 | +is used. |
| 29 | +|`web-server` |`content-read` |Span for reading the request entity |
| 30 | +|`web-server` |`content-write` |Span for writing the response entity |
| 31 | +|`security` |`security` |Processing of request security |
| 32 | +|`security` |`security:atn` |Span for request authentication |
| 33 | +|`security` |`security:atz` |Span for request authorization |
| 34 | +|`security` |`security:response` |Processing of response security |
| 35 | +|`security` |`security:outbound` |Processing of outbound security |
| 36 | +|`jax-rs` |A generated name |Span for the resource method invocation, name is generated from class and method name |
| 37 | +|`jax-rs` |`jersey-client-call` |Span for outbound client call |
| 38 | +|=== |
| 39 | +
|
| 40 | +Some of these spans `log` to the span. These log events can be (in most cases) configured: |
| 41 | +
|
| 42 | +|=== |
| 43 | +|span name |log name |configurable |enabled by default |description |
| 44 | +
|
| 45 | +|`HTTP Request` |`handler.class` |YES |YES |Each handler has its class and event logged |
| 46 | +|`security` |`status` |YES |YES |Logs either "status: PROCEED" or "status: DENY" |
| 47 | +|`security:atn` |`security.user` |YES |NO |The username of the user if logged in |
| 48 | +|`security:atn` |`security.service` |YES |NO |The name of the service if logged in |
| 49 | +|`security:atn` |`status` |YES |YES |Logs the status of security response (such as `SUCCESS`) |
| 50 | +|`security:atz` |`status` |YES |YES |Logs the status of security response (such as `SUCCESS`) |
| 51 | +|`security:outbound`|`status` |YES |YES |Logs the status of security response (such as `SUCCESS`) |
| 52 | +|=== |
| 53 | +
|
| 54 | +There are also tags that are set by Helidon components. These are not configurable. |
| 55 | +
|
| 56 | +|=== |
| 57 | +|span name |tag name |description |
| 58 | +
|
| 59 | +|`HTTP Request` |`component` |name of the component - `helidon-webserver`, or `jaxrs` when using MP |
| 60 | +|`HTTP Request` |`http.method` |HTTP method of the request, such as `GET`, `POST` |
| 61 | +|`HTTP Request` |`http.status_code` |HTTP status code of the response |
| 62 | +|`HTTP Request` |`http.url` |The path of the request (for SE without protocol, host and port) |
| 63 | +|`HTTP Request` |`error` |If the request ends in error, this tag is set to `true`, usually accompanied by logs with details |
| 64 | +|`content-read` |`requested.type` |Type (class) of the requested entity (if entity is read) |
| 65 | +|`content-write` |`response.type` |Type (class) of the entity being sent (if enitty is sent) |
| 66 | +|`security` |`security.id` |ID of the security context created for this request (if security is used) |
| 67 | +|`jersey-client-call` |`http.method` |HTTP method of the client request |
| 68 | +|`jersey-client-call` |`http.status_code` |HTTP status code of client response |
| 69 | +|`jersey-client-call` |`http.url` |Full URL of the request (such as `http://localhost:8080/greet`) |
| 70 | +|=== |
| 71 | +
|
0 commit comments