Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vmm: imporve observability to vmm-task & vmm-sandboxer #146

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Ziy1-Tan
Copy link
Contributor

@Ziy1-Tan Ziy1-Tan commented Aug 4, 2024

closes #5

async fn append_container(&mut self, id: &str, options: ContainerOption) -> Result<()> {

  • Visualize the results:

image

Main Changes

  • : Replace env_logger with crate tracing;
  • : Add #[instrument] for Sandbox and Container API;
  • : Consume tracing data with the opentelemetry backend (e.g. Jaeger).

Steps

  1. Enable tracing feature:
[sandbox]
enable_tracing = false
[hypervisor]
[hypervisor.task]
enable_tracing = false
[hypervisor.virtiofsd]
  1. Run the jaeger server:
docker run --rm --name jaeger \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 4317:4317 \
  -p 4318:4318 \
  -p 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one
  1. Run the Kuasar: https://github.com/kuasar-io/kuasar#quick-start

  2. Check the result: visit the web page http://localhost:16686/

@Ziy1-Tan Ziy1-Tan requested a review from a team as a code owner August 4, 2024 09:28
@Ziy1-Tan Ziy1-Tan marked this pull request as draft August 4, 2024 09:29
@Ziy1-Tan Ziy1-Tan changed the title vmm: Add observability to vmm-task & vmm-sandboxer vmm: imporve observability to vmm-task & vmm-sandboxer Aug 4, 2024
@Ziy1-Tan Ziy1-Tan marked this pull request as ready for review September 8, 2024 13:35
@Ziy1-Tan Ziy1-Tan force-pushed the feat-trace branch 2 times, most recently from c7bb961 to 7171a71 Compare September 16, 2024 07:02
@Ziy1-Tan Ziy1-Tan requested a review from a team as a code owner September 16, 2024 07:02
@Ziy1-Tan
Copy link
Contributor Author

cc @Burning1020

@Ziy1-Tan Ziy1-Tan force-pushed the feat-trace branch 4 times, most recently from b549073 to 5a8ef7b Compare September 18, 2024 15:19
Signed-off-by: Ziy1-Tan <[email protected]>
Signed-off-by: Ziy1-Tan <[email protected]>
Signed-off-by: Ziy1-Tan <[email protected]>
Signed-off-by: Ziy1-Tan <[email protected]>
Signed-off-by: Ziy1-Tan <[email protected]>
Signed-off-by: Ziy1-Tan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add observability to the project
1 participant