Skip to content

Stellar contract observability/metrics event standard #74

@truthixify

Description

@truthixify

Tier: M (2-4 days) Type: feature

Context

Off-chain dashboards need stable metric events from contracts (count of payments, total volume, error counts). Standardize the metric event format so a single indexer can consume across all Wraith Stellar contracts.

Scope

  • Define WraithMetricEvent { contract, metric_name, value, dimensions } schema
  • Emit from each contract at meaningful points (post-send, post-register, post-claim)
  • Off-chain reference indexer in stellar/scripts/metrics-indexer/
  • Prometheus exporter format
  • Demo dashboard config

Acceptance criteria

  • Event standard documented in stellar/METRICS.md
  • At least 3 contracts emitting standard events
  • Reference indexer working against futurenet
  • Demo Prometheus + Grafana dashboard

Files to start with

  • All stellar/*/src/lib.rs
  • New: stellar/METRICS.md, stellar/scripts/metrics-indexer/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programdripsFunded via Drips NetworkfeatureNew feature workhelp wantedExtra attention is neededstellarTouches Stellar / Soroban codetoolingBuild / tooling work

    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