Skip to content

Add Distributed Tracing Sampling Rate Adaptive Adjustment #402

Description

@maugauwi-hash

Labels: enhancement, observability
Priority: Low
Estimated Time: 1.5 hours

Description:
backend/src/tracing_sampling.rs presumably applies a fixed or configured sampling rate, but under traffic spikes, a fixed rate could overwhelm the tracing backend, while under low traffic it may under-sample interesting events.

Tasks:

  • Add an adaptive sampling rate that scales inversely with current request volume
  • Always sample requests that result in an error, regardless of rate
  • Add tests for adaptive rate adjustment under simulated load
  • Document the adaptive strategy in docs/architecture.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions