Membrane.Instrumentation.TraceToken (Membrane Video Transcode v0.1.0)

Copy Markdown View Source

Compact frame identity used to correlate instrumentation events across stages.

Create tokens with Membrane.Instrumentation.FrameTrace.token/1 and pass them to Membrane.Instrumentation.emit_frame_stage_from_token/5. Timestamps use monotonic nanoseconds and are meaningful only within the originating VM.

Summary

Types

t()

@type t() :: %Membrane.Instrumentation.TraceToken{
  created_at_ns: integer(),
  frame_id: integer(),
  pts: Membrane.Time.t() | nil,
  sampled: boolean(),
  trace_id: integer()
}