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

Refactor exporter with a batch of changes #247

Merged
merged 7 commits into from
Jan 26, 2025
Merged

Refactor exporter with a batch of changes #247

merged 7 commits into from
Jan 26, 2025

Conversation

rnaveiras
Copy link
Owner

  • Replace gokit with the slog stdlib
  • Update pgx version 5
  • Drop adapter for gokit and use pgx/tracelog instead
  • Changed to accommodated slog
  • New endpoint to change logLevel at runtime
  • Add new flag for pprof
  • Refactor configuration to flagConfig
  • Extract setupLogger
  • New setLogLevel
  • logLevelHandler supports GET and PATCH

Replace gokit with the slog stdlib
Drop adapter for gokit and use pgx/tracelog instead
Also fixed a bug in the reporting of scrapes introduce as part of the
work to adopt a new linter

Also continue with the adoption of pgx/tracelog
Allow change the logging level at runtime. Experimental

```
curl -X PATCH -H "Content-Type: application/json" -d '{"level":"info"}' http://localhost:9187/log/level
```
Signed-off-by: Raúl Naveiras <[email protected]>
- Refactor configuration to flagConfig
- Extract setupLogger
- New setLogLevel
- logLevelHandler supports GET and PATCH
- Add new flag for pprof

Signed-off-by: Raúl Naveiras <[email protected]>
@rnaveiras rnaveiras merged commit bf0b6de into main Jan 26, 2025
5 checks passed
@rnaveiras rnaveiras deleted the slog branch January 26, 2025 17: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