Skip to content

feat: Allow configuring sqlx statement logging - #838

Merged
spencewenski merged 2 commits into
v0.8from
sqlx-logging-config
Jul 14, 2025
Merged

spencewenski merged 2 commits into
v0.8from
sqlx-logging-config

Conversation

@spencewenski

Copy link
Copy Markdown
Member

Enable disabling sqlx statement logging, setting the level, and setting the level/duration for slow statement logging.

Enable disabling statement logging, setting the level, and setting the
level/duration for slow statement logging.
@codecov

codecov Bot commented Jul 14, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 27.77778% with 39 lines in your changes missing coverage. Please review.

Project coverage is 48.33%. Comparing base (f077557) to head (519dd26).
Report is 1 commits behind head on v0.8.

Files with missing lines Patch % Lines
src/app/context/mod.rs 0.00% 21 Missing ⚠️
src/config/database/mod.rs 50.00% 15 Missing ⚠️
src/error/tracing.rs 0.00% 3 Missing ⚠️
Files with missing lines Coverage Ξ”
src/config/service/worker/pg/mod.rs 0.00% <ΓΈ> (ΓΈ)
src/error/tracing.rs 0.00% <0.00%> (ΓΈ)
src/config/database/mod.rs 59.70% <50.00%> (-9.53%) ⬇️
src/app/context/mod.rs 46.27% <0.00%> (-1.34%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update f077557...519dd26. Read the comment docs.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@spencewenski
spencewenski merged commit 838f036 into v0.8 Jul 14, 2025
@spencewenski
spencewenski deleted the sqlx-logging-config branch July 14, 2025 18:31
This was referenced Jul 17, 2025
spencewenski added a commit that referenced this pull request Jul 18, 2025
## πŸ€– New release

* `roadster`: 0.8.0-alpha.3 -> 0.8.0-rc (βœ“ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.8.0-rc](roadster-v0.8.0-alpha.3...roadster-v0.8.0-rc)
- 2025-07-18

### Added

- Improve Worker::handle trace span name
([#850](#850))
- Allow configuring sqlx statement logging
([#838](#838))

### Fixed

- [**breaking**] Create temp test DB when only the `worker-pg` feature
is enabled ([#842](#842))

### Other

- Add AMD 5800X benchmark
([#849](#849))
- Update background jobs index
([#847](#847))
- Update loco comparision
([#846](#846))
- Update loco comparison
([#845](#845))
- Update README.md
([#844](#844))
- Add benchmarks for PG- and Sidekiq-backed workers
([#843](#843))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Spencer Ferris <3319370+spencewenski@users.noreply.github.com>
spencewenski added a commit that referenced this pull request Jul 25, 2025
## πŸ€– New release

* `roadster`: 0.8.0-rc.4 -> 0.8.0 (βœ“ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.8.0](roadster-v0.7.4...roadster-v0.8.0)
- 2025-07-25

The main feature added in v0.8.0 compared to v0.7* is support for using
Postgres as the backing store for async queues in addition to
Redis/Sidekiq. Adding this feature required making breaking changes to
our Sidekiq support in order to align both solutions to use the same
`Worker` trait. Some config structs were refactored as well,
particularly ones related to the DB and workers. See the release notes
for [0.8.0-alpha.1](#80-alpha1---2025-07-13) for more details. See also
the [background jobs
chapter](https://roadster.dev/features/services/background-jobs/index.html)
of the book for details on the new background job support.

In addition, v0.8.0 release contains a few smaller features and breaking
changes. A full list can be found in the changelog for the pre-release
versions, but a summary is included below.

### Added

- [**breaking**] Remove `sidekiq` and `sea-orm` from default features
([#872](#872))
- Add meaningful prefix to some generic trace event labels
([#861](#861))
- Improve Worker::handle trace span name
([#850](#850))
- Allow configuring sqlx statement logging
([#838](#838))

</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Spencer Ferris <3319370+spencewenski@users.noreply.github.com>
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