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

Add substitutions for DriverFactory#getOrCreateMetricsProvider. #1183

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

michael-simons
Copy link
Contributor

This prevents an eager class loading of Micrometer when compiling on GraalVM native image and fixes #1182.

This prevents an eager class loading of Micrometer when compiling on GraalVM native image and fixes neo4j#1182.
@michael-simons
Copy link
Contributor Author

Reproducer which I used for testing https://github.com/michael-simons/neo4j-java-driver-native-example

Allows now turning on metrics. With latest snapshot (build) locally it works. Substitutions will turn of metrics now when there's no micrometer.

@meistermeier
Copy link
Contributor

meistermeier commented Mar 14, 2022

Reproducer shows the problem with 4.4.4 but it's gone with this patch. 👏

@injectives injectives merged commit c654c0f into neo4j:4.4 Mar 14, 2022
injectives pushed a commit to injectives/neo4j-java-driver that referenced this pull request Mar 16, 2022
…j#1183)

This prevents an eager class loading of Micrometer when compiling on GraalVM native image and fixes neo4j#1182.
injectives added a commit that referenced this pull request Mar 16, 2022
… (#1189)

This prevents an eager class loading of Micrometer when compiling on GraalVM native image and fixes #1182.

Co-authored-by: Michael Simons <michael.simons@neo4j.com>
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.

3 participants