Skip to content

Commit 84f38b6

Browse files
Add standalone telemetry config + clang-format test fixes
Add docker/telemetry/xrpld-telemetry.cfg for local testing with the observability stack. Apply clang-format corrections to TraceContextPropagator test (include ordering, line wrapping). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b3510fe commit 84f38b6

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Standalone xrpld configuration with OpenTelemetry enabled.
2+
#
3+
# Usage:
4+
# 1. Start the observability stack:
5+
# docker compose -f docker/telemetry/docker-compose.yml up -d
6+
# 2. Run xrpld in standalone mode:
7+
# ./xrpld --conf docker/telemetry/xrpld-telemetry.cfg -a --start
8+
# 3. Send RPC commands to exercise tracing:
9+
# curl -s http://localhost:5005 -d '{"method":"server_info"}'
10+
# 4. View traces in Jaeger UI: http://localhost:16686
11+
12+
[server]
13+
port_rpc_admin_local
14+
port_ws_admin_local
15+
16+
[port_rpc_admin_local]
17+
port = 5005
18+
ip = 127.0.0.1
19+
admin = 127.0.0.1
20+
protocol = http
21+
22+
[port_ws_admin_local]
23+
port = 6006
24+
ip = 127.0.0.1
25+
admin = 127.0.0.1
26+
protocol = ws
27+
28+
[node_db]
29+
type=NuDB
30+
path=./data/nudb
31+
online_delete=256
32+
advisory_delete=0
33+
34+
[database_path]
35+
./data
36+
37+
[debug_logfile]
38+
./data/debug.log
39+
40+
[rpc_startup]
41+
{ "command": "log_level", "severity": "debug" }
42+
43+
[ssl_verify]
44+
0
45+
46+
# --- OpenTelemetry tracing ---
47+
[telemetry]
48+
enabled=1
49+
endpoint=http://localhost:4318/v1/traces
50+
exporter=otlp_http
51+
sampling_ratio=1.0
52+
batch_size=512
53+
batch_delay_ms=5000
54+
max_queue_size=2048
55+
trace_rpc=1
56+
trace_transactions=1
57+
trace_consensus=1
58+
trace_peer=0
59+
trace_ledger=1

0 commit comments

Comments
 (0)