Skip to content

[BUG]: Possibly unnecessary error log about psycopg patching failure #13931

@goodspark

Description

@goodspark

Tracer Version(s)

3.10.1

Python Version(s)

3.10

Pip Version(s)

23.0.1

Bug Report

Seeing these error logs when running:

failed to enable ddtrace support for psycopg: partially initialized module 'ddtrace.contrib.internal.psycopg.patch' has no attribute 'patch' (most likely due to a circular import)

It seems tracing still works though. I still see DB traces after deploying this version of Datadog (I upgraded from an older 2.x version).

So I assume this isn't really an error. It's most just an informative/debug log that's only really interesting to ddtrace devs. In that case, I'd say it should probably just be a debug log then.

Reproduction Code

No response

Error Logs

No response

Libraries in Use

  • ddtrace 3.10.1
  • sqlalchemy 2.0.35
  • psycopg 3.2.9
  • psycopg-binary 3.2.9

Operating System

Linux a0a4eda65d89 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 02:32:42 UTC 2024 aarch64 GNU/Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions