You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your environment
Describe your environment
Mac OS Catalina 10.15.6 (19G73)
Darwin-19.6.0-x86_64-i386-64bit
Python 3.7.7
Installed packages:
opentelemetry-api 0.12b0 OpenTelemetry Python API
opentelemetry-ext-honeycomb 0.5b0 Honeycomb Exporter for OpenTelemetry
opentelemetry-instrumentation 0.12b0 Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python
opentelemetry-instrumentation-botocore 0.12b0 OpenTelemetry Botocore instrumentation
opentelemetry-instrumentation-pymongo 0.12b0 OpenTelemetry pymongo instrumentation
opentelemetry-instrumentation-requests 0.12b0 OpenTelemetry requests instrumentation
pymongo 3.11.0 Python driver for MongoDB <http://www.mongodb.org>
Steps to reproduce
any find operation where the number of documents to be returned exceeds the batch size on the cursor:
from pymongo import MongoClient
from opentelemetry import trace
from opentelemetry.trace import TracerProvider
from opentelemetry.instrumentation.pymongo import PymongoInstrumentor
trace.set_tracer_provider(TracerProvider())
PymongoInstrumentor().instrument()
client = MongoClient()
db = client["MongoDB_Database"]
collection = db["MongoDB_Collection"]
collection.find({'batch_size': 1})
What is the expected behavior?
Spans with names like mongodb.getMore.1
What is the actual behavior?
Traceback (most recent call last):
File "/Users/drubin/cargurus/analytics/snowblower/.venv/lib/python3.7/site-packages/pymongo/monitoring.py", line 1266, in publish_command_start
subscriber.started(event)
File "/Users/drubin/cargurus/analytics/snowblower/.venv/lib/python3.7/site-packages/opentelemetry/instrumentation/pymongo/__init__.py", line 69, in started
name += "." + command
TypeError: can only concatenate str (not "int") to str
The text was updated successfully, but these errors were encountered:
Describe your environment
Describe your environment
Mac OS Catalina 10.15.6 (19G73)
Darwin-19.6.0-x86_64-i386-64bit
Python 3.7.7
Installed packages:
Steps to reproduce
any find operation where the number of documents to be returned exceeds the batch size on the cursor:
What is the expected behavior?
Spans with names like
mongodb.getMore.1
What is the actual behavior?
The text was updated successfully, but these errors were encountered: