Registry / database / opencensus-integrations-ocsql

opencensus-integrations-ocsql

JSON →
library0.1.7gogounverified

Provides OpenCensus instrumentation for database/sql operations.

go get github.com/opencensus-integrations/ocsql
INSTALL
IMPORT
SIG · OPENCENSUS-INTEGRA
O
opencensus-integrations-ocsql
databasegov0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ocsql
github.com/opencensus-integrations/ocsql

Wraps a database driver with OpenCensus tracing.

package main import ( "database/sql" "github.com/opencensus-integrations/ocsql" ) func main() { driver, _ := ocsql.Register("postgres", ocsql.WithAllTraceOptions()) db, _ := sql.Open(driver, "postgres://user:pass@localhost/dbname") defer db.Close() }
Debug
Known issues
gotchaOpenCensus is deprecated in favor of OpenTelemetry.
fix
Consider migrating to OpenTelemetry for new projects.
affects: all
Upgrade
Version history
0.1.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
2
Resources
opencensus-integrations-ocsql — go get opencensus-integrations-ocsql · libregistry