Observability
Diom supports sending tracing and metric information to an OpenTelemetry collector, which can be sent to services such as Datadog, Coralogix, and Sentry.
To configure OpenTelemetry configure the following values:
[opentelemetry]
# The OpenTelemetry address to send events to if given.
#
# Currently only GRPC exports are supported.
address = "https://otel-collector.example.com:4317"
# The OpenTelemetry address to send metrics to if given.
#
# If not specified, the server will attempt to fall back
# to `opentelemetry_address`.
metrics_address = "https://metrics-collector.example.com:4317"
# OpenTelemetry metrics protocol
#
# By default, metrics are sent via GRPC. Some metrics destinations, most
# notably Prometheus, only support receiving metrics via HTTP.
metrics_protocol = "grpc"
# The ratio at which to sample spans when sending to OpenTelemetry.
#
# When not given it defaults to always sending.
# If the OpenTelemetry address is not set, this will do nothing.
sample_ratio = 1.0
# The service name to use for OpenTelemetry. If not provided, it defaults to "diom".
service_name = "diom"Similarly to other configuration options, you can override these using environment variables. For more information, please refer to the configuration page.
Last updated on