Registry / observability / integrations-ocsql

integrations-ocsql

JSON →
library0.1.7gogounverified

Package ocsql provides OpenCensus instrumentation for database/sql.

go get contrib.go.opencensus.io/integrations/ocsql
INSTALL
IMPORT
SIG · INTEGRATIONS-OCSQL
I
integrations-ocsql
observabilitygov0.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
contrib.go.opencensus.io/integrations/ocsql

Register a wrapped database driver with OpenCensus tracing.

package main import ( "database/sql" "contrib.go.opencensus.io/integrations/ocsql" ) func main() { driverName, err := ocsql.Register("postgres", ocsql.WithAllTraceOptions()) if err != nil { panic(err) } db, err := sql.Open(driverName, "postgres://...") if err != nil { panic(err) } defer db.Close() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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