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

Support manual trace flushing interface #4246

Open
kwonoj opened this issue Apr 4, 2022 · 1 comment
Open

Support manual trace flushing interface #4246

kwonoj opened this issue Apr 4, 2022 · 1 comment

Comments

@kwonoj
Copy link
Member

kwonoj commented Apr 4, 2022

Describe the feature

Ref: vercel/next.js#35803 (comment)

Unlike my expectations, cleanup_env_hook will not be called when parent process exists forcefully, like process.exit(). Since our trace teardown relies on cleanup_env entirely, there's no way caller can manually flushes trace in that case.

We may want to expose an interface to close subscribers manually, along with existing cleanup hoop.

Babel plugin or link to the feature description

No response

Additional context

No response

@kwonoj
Copy link
Member Author

kwonoj commented Apr 5, 2022

relavant: thoren-d/tracing-chrome#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants