_Platform:_
_IDE:_
_Build system:_
_Android Gradle Plugin:_
_Sentry Android Gradle Plugin:_
_Proguard/R8:_
_Platform installed with:_
The version of the SDK:
3.1.0
I have the following issue:
When I use 2 external config methods, application.yml and Environment variables, the configs from application.yml are lost.
Steps to reproduce:
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-spring-boot-starter</artifactId>
<version>${sentry.version}</version>
</dependency>
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry-logback</artifactId>
<version>${sentry.version}</version>
</dependency>
application.yml:sentry:
in-app-includes:
- com.my.package
environment: Dev
SENTRY_DSN="https://<redacted>"
Actual result:
Note: the DSN value is correctly set
mainHub.options:
eventProcessors = {CopyOnWriteArrayList@16781} size = 2
integrations = {CopyOnWriteArrayList@16782} size = 2
dsn = "https://<redacted>"
...
environment = null
...
inAppIncludes = {CopyOnWriteArrayList@16790} size = 0
...
enableExternalConfiguration = true
Expected result:
mainHub.options:
eventProcessors = {CopyOnWriteArrayList@16781} size = 2
integrations = {CopyOnWriteArrayList@16782} size = 2
dsn = "https://<snipped>"
...
environment = null
...
inAppIncludes = ["com.my.package"]
...
enableExternalConfiguration = true
Wow, that was fast @maciejwalkowiak. Thanks!
Any idea when the next release is planned for?
@chrsblck the beginning of next week 馃檪
@maciejwalkowiak @marandaneto Awesome, thank you!
One small thing I noticed, not sure if this is intended, or an Intellij issue, but I've set in-app-includes once in application.yml but I see it twice in the main-hub.options
inAppIncludes = ... = size = 2
0=my.package.app
1=my.package.app
Just wanted to point this out, doesn't seem so critical
@chrsblck starting from 3.1.0 in Spring Boot integration we auto-detect inAppIncludes by taking the package of @SpringBootApplication annotated class (https://github.com/getsentry/sentry-java/pull/966).
Ah, that's even better! I didn't try removing it when I updating from 3.1.0 to 3.1.1