-
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.
Signed-off-by: Adam Gardner <[email protected]>
- Loading branch information
1 parent
3fe4044
commit 94aecac
Showing
4 changed files
with
48 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,34 @@ | ||
## Start Time | ||
|
||
The optional flag `-st` or `--start-time` allows users to specify the span start time. | ||
|
||
If not specified, tracepusher assumes a start time of `now`. | ||
|
||
The two valid formats are: | ||
|
||
1) A 19 digit string representing milliseconds since the epoch: eg. 1700967916494000000 | ||
2) "%Y-%m-%dT%H:%M:%S.%fZ" eg. "2023-11-26T03:05:16.844Z" | ||
|
||
## Example 1: Unix timestamp | ||
|
||
``` | ||
./tracepusher \ | ||
--endpoint http://localhost:4318 \ | ||
--span-name spanOne \ | ||
--service-name serviceOne \ | ||
--duration 2 \ | ||
--duration-type s \ | ||
--start-time 1700967916494000000 | ||
``` | ||
|
||
## Example 2: DateTime Format | ||
|
||
``` | ||
./tracepusher \ | ||
--endpoint http://localhost:4318 \ | ||
--span-name spanOne \ | ||
--service-name serviceOne \ | ||
--duration 2 \ | ||
--duration-type s \ | ||
--start-time 2023-11-26T03:05:16.844Z | ||
``` |