-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
# tmcurl | ||
T(race)M(eter)curl: A CLI tool for tracing and timing HTTP requests with OpenTelemetry π. It accurately measures response times π, supports repetitive requests for performance analysis, and customizes tracing endpoints. Ideal for API testing and monitoring π¨βπ»π. | ||
# tmcurl π | ||
|
||
`tmcurl` is a CLI tool that traces HTTP requests and measures response times, leveraging the power of OpenTelemetry π. It provides insightful performance data for your HTTP requests. | ||
|
||
## Features π | ||
|
||
- Trace HTTP requests with OpenTelemetry. π΅οΈββοΈ | ||
- Measure response times. β± | ||
- Customize request methods, headers, and body. π | ||
- Execute requests multiple times. π | ||
- Configure OTLP exporter endpoint. π‘ | ||
|
||
## Installation π¦ | ||
|
||
`tmcurl` is written in Go. Ensure you have Go installed and then run the following command: | ||
|
||
```sh | ||
go get github.com/nwiizo/tmcurl | ||
``` | ||
|
||
## Usage π | ||
|
||
Use the `tmcurl` command to send and trace HTTP requests: | ||
|
||
```sh | ||
tmcurl trace --url "https://3-shake.com" --method "GET" | ||
``` | ||
|
||
### Options π | ||
|
||
- `--endpoint` (string): The OTLP exporter endpoint (default: "localhost:4317"). | ||
- `--url` (string): The URL for the HTTP request. | ||
- `--method` (string): The HTTP method to use (default: "GET"). | ||
- `--header` (string array): HTTP request headers. | ||
- `--body` (string): The HTTP request body. | ||
- `--count` (int): The number of times to send the request (default: 1). |