Skip to content

Commit

Permalink
Mark WithClient as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Dec 17, 2023
1 parent a4d059b commit 5479ac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rueidisotel/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ var (
var _ rueidis.Client = (*otelclient)(nil)

// WithClient creates a new rueidis.Client with OpenTelemetry tracing enabled.
//
// Deprecated: use NewClient() instead.
func WithClient(client rueidis.Client, opts ...Option) rueidis.Client {
cli, err := newClient(opts...)
if err != nil {
Expand Down

0 comments on commit 5479ac3

Please sign in to comment.