Skip to content

Plugin Diagnostic API #13

Open
Open

Description

@jrobhoward

In addition to getRejectedRequestCount() and getState(), it should be possible to add more detailed plugin diagnostics.

Proposed metrics:

  • Memory/heap consumption (could add an allocator shim that tracks heap memory used)
  • CPU usage
  • Total successful calls
  • Total failed/error calls
  • Call latency (min/max/avg/p99)
  • Active concurrent request count
  • Throughput (requests/sec)

Considerations:

  • Use a feature flag, make it optional
  • Some metrics (CPU, memory) may require platform-specific implementations (sysinfo crate?)
  • Consider a structured PluginDiagnostics response object vs individual getters
  • Latency tracking adds overhead - consider making it opt-in (feature flag)
  • May want time-windowed metrics (last 1m, 5m, 15m) vs cumulative

Activity

  1. added this to the Post-1.0 milestone on Feb 5, 2026
  2. added
    idea
    on Feb 5, 2026
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

    idea

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions