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

Disabling Log correlation when agent is inactive #787

Merged

Conversation

eyalkoren
Copy link
Contributor

@eyalkoren eyalkoren commented Aug 8, 2019

  • Implement code
  • Add tests
  • Update documentation
  • Update CHANGELOG.md

@felixbarny
Copy link
Member

What if active is set to false after the activation and before the deactivation? We should have a transaction-scoped flag (can we use the noop flag?) which is consistent for a whole transaction. If that is false, call no scope listeners.

@eyalkoren
Copy link
Contributor Author

What if active is set to false after the activation and before the deactivation?

I only check in adding to MDC but always removing from MDC.

Copy link
Member

@felixbarny felixbarny left a comment

Choose a reason for hiding this comment

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

can you add a test where active is set to false in between an activation?

@@ -5,6 +5,7 @@
## Bug Fixes
* A warning in logs saying APM server is not available when using 1.8 with APM server 6.x
* `ApacheHttpAsyncClientInstrumentation` matching increases startup time considerably
* Log correlation feature is active when `active==false`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* Log correlation feature is active when `active==false`
* Disable log correlation feature when `active=false`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The Bug Fixes section usually describes the bugs and not the fixes

@eyalkoren eyalkoren self-assigned this Aug 8, 2019
@eyalkoren eyalkoren merged commit 408489e into elastic:master Aug 8, 2019
@eyalkoren eyalkoren deleted the disable-log-correlation-when-inactive branch August 8, 2019 09:12
@SylvainJuge SylvainJuge added bug Bugs and removed type: bug labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants