Skip to content

Commit 9612b18

Browse files
committed
Disable OpenTelemetry in the MySQL Container
The newer Kotlin compiler versions contain a stripped-down implementation of OpenTelemetry that conflicts with the MySQL connector's expectations of what's available. Since this is just for testing, we don't need any OpenTelemetry support, so just turn it off.
1 parent 8788747 commit 9612b18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/java/examples/mysql/MySQLTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class MySQLTest {
4848
@Container
4949
private static final MySQLContainer mysql =
5050
new MySQLContainer(TestContainersConfiguration.MYSQL_LATEST)
51+
.withUrlParam("openTelemetry", "DISABLED")
5152
.withInitScript("examples/mariadb/CreateDB.sql");
5253

5354
private SqlSessionFactory sqlSessionFactory;

0 commit comments

Comments
 (0)