Skip to content

[Logs 3] Add options for Logs #4374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 13, 2025
Merged

[Logs 3] Add options for Logs #4374

merged 4 commits into from
May 13, 2025

Conversation

adinauer
Copy link
Member

@adinauer adinauer commented May 7, 2025

#skip-changelog

📜 Description

💡 Motivation and Context

💚 How did you test it?

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

  • Remove sampleRate for Logs again as there's some discussion around whether this is actually useful in its current state where it just randomly drops log events without considering log level or the trace it belongs to.

Copy link
Collaborator

@lbloder lbloder left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Left some comments to be tackled in a later pr

@adinauer adinauer changed the title Add options for Logs [Logs 3] Add options for Logs May 12, 2025
}

if (logEvent != null) {
logEvent = executeBeforeSendLog(logEvent, hint);
Copy link
Member

Choose a reason for hiding this comment

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

can you add tests for this beforeSend?

Copy link
Member

@stefanosiano stefanosiano left a comment

Choose a reason for hiding this comment

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

just add a test, but it's good!

Base automatically changed from feat/log-rate-limit to main May 13, 2025 11:49
Copy link
Contributor

github-actions bot commented May 13, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 6680001

Copy link
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 433.19 ms 446.77 ms 13.58 ms
Size 1.58 MiB 2.08 MiB 508.50 KiB

@adinauer adinauer merged commit 8a19857 into main May 13, 2025
34 of 35 checks passed
@adinauer adinauer deleted the feat/logs-options branch May 13, 2025 12:41
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