docs.rs failed to build stateset-observability-0.8.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
stateset-observability-0.7.0
stateset-observability
Observability primitives for StateSet iCommerce:
- Structured tracing bootstrap (
init_tracing) - Business counters (orders, payments, inventory)
- RED metrics (
record_request_*) - SLO evaluation (
SloTarget,SloEvaluation) - Span/metric naming conventions (
conventions)
Tracing
use init_tracing;
init_tracing
.expect;
Metrics + RED + SLO
use Duration;
use ;
let metrics = init_metrics;
metrics.record_order_created;
metrics.record_request_success;
metrics.record_request_error;
let snapshot = metrics.snapshot;
let report = snapshot
.evaluate_operation_slo
.expect;
assert!;
Conventions
- Span names:
stateset.<normalized_operation>(for examplestateset.order_create) - Metric names:
stateset_requests_totalstateset_request_errors_totalstateset_request_duration_ms_total
- Label keys:
serviceoperationenvironmentregionoutcome
Use normalize_name, operation_span_name, and operation_metric_label to keep cardinality stable.
License
MIT OR Apache-2.0