Observability
The Observability adapter offers automatic logging, distributed Trace in the OpenTemetry pattern, and Metrics. In the settings it is possible to disable, configure Log settings in the local development environment.
The ‘saveinfile’ parameter enables the option to save the log locally on the developer’s machine. The “HideDetails” item hides information in the Log, and the “ShowHttpErrors” controls the display of http errors in the Log.
|
|
Observability | — |
---|---|
Enable | Enable the Stream adapter (True/False) |
Log | — |
Enable | Enable logging (True/False) |
Save | Enable saving on a local path |
Type | Configure the format (Text/Json) |
FileSize | The maximum size of each saved file |
HideDetails | Hide payload details in the log (True/False) |
HideDateTime | Hide the Date and Time in the Log (True/False) |
ShowAppName | Show application name in log (True/False) |
Path | The path of a local folder to save logs |
ShowHttpErrors | Display in log HTTP errors (404, 500) |
Export | |
Enable | Enable log export (True/False) |
Type | Export logs to services (SEQ/Elastic) |
Host | Destination URL |
ApiKey | Auth Key to access url |
ControlLevelSwitch | |
Metrics | — |
Enable | Enable Metrics Export (True/False) |
Trace | — |
Enable | Enable distributed trace export |
Type | OpenTelemetry Export Format (Zipkin/Jaeger) |
Endpoint | Destination URL |
Enabling local export for Jarger
In this example, you can track a distributed trace export configuration (OpenTelemetry) for Jaeger.
|
|
Enabling local export for Zipkin
In this example, you can track a distributed trace export configuration (OpenTelemetry) to Zipkin.
|
|
Important information:
- In the production environment, especially in a Kubernetes cluster, it is highly recommended to deploy a collector such as Fluentbit or similar solutions to monitor the default output (stdout) of containers and obtain Logs for targeting to a destination.
- Cloud platforms offer collectors with OpenTelemetry support
Explore implementation examples:
Last modified August 20, 2024 (2f9802da)