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

issue #344 completable future tokens not expired correctly #634

Merged
merged 4 commits into from
Jan 10, 2022

Conversation

richard-gibson
Copy link
Contributor

@richard-gibson richard-gibson commented Jan 4, 2022

Before contributing, please read our contributing guidelines and code of conduct.

Overview

CompletableFutures instrumentation currently creates tokens whenever a CompletableFuture is created. We assume that CF will be completed, whether success or error. When completed, we catch all the finish points to expire our token.

New implementation only creates Tokens on execution of CompletionStage rather than creation of the Structure.
Token is expired on completion of Execution.

Related Github Issue

Resolves #344

Testing

The agent includes a suite of tests which should be used to
verify your changes don't break existing functionality. These tests will run with
Github Actions when a pull request is made. More details on running the tests locally can be found
here,

Checks

[Y] Are your contributions backwards compatible with relevant frameworks and APIs?
[N] Does your code contain any breaking changes? Please describe.
[N] Does your code introduce any new dependencies? Please describe.

@@ -2,8 +2,6 @@ import com.nr.builder.JarUtil

evaluationDependsOn(":newrelic-agent") // This is important because we need newrelic-agent to be configured before functional_test so the correct ("unversioned") jar name gets used

apply plugin: 'scala'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

scala plugin not needed for functional tests

@twcrone twcrone merged commit a2b1d34 into main Jan 10, 2022
@twcrone twcrone deleted the 349-completablefuture branch January 10, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CompletableFutures instrumentation potentially causes token timeouts
4 participants