mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-26 02:24:21 +01:00
Return a guard variable from `create_logger()` which the caller can
implicitly drop to guarantee that all threads started by the async log
drain are stopped.
This fixes a long-standing bug [1] whereby the agent could panic with
the following error, generated by the `slog` logging crate:
```
slog::Fuse Drain: Custom { kind: Other, error: "serde serialization error: Bad file descriptor (os error 9)" }
```
[1] - See https://github.com/kata-containers/kata-containers/issues/171.
Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Trace Forwarder
Overview
The Kata Containers trace forwarder, kata-trace-forwarder, is a component
running on the host system which is used to support tracing the agent process
which runs inside the virtual machine.
The trace forwarder, which must be started before the agent, listens over VSOCK for trace data sent by the agent running inside the virtual machine. The trace spans are exported to an OpenTelemetry collector (such as Jaeger) running by default on the host.
Full details
Run:
$ cargo run -- --help