clickhouse-go icon indicating copy to clipboard operation
clickhouse-go copied to clipboard

Support Datadog trace

Open Accoral opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. For better integration with Datadog, see as doc description: https://pkg.go.dev/gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql It would be nice to have an exposed Driver{}

Describe the solution you'd like Expose https://github.com/ClickHouse/clickhouse-go/blob/main/clickhouse_std.go#L138 driver for tracing, like:

sqltrace.Register("clickhouse", &clickhouse.StdDriver{}, sqltrace.WithServiceName("clickHouse"))
conn, err := sql.Open("clickhouse", fmt.Sprintf("http://%s:%d", host, port))

Accoral avatar Dec 26 '22 08:12 Accoral

@Accoral You can use the datadog OpenDB with clickhouse.Connector

arjantop-cai avatar Aug 11 '23 10:08 arjantop-cai