-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a second, more complex span exec test (#88)
* Add a test that calls otel-cli exec otel-cli Note spans, need to track down that bug. * rename to 91 to conform * check recorded vs expected span count fix tests to pass now that check is implemented * clean up test logging * çlarify function name, we'll do a more in depth refactor later * better test descriptions
- Loading branch information
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ | ||
"description": "otel-cli exec runs otel-cli exec", | ||
"config": { | ||
"env": { | ||
"OTEL_EXPORTER_OTLP_ENDPOINT": "{{endpoint}}" | ||
}, | ||
"cli_args": [ | ||
"exec", | ||
"--service", | ||
"main_test.go", | ||
"--name", | ||
"test-span-123", | ||
"--kind", | ||
"server", | ||
"./otel-cli", | ||
"exec", | ||
"--tp-ignore-env", | ||
"echo hello world $TRACEPARENT" | ||
] | ||
}, | ||
"expect": { | ||
"output": "hello world\n", | ||
"spans": 2, | ||
"span_data": { | ||
"trace_id": "*", | ||
"span_id": "*", | ||
"is_sampled": "true" | ||
} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters