-
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
d088197
commit 6b6c530
Showing
4 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Chrome DevTools HAR File to OpenTelemetry Converter | ||
|
||
This tool converts a `.har` file to OpenTelemetry traces and sends them to an OpenTelemetry collector using tracepusher. | ||
|
||
## Feedback Required! | ||
|
||
If you use this, please provide feedback (good or bad) on [this issue](https://github.com/agardnerIT/tracepusher/issues/72). | ||
|
||
When the tool is confirmed as stable, standalone binaries will be built. | ||
|
||
## Usage | ||
|
||
``` | ||
docker run \ | ||
--mount type=bind,source="$(pwd)",target=/files \ | ||
gardnera/har-to-otel:dev \ | ||
-f /files/YOUR-HAR-FILE.har \ | ||
-ep http://host.docker.internal:4318 \ | ||
--insecure true | ||
``` | ||
|
||
### Optional flags | ||
|
||
If set, these are added as span attributes: | ||
|
||
- `--timings [true|false]` (defaults to `true`) | ||
- `--request-headers [true|false]` (defaults to `false`) | ||
- `--response-headers [true|false]` (defaults to `false`) | ||
- `--request-cookies [true|false]` (defaults to `false`) | ||
- `--response-cookies [true|false]` (defaults to `false`) | ||
- `--debug [true|false]` (defaults to `false`) | ||
- `--dry-run [true|false]` (defaults to `false`) |
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