Title: Report active spring profile · Issue #4041 · getsentry/sentry-java · GitHub
Open Graph Title: Report active spring profile · Issue #4041 · getsentry/sentry-java
X Title: Report active spring profile · Issue #4041 · getsentry/sentry-java
Description: Problem Statement Our Spring Boot integration could report active spring profiles by default. This may help customers find issues with profiles not being applied or having the wrong profile active for any environment. Solution Brainstorm...
Open Graph Description: Problem Statement Our Spring Boot integration could report active spring profiles by default. This may help customers find issues with profiles not being applied or having the wrong profile active ...
X Description: Problem Statement Our Spring Boot integration could report active spring profiles by default. This may help customers find issues with profiles not being applied or having the wrong profile active ...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/4041
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Report active spring profile","articleBody":"### Problem Statement\n\nOur Spring Boot integration could report active spring profiles by default.\n\nThis may help customers find issues with profiles not being applied or having the wrong profile active for any environment.\n\n### Solution Brainstorm\n\nAdding this to our sample app:\n```\n @Bean\n public SentryOptions.BeforeSendCallback beforeSendCallback(Environment environment) {\n return (event, hint) -> {\n event.setTag(\"active-spring-profiles\", Arrays.toString(environment.getActiveProfiles()));\n return event;\n };\n }\n```\n\nproduces the following in an event with `SPRING_PROFILES_ACTIVE=eu-staging`:\n```\n \"tags\":\n {\n \"my-partition-tag\": \"europe-tag\",\n \"active-spring-profiles\": \"[eu-staging]\"\n },\n```\n\nand the following without any active profile:\n```\n \"tags\":\n {\n \"active-spring-profiles\": \"[]\"\n },\n```\n\nWe could replace the empty array with \"default\" instead.","author":{"url":"https://github.com/adinauer","@type":"Person","name":"adinauer"},"datePublished":"2025-01-13T09:13:19Z","url":"https://github.com/getsentry/sentry-java/issues/4041"}
| 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:95229d3b-bf2e-8e25-ee60-a0642aa7a064 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B35E:99B56:23789E:3211E0:6B0468F8 |
| html-safe-nonce | a29314c6b6280a4471ccac969c66baebde8f6b6fd77bc1e09543171bafa383de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzVFOjk5QjU2OjIzNzg5RTozMjExRTA6NkIwNDY4RjgiLCJ2aXNpdG9yX2lkIjoiNjQwOTczNjI3NDM5MTA5OTY0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 63aadc3e1b75afe1dd7461d46b2da9b0c9537bd2338eff44f2e53f7339df7060 |
| hovercard-subject-tag | issue:2783404975 |
| 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/4041/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c338f9c1a81f599cdba7f7dee236bc89322de57ed7064159e30c3346209d5b6e/getsentry/sentry-java/issues/4041 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c338f9c1a81f599cdba7f7dee236bc89322de57ed7064159e30c3346209d5b6e/getsentry/sentry-java/issues/4041 |
| og:image:alt | Problem Statement Our Spring Boot integration could report active spring profiles by default. This may help customers find issues with profiles not being applied or having the wrong profile active ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | adinauer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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