Files
kata-containers/src/trace-forwarder
James O. D. Hunt 2a648fa760 logging: Use guard to make threaded logging safe
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>
2021-03-29 14:32:11 +01:00
..
2020-06-27 20:16:40 -07:00
2020-08-31 08:47:10 -05:00
2020-06-09 09:55:47 +01:00

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