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
When I instrument my connection like this: logfire.instrument_psycopg(connection) I get an error: `AttributeError: 'psycopg2.extensions.connection' object has no attribute '_is_instrumented_by_opentelemetry'
However, if I run logfire.instrument_psycopg() it works fine.
I found this strange because the docs suggested I could instrument a specific connection like this:
connection = psycopg.connect(
'dbname=database user=user password=secret host=0.0.0.0 port=5432'
)
# Or instrument just the connection:
logfire.instrument_psycopg(connection)
This is either a bug or user error, I am not sure how it could be user error though because the connection has worked fine for many months.
Python, Logfire & OS Versions, related packages (not required)
No response
The text was updated successfully, but these errors were encountered:
Description
I found these docs.
When I instrument my connection like this:
logfire.instrument_psycopg(connection)
I get an error: `AttributeError: 'psycopg2.extensions.connection' object has no attribute '_is_instrumented_by_opentelemetry'However, if I run
logfire.instrument_psycopg()
it works fine.I found this strange because the docs suggested I could instrument a specific connection like this:
This is either a bug or user error, I am not sure how it could be user error though because the connection has worked fine for many months.
Python, Logfire & OS Versions, related packages (not required)
No response
The text was updated successfully, but these errors were encountered: