Skip to content

v0.1.41 - CI Fixes, Lazy Imports, Package Tracing

Choose a tag to compare

@Mandark-droid Mandark-droid released this 07 Mar 12:14
· 43 commits to main since this release

Changes

Added

  • Package name and version (telemetry.auto.name, telemetry.auto.version) added to trace resource attributes
  • Configurable trace sampling rate via GENAI_SAMPLING_RATE environment variable
  • Lazy __getattr__ pattern for fast imports (import time reduced from ~7s to ~16ms)
  • Performance benchmarks for import time, span wrapper overhead, and cost calculation
  • Security audit documentation (SECURITY.md)
  • Performance tuning guide (docs/PERFORMANCE_TUNING.md)
  • Python compatibility matrix (docs/PYTHON_COMPATIBILITY.md)
  • Memory leak detection test for instrument/uninstrument cycles
  • Package size and import time constraint tests
  • Dependency compatibility and graceful degradation tests
  • /release slash command for Claude Code

Fixed

  • Guard all optional dependency imports (httpx, requests, OTel instrumentor libraries) with try/except in MCP instrumentors
  • Fix test mocking for lazy __getattr__ import pattern in test_init.py
  • Pin Black to 25.11.0 for Python 3.9 compatibility across CI environments
  • Fix parenthesized context managers (Python 3.10+ syntax) using contextlib.ExitStack
  • Align pre-commit hook and CI Black versions

Changed

  • Black version pinned to ==25.11.0 (was >=23.0.0) for consistent formatting
  • Black target-version set to ['py39'] for cross-version compatibility