feature/145-make_query_tracing_more_detailed #171

Open
r.loginov wants to merge 4 commits from r.loginov/frostfs-http-gw:feature/145-make_query_tracing_more_detailed into master
Member

The spans are added to the following layers:

  • handler
  • frosts
  • tree

There are no spans added to middleware, as there are no network interactions.

Examples of what it looks like in jaeger:
Upload:
image
DownloadByS3Path:
image
DownloadByNative:
image
close #145

The spans are added to the following layers: - handler - frosts - tree There are no spans added to middleware, as there are no network interactions. Examples of what it looks like in jaeger: Upload: ![image](/attachments/7214a7ca-1921-4e7f-bac3-a17ee604af50) DownloadByS3Path: ![image](/attachments/bb43861a-aa20-4c36-a4ec-90006853eba5) DownloadByNative: ![image](/attachments/c956e6af-06ff-4424-8678-76322893b0a5) close #145
r.loginov self-assigned this 2024-11-28 08:29:29 +00:00
r.loginov added 3 commits 2024-11-28 08:29:30 +00:00
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
[#145] tree: Add spans to detail the trace
All checks were successful
/ DCO (pull_request) Successful in 2m38s
/ Vulncheck (pull_request) Successful in 3m12s
/ Lint (pull_request) Successful in 3m25s
/ Tests (pull_request) Successful in 1m51s
/ Builds (pull_request) Successful in 2m0s
af53657123
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
r.loginov requested review from alexvanin 2024-11-28 08:29:30 +00:00
r.loginov requested review from dkirillov 2024-11-28 08:29:30 +00:00
r.loginov removed review request for dkirillov 2024-11-28 08:29:40 +00:00
r.loginov removed review request for alexvanin 2024-11-28 08:29:41 +00:00
r.loginov added 1 commit 2024-11-28 08:30:15 +00:00
[#145] Update frostfs-observability version
All checks were successful
/ DCO (pull_request) Successful in 1m51s
/ Vulncheck (pull_request) Successful in 1m58s
/ Builds (pull_request) Successful in 2m9s
/ Lint (pull_request) Successful in 4m13s
/ Tests (pull_request) Successful in 2m11s
2cc11d3427
The new version of frostfs-observability has
improved the detail of tracing low-level rpc
calls by adding send and receive events.

Signed-off-by: Roman Loginov <r.loginov@yadro.com>
r.loginov requested review from alexvanin 2024-11-28 08:49:55 +00:00
r.loginov requested review from dkirillov 2024-11-28 08:49:55 +00:00
r.loginov requested review from pogpp 2024-11-28 08:49:55 +00:00
r.loginov requested review from mbiryukova 2024-11-28 08:49:56 +00:00
r.loginov requested review from nzinkevich 2024-11-28 08:49:56 +00:00
dkirillov reviewed 2024-11-28 14:31:10 +00:00
@ -28,10 +29,22 @@ func (h *Handler) DownloadByAddressOrBucketName(c *fasthttp.RequestCtx) {
switch {
case isObjectID(oidURLParam):
ctx, span := tracing.StartSpanFromContext(utils.GetContextFromRequest(c), "handler.DownloadByNativeAddress")
Member

Just question: Why do we start span here and not in h.byNativeAddress?
The similar situation inside Handler.HeadByAddressOrBucketName

Just question: Why do we start span here and not in `h.byNativeAddress`? The similar situation inside `Handler.HeadByAddressOrBucketName`
Author
Member

Because h.by Native Address is called in two handlers: DownloadByAddressOrBucketName and HeadByAddressOrBucketName. If you start the span right there, then you will need to give it a name that is not tied to a specific http gate handler - for example, handler.byNativeAddress - however, this name does not answer the question is it a head request or a get request. I thought it would be nice to distinguish which handlers logically work. Similarly with `h.byS3Path'.

Because `h.by Native Address` is called in two handlers: `DownloadByAddressOrBucketName` and `HeadByAddressOrBucketName`. If you start the span right there, then you will need to give it a name that is not tied to a specific http gate handler - for example, `handler.byNativeAddress` - however, this name does not answer the question is it a head request or a get request. I thought it would be nice to distinguish which handlers logically work. Similarly with `h.byS3Path'.
dkirillov marked this conversation as resolved
dkirillov approved these changes 2024-11-28 14:31:24 +00:00
Dismissed
dkirillov left a comment
Member

LGTM, see minor question

LGTM, see minor question
mbiryukova approved these changes 2024-12-02 03:44:03 +00:00
Dismissed
nzinkevich approved these changes 2024-12-09 06:16:28 +00:00
Dismissed
r.loginov force-pushed feature/145-make_query_tracing_more_detailed from 2cc11d3427 to 4395e7e5ac 2024-12-11 13:49:02 +00:00 Compare
r.loginov dismissed dkirillov's review 2024-12-11 13:49:02 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

r.loginov dismissed mbiryukova's review 2024-12-11 13:49:02 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

r.loginov dismissed nzinkevich's review 2024-12-11 13:49:02 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

alexvanin added this to the v0.33.0 milestone 2024-12-12 11:57:57 +00:00
r.loginov force-pushed feature/145-make_query_tracing_more_detailed from 4395e7e5ac to 8bdb3d1d93 2024-12-13 11:41:30 +00:00 Compare
dkirillov approved these changes 2024-12-13 12:07:45 +00:00
All checks were successful
/ DCO (pull_request) Successful in 5m43s
Required
Details
/ Builds (pull_request) Successful in 2m30s
Required
Details
/ Vulncheck (pull_request) Successful in 6m9s
Required
Details
/ Lint (pull_request) Successful in 2m56s
Required
Details
/ Tests (pull_request) Successful in 2m35s
Required
Details
This pull request has changes conflicting with the target branch.
  • internal/handler/download.go
  • internal/handler/head.go
  • tree/tree.go
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u feature/145-make_query_tracing_more_detailed:r.loginov-feature/145-make_query_tracing_more_detailed
git checkout r.loginov-feature/145-make_query_tracing_more_detailed
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-http-gw#171
No description provided.