File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/io/opentelemetry/contrib/generator/telemetry/cli Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,19 +39,19 @@ public static void main(String[] args) throws ParseException {
39
39
40
40
CommandLineParser cliParser = new DefaultParser ();
41
41
CommandLine line = cliParser .parse (getOptions (), args );
42
- if (!(line .hasOption ("m" ) || line .hasOption ("l" ) || line .hasOption ("t " ))) {
42
+ if (!(line .hasOption ("m" ) || line .hasOption ("l" ) || line .hasOption ("s " ))) {
43
43
throw new GeneratorException ("One of metricDefinition, logDefinition or traceDefinition must be provided" );
44
44
}
45
- PayloadHandler payloadHandler = getPayloadHandler (line .getOptionValue ("c " ));
45
+ PayloadHandler payloadHandler = getPayloadHandler (line .getOptionValue ("t " ));
46
46
GeneratorInput .YAMLFilesBuilder inputBuilder = new GeneratorInput .YAMLFilesBuilder (line .getOptionValue ("e" ));
47
47
if (line .hasOption ("m" )) {
48
48
inputBuilder .withMetricDefinitionYAML (line .getOptionValue ("m" ));
49
49
}
50
50
if (line .hasOption ("l" )) {
51
51
inputBuilder .withLogDefinitionYAML (line .getOptionValue ("l" ));
52
52
}
53
- if (line .hasOption ("t " )) {
54
- inputBuilder .withTraceDefinitionYAML (line .getOptionValue ("t " ));
53
+ if (line .hasOption ("s " )) {
54
+ inputBuilder .withTraceDefinitionYAML (line .getOptionValue ("s " ));
55
55
}
56
56
TelemetryGenerator generator = new TelemetryGenerator (inputBuilder .build (), payloadHandler );
57
57
generator .runGenerator ();
You can’t perform that action at this time.
0 commit comments