Crate mysten_metrics

Source

Re-exports§

Modules§

Macros§

Structs§

Constants§

Traits§

  • MonitorCancellation records a cancelled = true span attribute if the future it is decorating is dropped before completion. The cancelled attribute must be added at span creation, as you cannot add new attributes after the span is created.

Functions§

  • Add a new entry to the ServerTiming header. If the caller is not currently in a ServerTiming context (created with with_new_server_timing), an error is logged.
  • Similar to uptime_metric, but for the bridge node with different labels. Create a metric that measures the uptime from when this metric was constructed. The metric is labeled with:
  • Get the currently active ServerTiming context. Only intended for use by macros within this module.
  • This function creates a named scoped object, that keeps track of
  • Create a metric that measures the uptime from when this metric was constructed. The metric is labeled with:
  • Create a new task-local ServerTiming context and run the provided future within it. Should be used at the top-most level of a request handler. Can be added to an axum router as a layer by using mysten_service::server_timing_middleware.
  • Create a new task-local ServerTiming context and run the provided future within it. Only intended for use by macros within this module.

Type Aliases§