Skip to content

use async rust-extensions#914

Closed
jprendes wants to merge 1 commit intocontainerd:mainfrom
jprendes:mostly-async
Closed

use async rust-extensions#914
jprendes wants to merge 1 commit intocontainerd:mainfrom
jprendes:mostly-async

Conversation

@jprendes
Copy link
Copy Markdown
Collaborator

@jprendes jprendes commented Mar 6, 2025

No description provided.

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
}

#[cfg_attr(feature = "tracing", tracing::instrument(level = "Info"))]
fn shim_main_inner<'a, I>(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried a similar refactoring before, but I realized that if there is only one shim_main function, then it's own trace will not be exported to the trace collector becuase this function initializes the opentelemetry infras. This is the main reason I splitted it to shim_main and shim_main_inner so that one can initialize a otel runtime and another one can export it's function tracing to the collector.

I am assuming with your refactoring we will not be able to see shim_main trace anymore.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, good catch, thanks!

@Mossaka Mossaka closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants