Skip to content

v2.1.0

Choose a tag to compare

@EM51641 EM51641 released this 14 Jun 23:11
· 62 commits to main since this release

Release Notes v2.1.0

πŸš€ New Features

OpenTelemetry Integration

  • Added OpenTelemetry support for monitoring and tracing
  • Automatic span creation for SendGrid operations
  • HTTP metrics tracking (status codes, content length, URLs)
  • SendGrid metrics (attachments, recipients)

Error Handling

  • Improved session management with better error messages
  • Enhanced exception handling with detailed error information

πŸ”§ Improvements

Code Quality

  • Added comprehensive type hints
  • Improved docstrings and documentation
  • Enhanced test coverage
  • Better session management

Testing

  • Added telemetry test fixtures
  • New integration tests for telemetry
  • Unit tests for metrics
  • Better test organization

πŸ› Bug Fixes

  • Fixed session management issues
  • Improved error handling for closed sessions
  • Fixed type hints in telemetry decorators
  • Fixed span creation and management

πŸ“¦ Dependencies

Added

  • opentelemetry-api>=1.20.0
  • opentelemetry-sdk>=1.20.0

Updated

  • pytest>=7.0.0
  • pytest-asyncio>=0.21.0
  • pytest-cov>=4.1.0

πŸ”„ Configuration

Environment Variables

  • SENDGRID_TELEMETRY_IS_ENABLED: Enable/disable telemetry (default: true)
  • SENDGRID_TELEMETRY_SPAN_NAME: Custom span name (default: "sendgrid.send")

πŸ“ Documentation

Added

  • Telemetry integration guide
  • OpenTelemetry setup instructions
  • Metrics and tracing examples
  • API reference for telemetry

Updated

  • README with new features
  • API documentation
  • Error handling documentation