This example application demonstrates how to implement a custom tracing implementation for the Oracle JDBC driver, using a Spring Boot app context and OpenTelemetry, as an alternative to the [OJDBC Trace Event Listener](https://github.com/oracle/ojdbc-extensions/blob/main/ojdbc-provider-opentelemetry/src/main/java/oracle/jdbc/provider/opentelemetry/OpenTelemetryTraceEventListener.java)
What this sample demonstrates
Spring
Spring framework samples for data access, messaging, configuration, and application wiring.
Use when Java applications need Spring-managed components backed by Oracle AI Database.
Observability
Tracing and client metadata samples for following application work into database sessions.
Use when teams need to correlate HTTP, JDBC, JMS, and database activity during operations.
Highlights
- JDBCTraceEventListener implements spans for the Oracle JDBC Driver. Based on the OpenTelemetryTraceEventListener
- JDBCTraceEventListenerProvider provides an instance of the Trace Event Listener to the Oracle JDBC Driver during application startup.
- TracingConfigurator & TracingProperties provide Spring Boot configuration for the Trace Event Listener.