- Imports:
- interface
wasi:logging/logging
- interface
wasi:observe/observe
- interface
WASI Logging is a logging API intended to let users emit log messages with simple priority levels and context values.
A log level, describing a kind of message.
-
Describes messages about the values of variables and the flow of control within a program.
-
Describes messages likely to be of interest to someone debugging a program.
-
Describes messages likely to be of interest to someone monitoring a program.
-
Describes messages indicating hazardous situations.
-
Describes messages indicating serious errors.
-
Describes messages indicating fatal errors.
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.
Emit a metric.
A metric has a format
describing the format of the name
parameter.
format
:metric-format
name
:string
Enter a named span.
Communicate to the o11y host that the guest is moving into a new span.
name
:string
Add tags to the current span.
Add a comma-delimited list of tags to the active span.
tags
:string
Exit the current span.
Communicate to the o11y host that the span is complete.