Skip to content

Commit

Permalink
Add the SDK version when functions will be removed to Deprecated: c…
Browse files Browse the repository at this point in the history
…omments (#721)
  • Loading branch information
cleptric committed Sep 26, 2023
1 parent 3b3ce90 commit 7e37ede
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tracing.go
Expand Up @@ -835,7 +835,7 @@ type SpanOption func(s *Span)
// starting a span affects the span tree as a whole, potentially overwriting a
// name set previously.
//
// Deprecated: Use WithTransactionName() instead.
// Deprecated: To be removed in 0.26.0. Use WithTransactionName() instead.
func TransactionName(name string) SpanOption {
return WithTransactionName(name)
}
Expand All @@ -853,7 +853,7 @@ func WithTransactionName(name string) SpanOption {

// OpName sets the operation name for a given span.
//
// Deprecated: Use WithOpName() instead.
// Deprecated: To be removed in 0.26.0. Use WithOpName() instead.
func OpName(name string) SpanOption {
return WithOpName(name)
}
Expand All @@ -867,7 +867,7 @@ func WithOpName(name string) SpanOption {

// TransctionSource sets the source of the transaction name.
//
// Deprecated: Use WithTransactionSource() instead.
// Deprecated: To be removed in 0.26.0. Use WithTransactionSource() instead.
func TransctionSource(source TransactionSource) SpanOption {
return WithTransactionSource(source)
}
Expand All @@ -885,7 +885,7 @@ func WithTransactionSource(source TransactionSource) SpanOption {

// SpanSampled updates the sampling flag for a given span.
//
// Deprecated: Use WithSpanSampled() instead.
// Deprecated: To be removed in 0.26.0. Use WithSpanSampled() instead.
func SpanSampled(sampled Sampled) SpanOption {
return WithSpanSampled(sampled)
}
Expand Down

0 comments on commit 7e37ede

Please sign in to comment.