Skip to content

Releases: getsentry/sentry-python

2.54.0

02 Mar 15:12

Choose a tag to compare

New Features ✨

  • Add set_attribute, remove_attribute to global API by @sentrivana in #5555

    You can now set and unset attributes on logs and metrics via top-level API. Think of it as sentry_sdk.set_tag() for attribute-based telemetry. Other event types (transactions, spans, errors) will be unaffected.

    import sentry_sdk
    
    sentry_sdk.init(...)
    
    sentry_sdk.set_attribute("my.attribute", "my value")
    
    # This metric will have "my.attribute" set
    sentry_sdk.metrics.count("counter", 1)
    
    # Remove the attribute
    sentry_sdk.remove_attribute("my.attribute")
    
    # This log will not have "my.attribute" set
    sentry_sdk.logger.info("An info log")

Bug Fixes πŸ›

Openai

Other

Documentation πŸ“š

Internal Changes πŸ”§

Agents

Openai

Openai Agents

Other

  • (ai) Add configuration for dotagents by @ericapisani in #5480
  • (anthropic) Remove set_data_normalized for primitive attributes by @alexander-alderman-webb in #5504
  • (github) Add warden configuration by @ericapisani in #5484
  • (pydantic-ai) Remove set_data_normalized for the gen_ai.response.model attribute by @alexander-alderman-webb in #5512
  • (repo) Add .serena to .gitignore by @ericapisani in #5464
  • Updated codecov.yml by @MathurAditya724 in #5571
  • πŸ€– Update test matrix with new releases (02/24) by @github-actions in #5524
  • πŸ€– Update test matrix with new releases (02/23) by @github-actions in #5503
  • πŸ€– Update test matrix with new releases (02/19) by @github-actions in #5483
  • πŸ€– Update test matrix with new releases (02/18) by @github-actions in #5475

2.52.0a7

25 Feb 13:03

Choose a tag to compare

2.52.0a7 Pre-release
Pre-release

This is an alpha release for internal testing.

2.52.0a6

23 Feb 10:03

Choose a tag to compare

2.52.0a6 Pre-release
Pre-release

This is an alpha release for internal testing.

2.53.0

16 Feb 11:11

Choose a tag to compare

Bug Fixes πŸ›

Openai Agents

Other

Documentation πŸ“š

Internal Changes πŸ”§

Openai Agents

Other

2.52.0a5

12 Feb 09:58

Choose a tag to compare

2.52.0a5 Pre-release
Pre-release

Documentation πŸ“š

Internal Changes πŸ”§

Other

2.52.0a4

10 Feb 11:22

Choose a tag to compare

2.52.0a4 Pre-release
Pre-release

2.52.0a3

09 Feb 14:54

Choose a tag to compare

2.52.0a3 Pre-release
Pre-release

New Features ✨

Bug Fixes πŸ›

Mcp

Span Streaming

  • fix(span-streaming): Always preserialize attributes by @sentrivana in #5407
  • fix(span-streaming): Warn about thread usage if any batcher is active by @sentrivana in #5408

Other

Internal Changes πŸ”§

Fastmcp

Mcp

Other

Other

2.52.0

04 Feb 15:04

Choose a tag to compare

New Features ✨

Other

Bug Fixes πŸ›

Google Genai

Mcp

Other

Internal Changes πŸ”§

Fastmcp

Mcp

Other

Other

2.52.0a2

02 Feb 12:53

Choose a tag to compare

2.52.0a2 Pre-release
Pre-release

New Features ✨

Span Streaming

  • feat(span-streaming): Add spans to telemetry pipeline, add span name and attributes (3) by @sentrivana in #5399
  • feat(span-streaming): Add span batcher (2) by @sentrivana in #5398

Internal Changes πŸ”§

Other

2.52.0a1

02 Feb 08:58

Choose a tag to compare

2.52.0a1 Pre-release
Pre-release

New Features ✨

Openai

Other

Bug Fixes πŸ›

  • fix(ai): Keep single content input message by @alexander-alderman-webb in #5345
  • fix(arq): handle settings_cls passed as keyword argument by @nc9 in #5393
  • fix(dramatiq): cleanup isolated scope and transaction when message is skipped by @frankie567 in #5346
  • fix(google-genai): deactivate google genai when langchain is used by @shellmayr in #5389

Internal Changes πŸ”§

Other