Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rarguelloF committed Aug 12, 2024
1 parent d9262a3 commit 8124bdc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contrib/gocql/gocql/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,24 @@ func WithCustomTag(key string, value interface{}) WrapOption {
}
}

// WithTraceQuery will enable tracing for queries. This option only takes effect in the CreateTracedSession function.
// WithTraceQuery will enable tracing for queries (default is true).
// This option only takes effect in CreateTracedSession and NewObserver.
func WithTraceQuery(enabled bool) WrapOption {
return func(cfg *config) {
cfg.traceQuery = enabled
}
}

// WithTraceBatch will enable tracing for batches. This option only takes effect in the CreateTracedSession function.
// WithTraceBatch will enable tracing for batches (default is true).
// This option only takes effect in CreateTracedSession and NewObserver.
func WithTraceBatch(enabled bool) WrapOption {
return func(cfg *config) {
cfg.traceBatch = enabled
}
}

// WithTraceConnect will enable tracing for connections. This option only takes effect in the CreateTracedSession function.
// WithTraceConnect will enable tracing for connections (default is true).
// This option only takes effect in CreateTracedSession and NewObserver.
func WithTraceConnect(enabled bool) WrapOption {
return func(cfg *config) {
cfg.traceConnect = enabled
Expand Down

0 comments on commit 8124bdc

Please sign in to comment.