Skip to main content

OpenTelemetry instrumentation for OracleDB

Project description

OpenTelemetry Instrumentation for OracleDB

PyPI Python Version License GitHub

Automatic instrumentation for the python-oracledb driver ensuring Oracle Database operations are traced with OpenTelemetry.

Installation

pip install opentelemetry-instrumentation-oracledb

Usage

import oracledb

from opentelemetry.instrumentation.oracledb import OracleDBInstrumentor

OracleDBInstrumentor().instrument()

connection = oracledb.connect(
    user="system",
    password="password",
    dsn="localhost:1521/FREEPDB1",
)

with connection.cursor() as cursor:
    cursor.execute("SELECT 1 FROM dual")

Existing synchronous connections can also be instrumented explicitly:

connection = OracleDBInstrumentor().instrument_connection(connection)

The instrumentor can also be loaded automatically via the opentelemetry_instrumentor entry point using the opentelemetry-instrument CLI command.

opentelemetry-instrument python app.py

References

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opentelemetry_instrumentation_oracledb-0.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_oracledb-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_oracledb-0.1.0.tar.gz
Algorithm Hash digest
SHA256 19a78a73f96f3e29822a095ebd9116798f262dce99d4e7e919d7c219f2774204
MD5 4a3926c05cdf2be0c9a2a5d9ad39db94
BLAKE2b-256 994032998ebdc0648824d383bed73fda6e4019ae80394707006af938309c8a66

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_oracledb-0.1.0.tar.gz:

Publisher: publish.yml on herin049/opentelemetry-instrumentation-oracledb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opentelemetry_instrumentation_oracledb-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_oracledb-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38abc287682c68a0fe1d6dd6f241479e671998afcf0c80666c57062189280f03
MD5 9202996a97ff199d0ce13f2ef853a80f
BLAKE2b-256 5021a090e3ce3cc8fe4a85a02a69715b8f9a49811e218512beb9e77523937e4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_oracledb-0.1.0-py3-none-any.whl:

Publisher: publish.yml on herin049/opentelemetry-instrumentation-oracledb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page