Compare commits

..

2 commits

Author SHA1 Message Date
f8852c7626 [#498] Update frostfs-observability version
All checks were successful
/ DCO (pull_request) Successful in 35s
/ Vulncheck (pull_request) Successful in 58s
/ Builds (pull_request) Successful in 1m46s
/ Lint (pull_request) Successful in 2m4s
/ Tests (pull_request) Successful in 1m17s
/ OCI image (pull_request) Successful in 2m9s
/ Vulncheck (push) Successful in 1m3s
/ Builds (push) Successful in 1m5s
/ Lint (push) Successful in 2m0s
/ Tests (push) Successful in 1m18s
/ OCI image (push) Successful in 2m9s
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>
2025-02-21 11:25:11 +03:00
ac0140506c [#498] middleware: Add spans to detail the trace
Spans are added only to the following middleware:
* PolicyCheck
* Auth
* FrostfsIDValidation

This is done this way because these middleware are basic and
they interact with frostfs-storage.

Also, an explicit context has been added to many functions
so that the middleware spans do not include all subsequent spans.

Signed-off-by: Roman Loginov <r.loginov@yadro.com>
2025-02-21 11:25:08 +03:00

View file

@ -173,8 +173,7 @@ func getPolicyRequest(ctx context.Context, r *http.Request, cfg PolicyConfig, re
pk *keys.PublicKey
)
reqCtx := r.Context()
bd, err := GetBoxData(reqCtx)
bd, err := GetBoxData(ctx)
if err == nil && bd.Gate.BearerToken != nil {
pk, err = keys.NewPublicKeyFromBytes(bd.Gate.BearerToken.SigningKeyBytes(), elliptic.P256())
if err != nil {