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

Akka propagation fix and concurrency tests #3099

Merged
merged 3 commits into from
May 27, 2021

Conversation

agoallikmaa
Copy link
Contributor

  • We previously propagated context to an Akka Mailbox which caused context leak and broke concurrency tests due to the validation in ContextPropagationDebug. The class name of the Mailbox is akka.dispatch.Dispatcher$$anon$1 as it is created in akka.dispatch.Dispatcher#createMailbox using with <trait> syntax which actually creates an anonymous class. Excluded it based on that name for now as for the versions currently being tested, this is the only anonymous class present in that file.
  • Enabled high concurrency test for Akka HttpServerTest and HttpClientTest implementations.
  • Changed ContextPropagationDebug to record not just the stack trace of each propagation, but the name of the class that carried the context. This made it much simpler to debug what classes we actually attach the context to.

Comment on lines +81 to +83
Propagation entry = i.next();
sb.append("\ncarrier of type: ").append(entry.carrierClassName);
for (StackTraceElement ste : entry.location) {
Copy link
Member

Choose a reason for hiding this comment

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

Nice! 👍

@agoallikmaa agoallikmaa force-pushed the akka-fix-and-concurrency-tests branch from aa6c829 to 354250a Compare May 27, 2021 10:55
@trask trask merged commit 165bc1e into open-telemetry:main May 27, 2021
robododge pushed a commit to robododge/opentelemetry-java-instrumentation that referenced this pull request Jun 17, 2021
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.

5 participants