Add example for pyodbc
@@ -11,13 +11,16 @@ Usage
.. code-block:: python
import mysql.connector
+ import pyodbc
from opentelemetry.trace import tracer_provider
from opentelemetry.ext.dbapi import trace_integration
trace.set_preferred_tracer_provider_implementation(lambda T: TracerProvider())
tracer = trace.get_tracer(__name__)
# Ex: mysql.connector
- trace_integration(tracer_provider(), mysql.connector, "connect", "mysql")
+ trace_integration(tracer_provider(), mysql.connector, "connect", "mysql", "sql")
+ # Ex: pyodbc
+ trace_integration(tracer_provider(), pyodbc, "Connection", "odbc", "sql")
References
