✂ Removed extra OpenTelemetry spans from go-pg core. Now go-pg instrumentation only adds a single span with a SQL query (instead of 4 spans). There are multiple reasons behind this decision:
- Traces become smaller and less noisy.
- Bun can't support the same level of instrumentation and it is nice to keep the projects synced.
- It may be costly to process those 3 extra spans for each query.
Eventually we hope to replace the information that we no longer collect with OpenTelemetry Metrics.
- ⚡️ To make updating easier, extra modules now have the same version as go-pg does. That means that you need to update your imports:
github.com/go-pg/pg/extra/pgdebug -> github.com/go-pg/pg/extra/pgdebug/v10 github.com/go-pg/pg/extra/pgotel -> github.com/go-pg/pg/extra/pgotel/v10 github.com/go-pg/pg/extra/pgsegment -> github.com/go-pg/pg/extra/pgsegment/v10
pg.Querywhich should be used instead of
- ➕ Added
pg.DBIwhich is a DB interface implemented by
v10.7.3November 23, 2020
v10.7.2November 22, 2020
v10.7.1November 22, 2020
v10.7.0November 21, 2020
v10.0.0-beta.2June 08, 2020
v10.0.0-beta.1May 31, 2020