Skip to content

Commit e277213

Browse files
authored
fix(storage): Same method name and Trace Span name (#8150)
I think the method name and the Trace Span Name are expected to be the same, so I fixed that.
1 parent 3bb45a2 commit e277213

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

storage/bucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (b *BucketHandle) Attrs(ctx context.Context) (attrs *BucketAttrs, err error
152152

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

158158
isIdempotent := b.conds != nil && b.conds.MetagenerationMatch != 0

0 commit comments

Comments
 (0)