Skip to main content

OpenTelemetry pymongo integration

Project description

The integration with MongoDB supports the pymongo library and is specified to trace_integration using 'pymongo'.

Usage

from pymongo import MongoClient
from opentelemetry.trace import tracer
from opentelemetry.trace.ext.pymongo import trace_integration

trace_integration(tracer())
client = MongoClient()
db = client["MongoDB_Database"]
collection = db["MongoDB_Collection"]
collection.find_one()

Project details


Download files

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

Files for opentelemetry-ext-pymongo, version 0.3a0
Filename, size File type Python version Upload date Hashes
Filename, size opentelemetry_ext_pymongo-0.3a0-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page