# go-libp2p-pubsub-tracer **Repository Path**: mirrors_libp2p/go-libp2p-pubsub-tracer ## Basic Information - **Project Name**: go-libp2p-pubsub-tracer - **Description**: Daemon and tools for pubsub tracing - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-libp2p-pubsub-tracer Tracing daemon and tools for pubsub tracing. ## Installation ``` $ git clone git@github.com:libp2p/go-libp2p-pubsub-tracer.git $ cd go-libp2p-pubsub-tracer $ go install ./... ``` ## Tools ### traced This is the tracing daemon for receiving and recording traces from remote pubsub peers. Pubsub peers emitting traces should instantiate pubsub using the `WithEventTracer` option, with an instance of `RemoteTracer` pointing to your `traced` instance. Traces are captured as a series of compressed protobuf files, containing the aggregate traces reported from the traced peers. Usage: ``` traced [-d ] [-p ] [-id ] port: port where the traced should listen on; defaults to 4001 directory: directory where traces should be written; defaults to ./traced.out identity: file containing the peer private key; defaults to identity ``` ### trace2json This is a simple tool to convert one or more trace files into json; the json output is dumped to stdout. Usage: ``` trace2json ... ``` ### tracestat This is a trace analysis tool, that can analyze one or more trace files. Usage: ``` tracestat [-summary] [-cdf] [-json ] [-topic ] ... -summary: Print an analysis summary to stdout; defaults to true -cdf: Print a CDF of message propagation delays to stdout; defaults to false -json : Output the result of the analysis to a json file for further processing by other tools -topic : Analyze messages only for a specific topic ```