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 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.