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

use Play Environment's classloader when creating Kamon-related objects #1185

Merged
merged 1 commit into from
Jun 27, 2022

Conversation

ivantopo
Copy link
Contributor

This solves ClassNotFoundExceptions thrown when a Play application is running on development mode and the application requires Kamon to dynamically create object instances for classes that belong to the Play project itself.

For example, creating a custom slow statement processor for the JDBC instrumentation within a Play project. This will always fail in development mode, but work fine on production.

@ivantopo ivantopo merged commit 1212250 into kamon-io:master Jun 27, 2022
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.

1 participant