-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenTelemetry JDBC instrumentation - register Oracle driver manually
fixes: #28915
- Loading branch information
1 parent
da74776
commit 6f60c12
Showing
25 changed files
with
905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
integration-tests/opentelemetry-jdbc-instrumentation/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# OpenTelemetry JDBC instrumentation example | ||
|
||
## Running the tests | ||
|
||
|
||
To run the tests in a standard JVM with an Oracle, PostgreSQL and MariaDB database started as a Docker container, you can run the following command: | ||
|
||
``` | ||
mvn verify -Dtest-containers | ||
``` | ||
|
||
To also test as a native image, add `-Dnative`: | ||
|
||
``` | ||
mvn verify -Dtest-containers -Dnative | ||
``` | ||
|
||
You can also run tests with a specific database image | ||
You can also run tests with a specific database image, just set: | ||
|
||
- `oracle.image` for Oracle | ||
- `postgres.image` for PostgreSQL | ||
- `mariadb.image` for MariaDB | ||
|
||
For example to run tests with the latest PostgreSQL database image, you can run the following command: | ||
|
||
``` | ||
mvn verify -Dtest-containers -Dpostgres.image=docker.io/postgres:latest | ||
``` |
Oops, something went wrong.