Skip to content

Address guest tracing improvements #964

@dblnz

Description

@dblnz

The current version using opentelemetry is an incremental step, after which additional tunables can be added to improve usability.

Improvements to be considered:

  • Fix max tracing level based on the max log level the guest is provided
  • The guest logging shall use the same logic as tracing for reporting back to host. Maybe we can have spans/events emitted as logs in the guest.
  • Change the tracing underlying storage to a circular buffer for traces/events to avoid context switches. This ensures the guest doesn't do host calls to further degrade performance. Trace/logs loss is an acceptable compromise
  • Provide a mechanism on the guest to enable/disable the tracing support, configure the memory used and log level at runtime
  • Consider changing to a heap allocated circular buffer, which is runtime configurable

Metadata

Metadata

Assignees

Labels

kind/enhancementFor PRs adding features, improving functionality, docs, tests, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions