Created by: oblivisheee
This pull request introduces several improvements to the subscription service, including updates to dependencies, enhancements to SQL functions, and the addition of tracing for better observability. The most significant changes are outlined below:
Dependency Updates:
- Updated
tracing-subscriber
to include theenv-filter
feature insubscription/Cargo.toml
. - Added
tracing-loki
dependency insubscription/Cargo.toml
.
SQL Function Enhancements:
- Modified SQL functions in
subscription/sql/funcs_plans.surql
andsubscription/sql/funcs_subs.surql
to useRETURN
statements for better consistency and clarity. [1] [2]
Tracing and Instrumentation:
- Added
instrument
macros andinfo
logs insubscription/src/db.rs
to enhance observability for database operations. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]