Skip to content

Architect Soroban Contract Execution Budget Monitoring and Alert Infrastructure #625

@temma02

Description

@temma02

Description

Build monitoring infrastructure that tracks Soroban contract execution resource budgets (CPU instructions, memory) and alerts when contracts approach or exceed budget limits.

Requirements and Context

  • Observability: Execution budget usage must be tracked and alertable
  • Testing: Test budget tracking and alert thresholds
  • Documentation: Document the execution budget metrics

Suggested Execution

Branch: feat/issue-089-soroban-execution-budget-monitoring

Implement Changes

  • Add execution budget tracking to Soroban contract invocations
  • Capture CPU instruction count and memory usage per invocation
  • Alert when invocations approach the budget limit
  • Expose budget metrics for observability

Test and Commit

  • Test budget metric capture
  • Test alert triggering at threshold
  • Document the execution budget metrics

Example Commit Message

feat(soroban): add execution budget monitoring and alerting

- Track CPU instructions and memory per invocation
- Alert when approaching budget limits
- Expose budget metrics for observability

Guidelines

  • Capture metrics from Soroban transaction metadata
  • Set alert thresholds below hard limits
  • Keep monitoring overhead minimal

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions