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

Bugfix: fix log pagination request #70

Merged
merged 2 commits into from
Aug 3, 2023
Merged

Bugfix: fix log pagination request #70

merged 2 commits into from
Aug 3, 2023

Conversation

tfadeyi
Copy link
Owner

@tfadeyi tfadeyi commented Aug 3, 2023

📋 Changes

  • Fix the Auth0 log client to use checkpoint pagination
  • Updated unit tests.

🧪 Testing

  • Unit test
  • Local e2e testing:

Run:

go run main.go export --tls.disabled   --log.level "debug"   --web.listen-address "9301"   --auth0.domain "${TENANT}.eu.auth0.com"

Navigating to the metrics endpoint results in:

Output

ts=2023-08-03T21:40:25.892Z caller=log.go:168 level=info build="dev, commit unknown, built at unknown" msg="initialising exporter"
ts=2023-08-03T21:40:26.022Z caller=log.go:168 level=info port=9301 metrics-address=/metrics msg="starting exporter"
ts=2023-08-03T21:40:26.022Z caller=log.go:168 level=info msg="running exporter with insecure connection!"
ts=2023-08-03T21:40:26.022Z caller=log.go:168 level=info port=9302 endpoint=probe msg="starting metrics server"
ts=2023-08-03T21:40:31.565Z caller=log.go:168 level=info msg="handling request for the auth0 tenant metrics"
ts=2023-08-03T21:40:31.565Z caller=log.go:168 level=info msg="handling request for the auth0 tenant metrics"
ts=2023-08-03T21:40:31.881Z caller=log.go:168 level=info msg="successfully collected metrics from the auth0 tenant"
ts=2023-08-03T21:40:31.885Z caller=log.go:168 level=info requestID= remote_ip=127.0.0.1 host=localhost:9301 uri=/metrics method=GET path=/metrics route=/metrics user_agent="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0" status=200 msg="incoming request"

📚 References

tfadeyi added 2 commits August 3, 2023 22:35
Fix the incorrect pagination request in the log client.

Rlated #69

Signed-off-by: oluwole fadeyi <[email protected]>
Signed-off-by: oluwole fadeyi <[email protected]>
@tfadeyi tfadeyi merged commit f422c49 into main Aug 3, 2023
@tfadeyi tfadeyi deleted the 69-fix-pagination branch August 3, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant