policer: Add tracing span #1473

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-node:feat/policer_tracing into master 2024-11-06 08:15:12 +00:00

To filter HEAD requests from policer.

To filter HEAD requests from policer.
dstepanov-yadro added 1 commit 2024-11-06 07:58:24 +00:00
[#9999] policer: Add tracing span
All checks were successful
DCO action / DCO (pull_request) Successful in 2m25s
Tests and linters / Run gofumpt (pull_request) Successful in 2m30s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m21s
Vulncheck / Vulncheck (pull_request) Successful in 3m9s
Build / Build Components (pull_request) Successful in 3m28s
Tests and linters / Staticcheck (pull_request) Successful in 3m37s
Tests and linters / Lint (pull_request) Successful in 4m19s
Tests and linters / gopls check (pull_request) Successful in 4m41s
Tests and linters / Tests (pull_request) Successful in 7m17s
Tests and linters / Tests with -race (pull_request) Successful in 7m19s
1a567511f8
To filter HEAD requests of policer.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
dstepanov-yadro force-pushed feat/policer_tracing from 1a567511f8 to 64e8e70f8d 2024-11-06 07:59:17 +00:00 Compare
dstepanov-yadro requested review from storage-core-committers 2024-11-06 07:59:31 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-11-06 07:59:36 +00:00
fyrchik reviewed 2024-11-06 08:02:55 +00:00
@ -17,3 +20,4 @@
)
func (p *Policer) processObject(ctx context.Context, objInfo objectcore.Info) error {
ctx, span := tracing.StartSpanFromContext(ctx, "Policer.ProcessObject", trace.WithAttributes(
Owner

Do we have any spans in replicator? It should also be useful.

Do we have any spans in replicator? It should also be useful.
Author
Member

Yes, we do:

ctx, span := tracing.StartSpanFromContext(ctx, "Replicator.HandleReplicateTask",

Yes, we do: https://git.frostfs.info/TrueCloudLab/frostfs-node/src/commit/17ec84151b4f9f3d2ff593ecdad41b8c0c860e02/pkg/services/replicator/process.go#L35
@ -20,0 +23,4 @@
ctx, span := tracing.StartSpanFromContext(ctx, "Policer.ProcessObject", trace.WithAttributes(
attribute.String("address", objInfo.Address.String()),
attribute.Bool("is_linking_object", objInfo.IsLinkingObject),
attribute.Bool("is_EC_part", objInfo.ECInfo != nil),
Owner
https://opentelemetry.io/docs/specs/semconv/general/attribute-naming/ >Names SHOULD be lowercase.
Author
Member

fixed

fixed
dstepanov-yadro force-pushed feat/policer_tracing from 64e8e70f8d to 69b6b2b321 2024-11-06 08:05:55 +00:00 Compare
fyrchik approved these changes 2024-11-06 08:14:51 +00:00
a-savchuk approved these changes 2024-11-06 08:15:00 +00:00
dstepanov-yadro merged commit 33ad753302 into master 2024-11-06 08:15:12 +00:00
dstepanov-yadro deleted branch feat/policer_tracing 2024-11-06 08:15:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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-node#1473
No description provided.