Skip to content

Conversation

@jprendes
Copy link
Collaborator

@jprendes jprendes commented Mar 6, 2025

No description provided.

Signed-off-by: Jorge Prendes <[email protected]>
}

#[cfg_attr(feature = "tracing", tracing::instrument(level = "Info"))]
fn shim_main_inner<'a, I>(
Copy link
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
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!

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