Skip to content

feat: Support feature flags in span first - #6234

Merged
sentrivana merged 7 commits into
masterfrom
ivana/feature-flag-span-first
May 7, 2026
Merged

feat: Support feature flags in span first#6234
sentrivana merged 7 commits into
masterfrom
ivana/feature-flag-span-first

Conversation

@sentrivana

@sentrivanasentrivana commented May 7, 2026

Copy link
Copy Markdown
Contributor

@linear-code

linear-codeBot commented May 7, 2026

Copy link
Copy Markdown

@github-actions

github-actionsBot commented May 7, 2026

Copy link
Copy Markdown
Contributor

Codecov Results 📊

12 passed | Total: 12 | Pass Rate: 100% | Execution Time: 4.07s

📊 Comparison with Base Branch

MetricChange
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

❌ Patch coverage is 11.11%. Project has 15637 uncovered lines.
❌ Project coverage is 27.83%. Comparing base (base) to head (head).

Files with missing lines (1)
FilePatch %Lines
feature_flags.py51.28%⚠️ 19 Missing
Coverage diff
@@ Coverage Diff @@## main #PR +/-##
==========================================
- Coverage 33.18% 27.83% -5.35%
==========================================
Files 190 189 -1
Lines 21918 21668 -250
Branches 7374 8124 +750
==========================================
+ Hits 7272 6031 -1241- Misses 14646 15637 +991- Partials 661 536 -125

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review May 7, 2026 10:56
@sentrivana
sentrivana requested a review from a team as a code ownerMay 7, 2026 10:56

@alexander-alderman-webbalexander-alderman-webb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I didn't know we had so many feature flag integrations

@sentrivana
sentrivana merged commit 106fe71 into masterMay 7, 2026
165 of 167 checks passed
@sentrivana
sentrivana deleted the ivana/feature-flag-span-first branch May 7, 2026 12:33
cla7aye15I4nd pushed a commit to cla7aye15I4nd/sentry-python that referenced this pull request May 7, 2026
### Description
Set
[`flag.evaluation.{key}`](https://getsentry.github.io/sentry-conventions/attributes/flag/#flag-evaluation-key)
as span attribute in span streaming mode.
Add a span streaming test variant to affected integrations:
- Unleash
- Statsig
- Launchdarkly
- OpenFeature
#### Issues
- Closes
https://linear.app/getsentry/issue/PY-2141/support-feature-flags-in-span-first
- Closesgetsentry#5676
- Closes
https://linear.app/getsentry/issue/PY-2372/migrate-unleash-to-span-first
- Closesgetsentry#6070
- Closes
https://linear.app/getsentry/issue/PY-2364/migrate-statsig-to-span-first
- Closesgetsentry#6062
- Closes
https://linear.app/getsentry/issue/PY-2335/migrate-launchdarkly-to-span-first
- Closesgetsentry#6033
- Closes
https://linear.app/getsentry/issue/PY-2344/migrate-openfeature-to-span-first
- Closesgetsentry#6042
#### Reminders
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
mgaligniana pushed a commit to mgaligniana/sentry-python that referenced this pull request Aug 9, 2026
### Description
Set
[`flag.evaluation.{key}`](https://getsentry.github.io/sentry-conventions/attributes/flag/#flag-evaluation-key)
as span attribute in span streaming mode.
Add a span streaming test variant to affected integrations:
- Unleash
- Statsig
- Launchdarkly
- OpenFeature
#### Issues
- Closes
https://linear.app/getsentry/issue/PY-2141/support-feature-flags-in-span-first
- Closesgetsentry#5676
- Closes
https://linear.app/getsentry/issue/PY-2372/migrate-unleash-to-span-first
- Closesgetsentry#6070
- Closes
https://linear.app/getsentry/issue/PY-2364/migrate-statsig-to-span-first
- Closesgetsentry#6062
- Closes
https://linear.app/getsentry/issue/PY-2335/migrate-launchdarkly-to-span-first
- Closesgetsentry#6033
- Closes
https://linear.app/getsentry/issue/PY-2344/migrate-openfeature-to-span-first
- Closesgetsentry#6042
#### Reminders
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants

@sentrivana@alexander-alderman-webb