Skip to content

Latest commit

 

History

History
95 lines (95 loc) · 3.41 KB

imports.md

File metadata and controls

95 lines (95 loc) · 3.41 KB
  • Imports:
    • interface wasi:logging/logging
    • interface wasi:observe/observe

WASI Logging is a logging API intended to let users emit log messages with simple priority levels and context values.


Types

A log level, describing a kind of message.

Enum Cases
  • trace

    Describes messages about the values of variables and the flow of control within a program.

  • debug

    Describes messages likely to be of interest to someone debugging a program.

  • info

    Describes messages likely to be of interest to someone monitoring a program.

  • warn

    Describes messages indicating hazardous situations.

  • error

    Describes messages indicating serious errors.

  • critical

    Describes messages indicating fatal errors.


Functions

Emit a log message.

A log message has a level describing what kind of message is being sent, a context, which is an uninterpreted string meant to help consumers group similar messages, and a string containing the message text.

Params

Types

Enum Cases

Functions

Emit a metric.

A metric has a format describing the format of the name parameter.

Params

Enter a named span.

Communicate to the o11y host that the guest is moving into a new span.

Params

Add tags to the current span.

Add a comma-delimited list of tags to the active span.

Params

Exit the current span.

Communicate to the o11y host that the span is complete.