Skip to content

Conversation

@Flash0ver
Copy link
Member

@Flash0ver Flash0ver commented Sep 25, 2025

Remove

  • usages of [ExperimentalAttribute] from all Logs-APIs
  • Experimental type from SentrySdk

Keep

  • Experimental type on SentryOptions

Example

-#pragma warning disable SENTRY0001

 options.Experimental.EnableLogs = true;
 options.Experimental.SetBeforeSendLog(static log => log);

-SentrySdk.Experimental.Logger.LogInfo("message");
+SentrySdk.Logger.LogInfo("message");
HubAdapter.Instance.Logger.LogInfo("message");

-#pragma warning restore SENTRY0001

We think we are fine with the API shape, but still keep one Experimental (on SentryOptions) before we go officially stable.


Note

Removes experimental markers from Structured Logs APIs and replaces SentrySdk.Experimental.Logger with SentrySdk.Logger, updating adapters, samples, API approvals, and changelog while keeping SentryOptions.Experimental.

  • API Changes (Structured Logs):
    • Remove ExperimentalAttribute from SentryLog, SentryLogLevel, and SentryStructuredLogger methods, and from IHub.Logger/DisabledHub.Logger.
    • Replace SentrySdk.Experimental.Logger with new SentrySdk.Logger; remove SentrySdk.Experimental type; update HubAdapter.Logger to use SentrySdk.Logger.
    • Retain SentryOptions.Experimental (e.g., EnableLogs, SetBeforeSendLog).
  • Samples: Update usage to SentrySdk.Logger.* and adjust comments.
  • Tests/Approvals: Update API approval baselines to reflect non-experimental symbols and new SentrySdk.Logger.
  • Changelog: Add API Changes entry describing the de-experimentalization and SentrySdk.Logger switch.

Written by Cursor Bugbot for commit cc6733e. This will update automatically on new commits. Configure here.

@codecov
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.47%. Comparing base (bc5c060) to head (cc6733e).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4567      +/-   ##
==========================================
+ Coverage   73.45%   73.47%   +0.02%     
==========================================
  Files         480      482       +2     
  Lines       17589    17679      +90     
  Branches     3469     3495      +26     
==========================================
+ Hits        12920    12990      +70     
- Misses       3785     3798      +13     
- Partials      884      891       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Flash0ver Flash0ver marked this pull request as ready for review September 26, 2025 06:43
@Flash0ver
Copy link
Member Author

@sentry review

Copy link
Member

@alexsohn1126 alexsohn1126 left a comment

Choose a reason for hiding this comment

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

Just a quick question...

Copy link
Collaborator

@jamescrosswell jamescrosswell left a comment

Choose a reason for hiding this comment

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

LGTM

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