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

Add request telemetry for go sdk #133

Conversation

sanchayata-jain-cko
Copy link
Contributor

Measures and adds request latency telemetry by default
Users can opt-out of measuring telemetry

@sanchayata-jain-cko sanchayata-jain-cko marked this pull request as ready for review October 25, 2024 08:12
@armando-rodriguez-cko
Copy link
Contributor

Thank you @sanchayata-jain-cko, I will review it asap

@armando-rodriguez-cko armando-rodriguez-cko changed the base branch from master to beta/add-telemetry-by-sanchayata-jain-cko November 4, 2024 11:29
@armando-rodriguez-cko
Copy link
Contributor

Thank you @sanchayata-jain-cko I will check it in a beta branch

@armando-rodriguez-cko armando-rodriguez-cko merged commit f669aba into checkout:beta/add-telemetry-by-sanchayata-jain-cko Nov 4, 2024
@@ -216,6 +216,20 @@ The execution of integration tests require the following environment variables s
* For default account systems (OAuth): `CHECKOUT_DEFAULT_OAUTH_CLIENT_ID` & `CHECKOUT_DEFAULT_OAUTH_CLIENT_SECRET`
* For Previous account systems (ABC): `CHECKOUT_PREVIOUS_PUBLIC_KEY` & `CHECKOUT_PREVIOUS_SECRET_KEY`

## Telemetry
Request telementry is enabled by default in the Go SDK. Request latency is included in the telemetry data. Recording the request latency allows Checkout.com to continuously monitor and imporove the merchant experience.

Choose a reason for hiding this comment

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

Should we add a note saying the information is sent back in the header? That would make it clear that the SDK is not using any additional resources (e.g. making another HTTP call) to pass back the telemetry data

armando-rodriguez-cko pushed a commit that referenced this pull request Nov 20, 2024
* adding telemetry for requests
* add test for request metrics queue
* tidied test
* give option to enable telemetry in invoke function as well
* add integration test for telemetry
* seperate sending http request into seperate function
* add readme for telemetry
* fixed formatting in readme
* fixed whitespace
armando-rodriguez-cko pushed a commit that referenced this pull request Nov 21, 2024
* adding telemetry for requests
* add test for request metrics queue
* tidied test
* give option to enable telemetry in invoke function as well
* add integration test for telemetry
* seperate sending http request into seperate function
* add readme for telemetry
* fixed formatting in readme
* fixed whitespace
armando-rodriguez-cko added a commit that referenced this pull request Nov 21, 2024
* adding telemetry for requests
* add test for request metrics queue
* tidied test
* give option to enable telemetry in invoke function as well
* add integration test for telemetry
* seperate sending http request into seperate function
* add readme for telemetry
* fixed formatting in readme
* fixed whitespace

Co-authored-by: sanchayata-jain-cko <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants