Files
palladum-lightning/contrib/cln-tracer
Lakshya Singh c56464ca08 refactor: pyproject.toml poetry to uv + hatch
make use of standard keys for project and dependeny specification

- provide sources to run uv build so that it can refer local packages
- using hatchling for build as is stock build option
- use optional-dependencies.dev for dev-dependencies
- add hatch targets for packages and includes where unclear

Changelog-Update: use uv with hatchling instead of poetry
2025-08-11 11:06:22 +09:30
..

cln-tracer

Utilities to export USDT traces from CLN.

This directory contains the following utilities:

  • cln_tracer/trace.py instruments and exports traces from a single binary.

Prerequisites

trace.py sends traces to zipkin, so zipkin needs to be installed.

Installation

Since the bcc library depends heavily on its binary extension matching the version of the kernel systemtap-sdt-dev version, it is strongly suggested to install the libbpfcc dependency via your package manager and not use a virtualenv to run these tracers.

The tracers also require kernel access, and will most likely have to be run by root

Usage

To use with a default zipkin installation:

sudo python3 ./cln_tracer/trace.py http://127.0.0.1:9411/api/v2/spans /path/to/lightningd`