Skip to content

Conversation

@adinauer
Copy link
Member

@adinauer adinauer commented Jul 28, 2025

#skip-changelog

📜 Description

Report OpenTelemetry Agentless SDK and integration

💡 Motivation and Context

To have better stats on which ways of combining Sentry and OpenTelemetry are most used and make most sense to invest in.

💚 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 Jul 28, 2025

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

Generated by 🚫 dangerJS against 75436ce

@github-actions
Copy link
Contributor

github-actions bot commented Jul 28, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 384.82 ms 432.96 ms 48.14 ms
Size 1.58 MiB 2.09 MiB 519.63 KiB

Previous results on branch: feat/report-agentless-sdk

Startup times

Revision Plain With Sentry Diff
b10eef8 379.90 ms 413.86 ms 33.96 ms

App size

Revision Plain With Sentry Diff
b10eef8 1.58 MiB 2.09 MiB 519.60 KiB

Base automatically changed from feat/sdk-re-init-queue-drain to feat/e2e-tests-console-otel July 29, 2025 14:34
Base automatically changed from feat/e2e-tests-console-otel to main July 29, 2025 16:12
@adinauer adinauer marked this pull request as ready for review July 30, 2025 11:08
}
if (name.equals("sentry.java.opentelemetry.agentless-spring")) {
SentryIntegrationPackageStorage.getInstance()
.addIntegration("OpenTelemetry-Agentless-Spring");
Copy link

Choose a reason for hiding this comment

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

Bug: Manifest Loop Issue Causes SDK Version Overwrite

The removal of the break statement from the manifest processing loop causes versionInfo.sdkName and versionInfo.sdkVersion to be overwritten by each subsequent OpenTelemetry manifest found. This leads to non-deterministic and potentially incorrect SDK version reporting, as only the last processed manifest's details are retained. Furthermore, the maven:io.sentry:sentry-opentelemetry-agent package is no longer added, resulting in incomplete package information.

Locations (1)
Fix in Cursor Fix in Web

Comment on lines +90 to +95
SentryIntegrationPackageStorage.getInstance()
.addIntegration("OpenTelemetry-Agentless");
}
if (name.equals("sentry.java.opentelemetry.agentless-spring")) {
SentryIntegrationPackageStorage.getInstance()
.addIntegration("OpenTelemetry-Agentless-Spring");
Copy link
Member

Choose a reason for hiding this comment

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

I think we should add to versionInfo here, not to SentryIntegrationPackageStorage directly.

Copy link
Member Author

Choose a reason for hiding this comment

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

It feels much cleaner to just remove integrations and packages from VersionInfoHolder and add them directly.
That's also what ManifestVersionDetector expects.

Copy link
Member Author

adinauer commented Jul 30, 2025

Copy link
Member Author

adinauer commented Jul 30, 2025

Merge activity

  • Jul 30, 2:06 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 30, 2:06 PM UTC: @adinauer merged this pull request with Graphite.

@adinauer adinauer merged commit 5b05195 into main Jul 30, 2025
38 of 39 checks passed
@adinauer adinauer deleted the feat/report-agentless-sdk branch July 30, 2025 14:06
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