Skip to content

v0.1.42

Choose a tag to compare

@Mandark-droid Mandark-droid released this 09 Mar 04:48
· 40 commits to main since this release

Fixed

  • TimescaleDB instrumentor crash on psycopg2 C extension cursor - psycopg2.extensions.cursor is an immutable C type; wrapt cannot monkey-patch cursor.execute. Switched to wrapping psycopg2.connect and injecting a cursor subclass with TimescaleDB-specific span creation
  • CI pipeline failures - Guarded all optional dependency imports (httpx, requests, OTel instrumentor libraries) with try/except in MCP instrumentors; pinned Black to 25.11.0 for Python 3.9 compatibility; converted parenthesized context managers to contextlib.ExitStack; fixed test mocking for lazy __getattr__ import pattern

Added

  • Auto-load .env file - instrument() now calls dotenv.load_dotenv() if python-dotenv is installed, ensuring OTEL_EXPORTER_OTLP_ENDPOINT and other env vars from .env files are picked up automatically
  • Package name and version in trace resource attributes - Every span now includes telemetry.auto.name (genai-otel-instrument) and telemetry.auto.version resource attributes