Observability
Telemetry configs defines logging, metrics (coming soon), and traces (coming soon) generated by Glide.
Logging
Here are available parameters to define Glide's logging:
telemetry.logging.level(default:info) - minimal log level to output. Possible values:debug,info,warning,errortelemetry.logging.encoding(default:json) - logging encoding. Thejsonoutputs structured logs useful for production setup whileconsoleis much more readable, so it fits development setups.telemetry.logging.disable_caller- controls adding information about place in Glide's codebase where the log was generatedtelemetry.logging.disable_stacktrace- controls adding information about full stacktrace to the code that generated logstelemetry.logging.output_paths(default:[](an empty array)) - allows to save logging streams to the specified filestelemetry.logging.output_paths(default:{}(an empty map)) - key-value pairs to label each Glide's log record.
A sample of the configuration:
telemetry:
logging:
level: info # available values: debug, info, warning, error
encoding: json # available values: console, json
disable_caller: false
disable_stacktrace: false
output_paths: []
initial_fields: {}
# everything else
# ...Metrics
This section is going to be added soon. Stay tuned!
Tracing
This section is going to be added soon. Stay tuned!