Skip to content

feat: Add envelope abstraction and session tracking - #627

Merged
mitsuhiko merged 35 commits into
masterfrom
feature/envelopes
Mar 11, 2020
Merged

mitsuhiko merged 35 commits into
masterfrom
feature/envelopes

Conversation

@mitsuhiko

Copy link
Copy Markdown
Contributor

Initial work to support envelopes in parts of the system.

@mitsuhiko mitsuhiko changed the title feat: Add envelope abstraction feat: Add envelope abstraction and session tracking Feb 19, 2020
Comment thread sentry_sdk/client.py Resolved
Comment thread sentry_sdk/sessions.py Resolved
Comment thread sentry_sdk/sessions.py Resolved
Comment thread sentry_sdk/sessions.py Resolved
Comment thread sentry_sdk/_types.py Resolved
@mitsuhiko
mitsuhiko marked this pull request as ready for review March 11, 2020 13:55
@mitsuhiko
mitsuhiko requested a review from untitaker March 11, 2020 13:56
Comment thread sentry_sdk/sessions.py Resolved
@mitsuhiko
mitsuhiko merged commit 427ddb0 into master Mar 11, 2020
@mitsuhiko
mitsuhiko deleted the feature/envelopes branch March 11, 2020 16:00
sentrivana added a commit that referenced this pull request Oct 29, 2026
### Description

Removes the module-level `TERMINAL_SESSION_STATES` tuple from
`sentry_sdk/sessions.py`. It has never been read anywhere.

#627 (Mar 2020) added it with the original session tracking code, and
#985 (Feb 2021) moved it a few lines down. Neither change, nor any other
commit, added a use of it. Session status handling (`Session.close()`,
`SessionFlusher` aggregation) compares against the status literals
directly.

**Evidence**
- `git grep TERMINAL_SESSION_STATES` across the whole repo matches only
the definition.
- `git log -G TERMINAL_SESSION_STATES` shows only #627 (added) and #985
(moved).
- No open PR or issue mentions it.

**Why it's safe**
- It's a plain constant in an internal module. It's not re-exported from
`sentry_sdk` and doesn't appear in `docs/`, `CHANGELOG.md` or
`MIGRATION_GUIDE.md`.
- It was never read at runtime, so behavior doesn't change.

#### Issues
n/a

<!-- junior-request-attribution:start -->
via **Ivana Kellyer**.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:slack%3AC0BTREZTS2Z%3A1793270559.842119 -->

--

[View Junior
Session](https://junior-prod.sentry.dev/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119)
[[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0BTREZTS2Z%3A1793270559.842119/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io>
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.

4 participants