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

made the call to trace to be called only when tracer is enabled #2817

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

ygalbel
Copy link
Contributor

@ygalbel ygalbel commented Sep 5, 2024

In internal-channel.ts file there is a trace after channel is constructed.
In this trace, the full stacktrace is added.

The trace is written only when the log level is on trace, but the stacktrace is calculated in any case.
We found in our usage, that if you have a big bundle file it can take few seconds to calculate the stacktrace, it can be reasonable in trace mode but not in production.

See #2816 for the conversation with @murgatroid99.

image

Copy link
Member

@murgatroid99 murgatroid99 left a comment

Choose a reason for hiding this comment

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

Thank you for the fix.

@murgatroid99 murgatroid99 merged commit bb4496b into grpc:@grpc/grpc-js@1.11.x Sep 5, 2024
3 of 5 checks passed
@murgatroid99
Copy link
Member

This is out in version 1.11.2.

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.

3 participants