Add tracing spans to PUT, DELETE requests and tree service #242
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#242
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:tracing/put"
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?
I apologize for one large commit: after adding
context
to one func, linter started issuing that it was necessary to usecontext
in calling func, so it turned out that everything had to be done in one commit.5720755e64
to89b0c6ce4a
207d65db44
to1a65c7e64f
WIP: Add tracing spans to PUT, DELETE requests and tree serviceto Add tracing spans to PUT, DELETE requests and tree service@ -48,6 +48,12 @@ func (r GetRes) Object() *objectSDK.Object {
//
// Returns an error if executions are blocked (see BlockExecution).
func (e *StorageEngine) Get(ctx context.Context, prm GetPrm) (res GetRes, err error) {
ctx, span := tracing.StartSpanFromContext(ctx, "StorageEngine.get",
s/get/Get
fixed
@ -182,2 +265,3 @@
// TreeList implements the pilorama.Forest interface.
func (e *StorageEngine) TreeList(cid cidSDK.ID) ([]string, error) {
func (e *StorageEngine) TreeList(ctx context.Context, cid cidSDK.ID) ([]string, error) {
ctx, span := tracing.StartSpanFromContext(ctx, "StorageEngine.TreeDrop",
s/TreeDrop/TreeList
fixed
@ -402,6 +403,9 @@ func (x PutObjectRes) ID() oid.ID {
//
// Returns any error which prevented the operation from completing correctly in error return.
func PutObject(ctx context.Context, prm PutObjectPrm) (*PutObjectRes, error) {
ctx, span := tracing.StartSpanFromContext(ctx, "client.Put")
s/Put/PutObject
fixed
You should apologize to forgejo instead; it can barely handle it :)
1a65c7e64f
to952f5fe5ee
952f5fe5ee
to941e8cde03