-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from agardnerIT/add_status
add span status + docs
- Loading branch information
Showing
6 changed files
with
117 additions
and
4 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
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,59 @@ | ||
## Span Kind | ||
|
||
The optional flag `-ss` or `--span-status` allows users to specify the span status. | ||
|
||
If not specified, tracepusher assumes an `OK` status. | ||
|
||
For reference, these map to values of `0` (Unset), `1` (OK) or `2` (Error) according to the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/trace/v1/trace.proto#L270-#L278). | ||
|
||
### Valid Span Types | ||
|
||
These are case insensitive: | ||
|
||
- `OK` (default) | ||
- `ERROR` | ||
- `UNSET` (if you use anything other than "OK" or "ERROR") | ||
|
||
### Examples | ||
|
||
#### Defaults to OK | ||
|
||
```shell | ||
./tracepusher \ | ||
-ep http://localhost:4318 \ | ||
-sen serviceA \ | ||
-spn span1 \ | ||
-dur 2 | ||
``` | ||
|
||
#### Explicitly set to OK | ||
|
||
```shell | ||
./tracepusher \ | ||
-ep http://localhost:4318 \ | ||
-sen serviceA \ | ||
-spn span1 \ | ||
-dur 2 \ | ||
--span-status OK | ||
``` | ||
|
||
#### Explicitly set to Error | ||
```shell | ||
./tracepusher \ | ||
-ep http://localhost:4318 \ | ||
-sen serviceA \ | ||
-spn span1 \ | ||
-dur 2 \ | ||
--span-status ERROR | ||
``` | ||
|
||
#### Invalid value (defaults to Unset) | ||
|
||
```shell | ||
./tracepusher \ | ||
-ep http://localhost:4318 \ | ||
-sen serviceA \ | ||
-spn span1 \ | ||
-dur 2 \ | ||
--span-status ABC123 | ||
``` |
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