Skip to content

chore: Drop enable_logs, enable_metrics options in new major - #7178

Open
sentrivana wants to merge 3 commits into
major/3.0from
ivana/major/remove-enable-logs-and-metrics
Open

chore: Drop enable_logs, enable_metrics options in new major#7178
sentrivana wants to merge 3 commits into
major/3.0from
ivana/major/remove-enable-logs-and-metrics

Conversation

@sentrivana

@sentrivana sentrivana commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

The options were deprecated with 2fef9bc.

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

107202 passed | ⏭️ 5465 skipped | Total: 112667 | Pass Rate: 95.15% | Execution Time: 383m 3s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -6540
Passed Tests 📉 -5246
Failed Tests
Skipped Tests 📉 -1294

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2261 uncovered lines.
✅ Project coverage is 90.55%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.23%    90.55%    +0.32%
==========================================
  Files          193       185        -8
  Lines        25361     23934     -1427
  Branches      9302      8816      -486
==========================================
+ Hits         22883     21673     -1210
- Misses        2478      2261      -217
- Partials      1432      1372       -60

Generated by Codecov Action

@sentrivana
sentrivana marked this pull request as ready for review August 12, 2026 14:05
@sentrivana
sentrivana requested a review from a team as a code owner August 12, 2026 14:05

@ericapisani ericapisani left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Other than the one note for our guidance in the migration guide, this LGTM

Comment thread MIGRATION_GUIDE.md
- Removed the RedisIntegration `max_data_size` option.
- Removed the possibility to supply a specific client to the LaunchDarklyIntegration.
- The `enable_tracing` option was removed. Use `traces_sample_rate=1.0` instead.
- The `enable_logs` option was removed. Using Sentry's logging API now works without requiring setting `enable_logs=True`. Automatic capture of logs emitted by the `logging` standard library module or Loguru can be turned on by providing the `capture_sentry_logs=True` option to either `LoggingIntegration` or `LoguruIntegration`:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Automatic capture of logs emitted by the logging standard library module or Loguru can be turned on by providing the capture_sentry_logs=True option to either LoggingIntegration or LoguruIntegration

GivenLoggingIntegration and LoguruIntegration are both auto-enabling integrations, I wonder if it might be more useful to give an example for opting out rather than opting in.

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.

2 participants