-
Notifications
You must be signed in to change notification settings - Fork 9
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
Plugin causes issues with configuration cache #187
Comments
Yeah unfortunately that's one of the current limitations of the plugin https://github.com/craigatk/opentelemetry-gradle-plugin?tab=readme-ov-file#limitations Gradle unfortunately doesn't have a drop-in replacement for the before/after listeners that works with the configuration cache. I'm exploring options to work with the Gradle build services instead to be compatible with the configuration cache, but it'll take a bit as it'll be a complete re-architecture of the plugin. |
I've updated the plugin at v2.2.0 to add experimental support for using the plugin with the configuration cache. Docs are here, please give it a try and let me know how it works for you :) https://github.com/craigatk/opentelemetry-gradle-plugin?tab=readme-ov-file#gradle-configuration-cache |
Thanks! We'll take a look. |
I'm seeing an error with both 2.2.0 and 3.0.0 running
This is on gradle 8.7 Running without configuration cache works. Explicitly setting |
Thanks for the heads up about that error! I'll investigate 👀 |
I released a new version |
Thanks for trying it out! I'll look into what's going on with the duration of the top-level span 👀 |
I released a new version of the plugin |
Thanks a lot! Looks promising after testing a couple of cases. Will close the issue once we have a few days of data (prob. after the holidays). |
Sounds good, thanks for testing it out! |
(This is documented but would be nice to see fixed)
When adding the plugin to a project using gradle configuration cache I see the following errors:
Configuration cache problems found in this build.
2 problems were found storing the configuration cache.
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:build_listeners
See https://docs.gradle.org/8.4/userguide/configuration_cache.html#config_cache:requirements:build_listeners
This can be worked around by putting the following in gradle.properties:
However, with those telemetry is only produced when there is a configuration cache miss.
The text was updated successfully, but these errors were encountered: