Skip to content

aetelier_telemetry::attributes

Shared OpenTelemetry attribute keys for the aetelier-sdk engine.

These constants define the dimensional labels attached to every metric, span, and log record. Using shared constants ensures consistency across all instrumentation points and prevents typo-induced cardinality explosions.

Cardinality Guidelines

  • Low cardinality (safe on metrics): EXCHANGE, SYMBOL, MARKET_TYPE, WORKER_ID, TOPIC, SINK_NAME.
  • High cardinality (spans/logs only, never on metrics): trade IDs, update IDs, order timestamps, raw prices.

Skeleton API reference

This page lists the public items in aetelier_telemetry::attributes with a one-line summary each. Signatures and source live in the SDK repository.

Functions

Item Summary
event_attributes Build the common per-event attribute set used on every counter/histogram observation.
topic_category Extract the topic category from a canonical topic name.
worker_attributes Build the per-worker attribute set used on gauges and worker-level metrics.

Constants

Item Summary
EXCHANGE Exchange identifier (e.g.
MARKET_TYPE Market type: "spot", "perpetual", or "inverse".
SINK_NAME Output sink name (e.g.
SYMBOL Trading pair / instrument symbol (e.g.
TOPIC Canonical topic name (e.g.
TOPIC_CATEGORY Topic category for dashboard metric filtering.
WORKER_ID Unique worker identifier (e.g.