An jaeger trace generator utility using predefined templates
The generator can be used to define a bunch of traces (related or otherwise) using the handlebars template files. These templates can then be used to generate traces by substituting values that change for each trace without changing the structure defined in the template file. Variables that change in a trace data are typically
- traceId
- spanIds
- startTime for each span
The examples simple-isolated-traces.handlebars
and cross-referenced-traces.handlebars
can be used as reference
simple-isolated-traces.handlebars
: has 2 unique trace structures with 3 spans each. The traces are not related to each
other
Trace-1: A->B->C
Trace-2: A->[B,C]
cross-referenced-traces.handlebars
has three traces with the first trace having references to trace2 and trace3
t1.traceId -> traceId of firt trace
t1.s1 -> First spanId of first trace
t1.st1 -> startTime of first spanId of first trace
// Currently the tests only demonstrate constructing a Model.Batch from the handlebars template.
- Hookup with apache JMeter or similar to generate based on JMeter load requirements
- Evaluate and add more templates if needed
- Add gRPC/HTTP sender to send the constructed traces to consumer