Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curl exporter #41

Merged
merged 5 commits into from
Feb 9, 2021
Merged

Curl exporter #41

merged 5 commits into from
Feb 9, 2021

Conversation

instabledesign
Copy link
Member

No description provided.

@codeclimate
Copy link

codeclimate bot commented Feb 5, 2021

Code Climate has analyzed commit 56f976e and detected 0 issues on this pull request.

View more on Code Climate.

@instabledesign instabledesign changed the base branch from master to v4 February 5, 2021 17:07
middleware/request_listener_test.go Outdated Show resolved Hide resolved
request_listener/curl.go Show resolved Hide resolved
}
}

for h := range req.Header {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe handle cookies in another iteratio ? (there are so much options to handle 😨)

request_listener/curl.go Show resolved Hide resolved
@rmasclef rmasclef added the question Further information is requested label Feb 8, 2021
@@ -9,6 +9,10 @@ import (
"strings"
)

// CurlLogDumper will log the given http.Request
// it gonna log the request using cli curl command format
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it will log the request using the curl command format

@@ -9,6 +9,10 @@ import (
"strings"
)

// CurlLogDumper will log the given http.Request
// it gonna log the request using cli curl command format
// Caution request header and Body can be heavy!!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/!\ Caution request header and Body can be heavy !! ?

// Pay attention to the dump quantity/weight
// CurlLogDumper will log the request using the curl command format
// /!\ Caution request header and Body can be heavy !!
// Eg tripperware:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add something like this:

You can use this tripperware to only dump the request if dump HTTP Header is present ?

@instabledesign instabledesign merged commit e855576 into v4 Feb 9, 2021
@instabledesign instabledesign deleted the curl-exporter branch February 9, 2021 08:13
instabledesign added a commit that referenced this pull request Feb 9, 2021
* Create v4

* Add context on Authenticate func (#39)

* Add context on Authenticate func

* fixup test

* Curl exporter (#41)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

Successfully merging this pull request may close these issues.

2 participants