Title: Extract the OpenTelemetry agent test wiring into a convention plugin · Issue #6378 · getsentry/sentry-java · GitHub
Open Graph Title: Extract the OpenTelemetry agent test wiring into a convention plugin · Issue #6378 · getsentry/sentry-java
X Title: Extract the OpenTelemetry agent test wiring into a convention plugin · Issue #6378 · getsentry/sentry-java
Description: The Spring Boot 2, 3 and 4 modules each copy the same setup to run their OpenTelemetry agent tests in a child JVM: the agentFixture source set, the otelAgentJar configuration, runAgentFixture, and the integrationTestOtelAgentWithoutAutoI...
Open Graph Description: The Spring Boot 2, 3 and 4 modules each copy the same setup to run their OpenTelemetry agent tests in a child JVM: the agentFixture source set, the otelAgentJar configuration, runAgentFixture, and ...
X Description: The Spring Boot 2, 3 and 4 modules each copy the same setup to run their OpenTelemetry agent tests in a child JVM: the agentFixture source set, the otelAgentJar configuration, runAgentFixture, and ...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6378
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Extract the OpenTelemetry agent test wiring into a convention plugin","articleBody":"The Spring Boot 2, 3 and 4 modules each copy the same setup to run their OpenTelemetry agent tests in a child JVM: the `agentFixture` source set, the `otelAgentJar` configuration, `runAgentFixture`, and the `integrationTestOtelAgentWithoutAutoInit` task. The copies are identical; only the dependency lists differ. Each module also has to know that a plain project dependency on `sentry-opentelemetry-agent` gives the `-dontuse` jar, and that the real agent needs `Bundling.SHADOWED` and a non-transitive configuration.\n\nMove the identical parts into one convention plugin in `build-logic` (e.g. `io.sentry.otel-agent-tests`), next to `ChildJvmTestArguments`:\n\n* create the `agentFixture` source set\n* create `otelAgentJar` and add the dependency on `sentry-opentelemetry-agent`\n* register the `integrationTestOtelAgent` suite wired to the child JVM, and the `WithoutAutoInit` task\n\nThe modules keep only their Boot-specific dependencies.\n\nAlso fix the comment in `sentry-opentelemetry-agent/build.gradle.kts`. The `runtimeElements` jar isn't just a by-product: it holds only `AgentMarker`, and the Boot modules' unit tests rely on it. The agent itself is `shadowRuntimeElements`.\n\nDo this after the Boot 4 (getsentry/sentry-java#6317) and Boot 2 agent tests land, so the in-flight PRs don't need rewriting.","author":{"url":"https://github.com/runningcode","@type":"Person","name":"runningcode"},"datePublished":"2026-10-26T12:57:58Z","url":"https://github.com/getsentry/sentry-java/issues/6378"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:127a8eeb-8a55-8f32-19b0-e0f08d32cd9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C470:13A804:111D745:180B412:6B044F11 |
| html-safe-nonce | d5383866f212bcdd992f448ff8eb4b87ca31dad49ff2806e81c29d44c6021939 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDcwOjEzQTgwNDoxMTFENzQ1OjE4MEI0MTI6NkIwNDRGMTEiLCJ2aXNpdG9yX2lkIjoiNDExMTI1NTgzOTg1MDEyMzAyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f6543b3e731a9f9b3bd5bb6447e25a948bd461681d8af3d544528fb66744ffe |
| hovercard-subject-tag | issue:6040121521 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/6378/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b7b6c0051e0bd8fe61df86d73c2d20b09c13f919252278f4579e584aec5edc6/getsentry/sentry-java/issues/6378 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b7b6c0051e0bd8fe61df86d73c2d20b09c13f919252278f4579e584aec5edc6/getsentry/sentry-java/issues/6378 |
| og:image:alt | The Spring Boot 2, 3 and 4 modules each copy the same setup to run their OpenTelemetry agent tests in a child JVM: the agentFixture source set, the otelAgentJar configuration, runAgentFixture, and ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | runningcode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width