mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
Merge branch 'pratik/otel-phase9-metric-gap-fill' into pratik/otel-phase10-workload-validation
This commit is contained in:
@@ -111,7 +111,7 @@ These can be added later if dashboard queries specifically need them. The node h
|
||||
**Verification Checklist**:
|
||||
|
||||
- [ ] `conan install . --build=missing -o telemetry=True` succeeds
|
||||
- [ ] `cmake --preset default -Dtelemetry=ON` configures correctly
|
||||
- [ ] `cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -Dtelemetry=ON ..` configures correctly (there is no `default` preset; Conan writes `conan-release`)
|
||||
- [ ] Build succeeds with telemetry ON
|
||||
- [ ] Build succeeds with telemetry OFF
|
||||
- [ ] Existing tests pass with telemetry ON
|
||||
|
||||
@@ -10,12 +10,16 @@ pipeline end-to-end, from span generation through the observability stack
|
||||
|
||||
### Build xrpld with telemetry
|
||||
|
||||
Follow [BUILD.md](../../BUILD.md) with `-o telemetry=True` added. From a build directory (`.build/`):
|
||||
|
||||
```bash
|
||||
conan install . --build=missing -o telemetry=True
|
||||
cmake --preset default -Dtelemetry=ON
|
||||
cmake --build --preset default --target xrpld
|
||||
conan install .. --output-folder . --build missing -o telemetry=True --settings build_type=Release
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -Dxrpld=ON -Dtelemetry=ON ..
|
||||
cmake --build . --target xrpld
|
||||
```
|
||||
|
||||
Conan also writes a `conan-release` preset, so `cmake --preset conan-release -Dtelemetry=ON` works too. There is no preset named `default`.
|
||||
|
||||
The binary is at `.build/xrpld`.
|
||||
|
||||
### Required tools
|
||||
|
||||
@@ -81,12 +81,16 @@ endpoint=http://localhost:4318/v1/traces
|
||||
|
||||
### 3. Build with telemetry support
|
||||
|
||||
Follow [BUILD.md](../BUILD.md), adding `-o telemetry=True` so Conan pulls `opentelemetry-cpp`. From a build directory (`.build/`):
|
||||
|
||||
```bash
|
||||
conan install . --build=missing -o telemetry=True
|
||||
cmake --preset default -Dtelemetry=ON
|
||||
cmake --build --preset default
|
||||
conan install .. --output-folder . --build missing -o telemetry=True --settings build_type=Release
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -Dxrpld=ON -Dtelemetry=ON ..
|
||||
cmake --build . --target xrpld
|
||||
```
|
||||
|
||||
Conan also writes a `conan-release` CMake preset, so `cmake --preset conan-release -Dtelemetry=ON` works instead of the explicit toolchain line. There is no preset named `default`.
|
||||
|
||||
### 4. Run against a live network
|
||||
|
||||
Two ready-made configs connect a tracking node (no validator credentials) to a
|
||||
@@ -3318,8 +3322,8 @@ Set `enabled=0` in the `[telemetry]` config section (runtime disable, no rebuild
|
||||
compile telemetry out:
|
||||
|
||||
```bash
|
||||
conan install . --build=missing -o telemetry=False
|
||||
cmake --preset default -Dtelemetry=OFF
|
||||
conan install .. --output-folder . --build missing -o telemetry=False --settings build_type=Release
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -Dtelemetry=OFF ..
|
||||
```
|
||||
|
||||
Pass the flag explicitly rather than omitting it — an omitted flag resolves to whatever
|
||||
|
||||
Reference in New Issue
Block a user