freckle-app 1.20.2.0 → 1.20.2.1
raw patch · 4 files changed
+20/−4 lines, 4 files
Files
- CHANGELOG.md +13/−1
- freckle-app.cabal +1/−1
- library/Freckle/App/Database.hs +5/−1
- package.yaml +1/−1
CHANGELOG.md view
@@ -1,4 +1,16 @@-## [_Unreleased_](https://github.com/freckle/freckle-app/compare/freckle-app-v1.20.2.0...main)+## [_Unreleased_](https://github.com/freckle/freckle-app/compare/freckle-app-v1.20.2.1...main)++## [v1.20.2.1](https://github.com/freckle/freckle-app/compare/freckle-app-v1.20.2.0...freckle-app-v1.20.2.1)++Adds an OpenTelemetry span called "runSqlPool" within each "runDB" span.++- `runDB` covers the entire action, from the time it requests a connection+ from the pool to the time it returns the connection to the pool.+- The new `runSqlPool` span covers the actions taken while _holding_ a+ connection. This span doesn't start until a connection is obtained.++This makes the trace more explicitly reflect situations where a thread was+blocked by an exhausted connection pool. ## [v1.20.2.0](https://github.com/freckle/freckle-app/compare/freckle-app-v1.20.1.2...freckle-app-v1.20.2.0)
freckle-app.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.22 name: freckle-app-version: 1.20.2.0+version: 1.20.2.1 license: MIT license-file: LICENSE maintainer: Freckle Education
library/Freckle/App/Database.hs view
@@ -175,7 +175,11 @@ } Stats.withGauge Stats.dbEnqueuedAndProcessing $ inSpan "runDB" (clientSpanArguments {Trace.attributes = dbAttributes}) $- runSqlPoolWithExtensibleHooks action pool Nothing hooks'+ runSqlPoolWithExtensibleHooks+ (inSpan "runSqlPool" defaultSpanArguments action)+ pool+ Nothing+ hooks' where dbAttributes = HashMap.fromList [("service.name", "database")]
package.yaml view
@@ -1,5 +1,5 @@ name: freckle-app-version: 1.20.2.0+version: 1.20.2.1 maintainer: Freckle Education category: Utils github: freckle/freckle-app