diff --git a/tracing.go b/tracing.go index 771addef..94562ccb 100644 --- a/tracing.go +++ b/tracing.go @@ -682,11 +682,7 @@ func StartTransaction(ctx context.Context, name string, options ...SpanOption) * if exists { return currentTransaction } - hub := GetHubFromContext(ctx) - if hub == nil { - hub = CurrentHub().Clone() - ctx = SetHubOnContext(ctx, hub) - } + options = append(options, TransactionName(name)) return StartSpan( ctx,