-
-
Notifications
You must be signed in to change notification settings - Fork 461
Report OpenTelemetry Agentless SDK and integration #4570
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
Conversation
…e2e / system tests
…c/test/kotlin/sentry/systemtest/ConsoleApplicationSystemTest.kt
|
Performance metrics 🚀
|
| } | ||
| if (name.equals("sentry.java.opentelemetry.agentless-spring")) { | ||
| SentryIntegrationPackageStorage.getInstance() | ||
| .addIntegration("OpenTelemetry-Agentless-Spring"); |
There was a problem hiding this comment.
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.
| SentryIntegrationPackageStorage.getInstance() | ||
| .addIntegration("OpenTelemetry-Agentless"); | ||
| } | ||
| if (name.equals("sentry.java.opentelemetry.agentless-spring")) { | ||
| SentryIntegrationPackageStorage.getInstance() | ||
| .addIntegration("OpenTelemetry-Agentless-Spring"); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
This stack of pull requests is managed by Graphite. Learn more about stacking. |

#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
sendDefaultPIIis enabled.🔮 Next steps