opengleametry_test

Types

pub type Status {
  OkStatus
  ErrorStatus(msg: String)
}

Constructors

  • OkStatus
  • ErrorStatus(msg: String)

Values

pub fn receive_attributes(
  timeout: Int,
  span_name: String,
) -> Result(#(Status, dict.Dict(String, String)), Nil)

Receive a span in the current process by span_name, returning its status and attributes as dict. timeout is in ms.

Note: spans that you do not receive linger in the inbox. They may come out when you do not expect them anymore. Best to receive all spans.

pub fn reconfigure_opentelemetry() -> Nil

Call this in your main test function.

pub fn set_self_as_exporter_pid() -> Nil

Call this for each gleeunit test process. Read: call it in every test where you check attributes of spans.

Search Document