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

Create AgentBuilder with logging listeners only if in debug mode #1231

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

heathkd
Copy link
Contributor

@heathkd heathkd commented Feb 19, 2020

To test the effectiveness of this change, a sample spring app was run multiple times with tracer 0.43.0 and 0.44.0 (the tracer with these changes) on non-debug mode. The average start-up time is shown below:

0.43.0 -> 12.996 s
0.44.0 -> 12.196 s

Not adding the listener on non-debug mode shaves a bit of time off start-up.

@heathkd heathkd requested a review from dougqh February 19, 2020 21:42
@heathkd heathkd requested a review from a team as a code owner February 19, 2020 21:42
@heathkd heathkd self-assigned this Feb 19, 2020
@heathkd heathkd force-pushed the heather.dsouza/disable_log_listeners branch from aa546a4 to 1be2f23 Compare February 20, 2020 15:23
@tylerbenson tylerbenson added the tag: performance Performance related changes label Feb 20, 2020
@heathkd heathkd force-pushed the heather.dsouza/disable_log_listeners branch from 1be2f23 to b7b46ca Compare February 20, 2020 21:33
@heathkd heathkd merged commit c0baa48 into master Feb 20, 2020
@heathkd heathkd deleted the heather.dsouza/disable_log_listeners branch February 20, 2020 22:07
@randomanderson randomanderson added this to the 0.44.0 milestone Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: performance Performance related changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants