wl2027 opened a new pull request, #240:
URL: https://github.com/apache/skywalking-go/pull/240
## Summary
This PR adds PostgreSQL tracing support to the SkyWalking Go agent for:
- `database/sql` with `pgx/v5 stdlib`
- `gorm` with `gorm.io/driver/postgres`
## Included
- Add PostgreSQL SQL tracing support
- Add GORM PostgreSQL tracing support
- Add PostgreSQL SQL/GORM scenarios and tests
## Scope
This PR focuses on these PostgreSQL paths:
- `sql.Open("pgx", dsn)`
- `gorm.Open(postgres.Open(dsn), ...)`
It does not yet cover `stdlib.OpenDB(...)`, `stdlib.OpenDBFromPool(...)`, or
`RegisterConnConfig()+sql.Open(...)`.
## Verification
- `cd plugins/sql && GOWORK=off go test ./pgxstdlib`
- `cd plugins/gorm && GOWORK=off go test ./entry ./postgres`
- `cd plugins/sql && GOWORK=off go test ./...`
- `cd plugins/gorm && GOWORK=off go test ./...`
- `bash test/plugins/run.sh postgres`
- `bash test/plugins/run.sh gorm-postgres`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]