feature/145-make_query_tracing_more_detailed #171
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-http-gw#171
Loading…
Reference in a new issue
No description provided.
Delete branch "r.loginov/frostfs-http-gw:feature/145-make_query_tracing_more_detailed"
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?
The spans are added to the following layers:
There are no spans added to middleware, as there are no network interactions.
Examples of what it looks like in jaeger:
Upload:
DownloadByS3Path:
DownloadByNative:
close #145
@ -28,10 +29,22 @@ func (h *Handler) DownloadByAddressOrBucketName(c *fasthttp.RequestCtx) {
switch {
case isObjectID(oidURLParam):
ctx, span := tracing.StartSpanFromContext(utils.GetContextFromRequest(c), "handler.DownloadByNativeAddress")
Just question: Why do we start span here and not in
h.byNativeAddress
?The similar situation inside
Handler.HeadByAddressOrBucketName
Because
h.by Native Address
is called in two handlers:DownloadByAddressOrBucketName
andHeadByAddressOrBucketName
. 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'.LGTM, see minor question
2cc11d3427
to4395e7e5ac
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
New commits pushed, approval review dismissed automatically according to repository settings
4395e7e5ac
to8bdb3d1d93
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.