Skip to content

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented May 12, 2025

#skip-changelog

📜 Description

Some basic e2e tests for Logs

Also:

  • Moves external options (sentry.properties, ENV vars) to experimental, e.g. experimental.logs.enabled
  • Fix Logs deserialization
  • Use JsonKeys.ITEMS instead of "items"
  • Only set sentry.message.template if >0 args are present
  • Allow NULL when resolving arg type

💡 Motivation and Context

Automated tests

💚 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

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2025

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

Generated by 🚫 dangerJS against 5ba33fd

@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 372.71 ms 425.63 ms 52.91 ms
Size 1.58 MiB 2.08 MiB 510.08 KiB

Previous results on branch: feat/logs-e2e-tests

Startup times

Revision Plain With Sentry Diff
2a0e2d8 437.04 ms 514.14 ms 77.10 ms

App size

Revision Plain With Sentry Diff
2a0e2d8 1.58 MiB 2.08 MiB 509.23 KiB

@adinauer adinauer changed the title Add System tests for Logs [Logs 7] Add System tests for Logs May 12, 2025
for (Object arg : args) {
final @NotNull String type = getType(arg);
attributes.put(
"sentry.message.parameter." + i, new SentryLogEventAttributeValue(type, arg));
Copy link
Member

Choose a reason for hiding this comment

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

This constructor of SentryLogEventAttributeValue expects a @NotNull as second parameter, while here arg is nullable.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch. Does seem to allow me to send in null but asked internally what we want to do here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated in #4392

Base automatically changed from feat/log-batch-less-locking to main May 13, 2025 14:05
@adinauer adinauer enabled auto-merge (squash) May 13, 2025 14:13
@adinauer adinauer merged commit 6847e31 into main May 13, 2025
34 checks passed
@adinauer adinauer deleted the feat/logs-e2e-tests branch May 13, 2025 14:23
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.

3 participants