Skip to content

Commit

Permalink
fix(storage): Same method name and Trace Span name (#8150)
Browse files Browse the repository at this point in the history
I think the method name and the Trace Span Name are expected to be the same, so I fixed that.
  • Loading branch information
sinmetal committed Aug 1, 2023
1 parent 3bb45a2 commit e277213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (b *BucketHandle) Attrs(ctx context.Context) (attrs *BucketAttrs, err error

// Update updates a bucket's attributes.
func (b *BucketHandle) Update(ctx context.Context, uattrs BucketAttrsToUpdate) (attrs *BucketAttrs, err error) {
ctx = trace.StartSpan(ctx, "cloud.google.com/go/storage.Bucket.Create")
ctx = trace.StartSpan(ctx, "cloud.google.com/go/storage.Bucket.Update")
defer func() { trace.EndSpan(ctx, err) }()

isIdempotent := b.conds != nil && b.conds.MetagenerationMatch != 0
Expand Down

0 comments on commit e277213

Please sign in to comment.