in cmd/apmtool/tracegen.go [86:104]
func NewTraceGenCmd(commands *Commands) *cli.Command {
return &cli.Command{
Name: "generate-trace",
Usage: "generate distributed tracing data using go-agent and otel library",
Action: commands.sendTrace,
Flags: []cli.Flag{
&cli.FloatFlag{
Name: "sample-rate",
Usage: "set the sample rate. allowed value: min: 0.0001, max: 1.000",
Value: 1.0,
},
&cli.StringFlag{
Name: "otlp-protocol",
Usage: "set OTLP transport protocol to one of: grpc (default), http/protobuf",
Value: "grpc",
},
},
}
}