Tracing for get object #135
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#135
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:feat/OBJECT-3310"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Most of the changes are related to pass context.
211b2de0ca
to26f98aa72f
26f98aa72f
to3f6cc47cb8
3f6cc47cb8
to60371382b7
60371382b7
to99b799e130
99b799e130
tod9c54c8b65
d9c54c8b65
toac971e27b2
ac971e27b2
to7a548c0749
cd03516fd7
tod237b11cc5
d237b11cc5
to082f966ea1
082f966ea1
to92550a1980
92550a1980
toa139742b3f
a139742b3f
tob98c046e9c
b98c046e9c
tobc14065ab0
bc14065ab0
to1c0581c7b2
1c0581c7b2
to270f41dab9
270f41dab9
to5b25e69c9b
5b25e69c9b
to08edbe2250
08edbe2250
to9b096a469e
WIP: Tracing for get objectto Tracing for get object@ -23,3 +24,3 @@
}
opts := make([]grpc.DialOption, 1, 2)
opts := make([]grpc.DialOption, 3, 4)
params
3, 4
seems a little bit inconvinient :).3
is enough (keeping a room forgrpc.DialOption
doesn't make big profit)How about to initialize it like that?
Agree, fixed. I hope it wasn't the most important optimization.
@ -0,0 +22,4 @@
fn: func() {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
defer cancel()
err := tracing.Shutdown(ctx) //cfg context cancels before close
What is the comment about? Possible problems?
It's about using
context.Background()
for shutting down. If e use the main context of the application, then it will already be canceled at this point.9b096a469e
to0f60ed02df
0f60ed02df
to66970da98c
@aarifullin @fyrchik
contextcheck
linter violation for evacuate was fixed after review66970da98c
toce7806f734
02ce8e2728
tobec75d45dc
@fyrchik @aarifullin @acid-ant added two commits for acl and signature spans
@ -340,0 +352,4 @@
ctx, span := tracing.StartSpanFromContext(ctx, "FSTree.Get",
trace.WithAttributes(
attribute.Bool("raw", prm.Raw),
attribute.String("address", prm.Address.EncodeToString()),
Can we create a custom attributes for this? Like
zap.Stringer
.When tracing is disabled it seems not worth doing this allocations.
Also,
storage_id
is not needed for FSTree.Can we create a custom attributes for this? Like
zap.Stringer
.When tracing is disabled it seems not worth doing this allocations.
Also,
storage_id
is not needed for FSTree.WithAttributes
receivesKeyValue
struct.attributes.Stringer
already exists, but has such implementation:fixed
bec75d45dc
to166ebbb51e