1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Example configuration for testing telemetry with Signoz or other OTLP backends
#
# Usage:
# cargo run --example full -- -c examples/config.toml
# cargo run --example full -- -c examples/config.toml -i 0 # run forever
# cargo run --example full -- -c examples/config.toml -i 50 -d 500 # 50 iterations, 500ms delay
# App Settings
[]
# Port to listen on
= 8080
# Hostname to listen to
= "localhost"
# Directory where the application databases are located
= "/var/db/my_databases"
# Settings for tracing (spans)
# This sends tracing spans from #[instrument] and info_span! to your OTLP backend
[]
# gRPC endpoint for traces. Common values:
# Signoz: http://localhost:4317
# Jaeger: http://localhost:4317
# Grafana: http://localhost:4317
= "http://localhost:4317"
# Settings for logging
[]
# Console log level. Uses env-filter syntax: "level" or "crate=level,other_crate=level"
# Set to "off" to disable console output
= "info,full=debug"
# OpenTelemetry log level. Logs at this level and above are sent to your OTLP backend.
# Note: console_level is limited by otel_level
= "info,full=debug"
# gRPC endpoint for logs. Remove or comment out to disable log export
= "http://localhost:4317"
# Settings for metrics (counters, histograms, gauges)
[]
# HTTP endpoint for metrics. Note: metrics often use HTTP (port 4318), not gRPC (port 4317)
# Common values:
# Signoz: http://localhost:4318/v1/metrics
# Prometheus: http://localhost:4318/v1/metrics
= "http://localhost:4318/v1/metrics"