https://github.com/prydin/zipkin-replay
Replay Zipkin traces for debug and demo
https://github.com/prydin/zipkin-replay
golang zipkin
Last synced: about 2 months ago
JSON representation
Replay Zipkin traces for debug and demo
- Host: GitHub
- URL: https://github.com/prydin/zipkin-replay
- Owner: prydin
- Created: 2019-05-22T01:00:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T19:43:27.000Z (about 6 years ago)
- Last Synced: 2025-04-12T04:54:42.298Z (about 2 months ago)
- Topics: golang, zipkin
- Language: Go
- Size: 36.1 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zipkin-replay
Replay Zipkin traces for debug and demoA small utility for replaying Zipkin v1 traces captured with the [usurp](https://github.com/prydin/usurp) tool. It will try to parse every record as an array of Zipkin v1
spans and ignore anything it can't parse. All timestamps are adjusted to count from the time the tool was launched, minus an
optional offset. All IDs are remapped to make sure traces are unique even if the tool is run multiple times against the same
dataset. Also, namespace suffixes (as they appear in Istio traces) can be remapped.## Usage
Installing:
```
go get github.com/prydin/zipkin-replay
go build -o zreplay
```## Usage
```
Usage of ./zreplay:
-file string
Input file captured with usurp
-forever
Run realtime with delays according to original timing
-gz
Input is gzipped
-log.format value
Set the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true" (default "logger:stderr")
-log.level value
Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal] (default "info")
-namespace string
Namespace substitution (default "default")
-offset duration
Time offset in minutes
-realtime
Run realtime with delays according to original timing
-target string
The target URL
```
## Example
```
./zreplay -file data/zipkin.out -target http://localhost:9411/api/v1/spans -namespace foobar
```