Skip to content

feat(attributes): Add middleware.name attribute#337

Open
ericapisani wants to merge 2 commits intomainfrom
py-2362-add-starlette-attribute
Open

feat(attributes): Add middleware.name attribute#337
ericapisani wants to merge 2 commits intomainfrom
py-2362-add-starlette-attribute

Conversation

@ericapisani
Copy link
Copy Markdown
Member

@ericapisani ericapisani commented Apr 23, 2026

Add a new span attribute middleware.name for capturing the name of middlewares, client or server side.

Refs PY-2362

Add a new span attribute for capturing the name of a Starlette
middleware in the Python SDK.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented Apr 23, 2026

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add middleware.name attribute by ericapisani in #337
  • Add device.low_power_mode attribute for iOS by itaybre in #314

Bug Fixes 🐛

  • Backfill several deprecated attributes by loewenheim in #332

Internal Changes 🔧

  • (attributes) Mark deprecated gen_ai and ai attributes as backfill by vgrozdanic in #333
  • (deps) Bump astro from 6.0.2 to 6.1.6 in /docs by dependabot in #330

🤖 This preview updates automatically when you update the PR.

Comment thread javascript/sentry-conventions/src/attributes.ts Outdated
Rename the attribute to be framework-agnostic so it can be reused by
other middleware instrumentations beyond Starlette.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ericapisani ericapisani changed the title feat(attributes): Add starlette.middleware.name attribute feat(attributes): Add middleware.name attribute Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants