Source File
options.go
Belonging Package
contrib.go.opencensus.io/integrations/ocsql
package ocsql
import (
)
type TraceOption func(o *TraceOptions)
func () TraceOption {
return func( *TraceOptions) {
* = AllTraceOptions
}
}
var AllTraceOptions = TraceOptions{
AllowRoot: true,
Ping: true,
RowsNext: true,
RowsClose: true,
RowsAffected: true,
LastInsertID: true,
Query: true,
QueryParams: true,
}
func ( TraceOptions) TraceOption {
return func( *TraceOptions) {
* =
.DefaultAttributes = append(
[]trace.Attribute(nil), .DefaultAttributes...,
)
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.AllowRoot =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.Ping =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.RowsNext =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.RowsClose =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.RowsAffected =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.LastInsertID =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.Query =
}
}
func ( bool) TraceOption {
return func( *TraceOptions) {
.QueryParams =
}
}
func ( ...trace.Attribute) TraceOption {
return func( *TraceOptions) {
.DefaultAttributes =
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |