Skip to content

Commit 579569b

Browse files
lucasra1adinauer
andauthored
Add Information when using Spring boot docker compose with JDBC Instrumentation (#12286)
* Add Information when using Spring boot docker compose * Move to troubleshooting docs --------- Co-authored-by: Alexander Dinauer <[email protected]>
1 parent 4a4dbff commit 579569b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/platforms/java/common/tracing/instrumentation/jdbc.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spring.datasource.driver-class-name: com.p6spy.engine.spy.P6SpyDriver
5252
Add the `p6spy` prefix to the database connection URL. For Spring Boot applications:
5353

5454
```properties {tabTitle: application.properties}
55-
spring.datasource.url: jdbc:p6spy:postgresql://localhost:5432/db
55+
spring.datasource.url=jdbc:p6spy:postgresql://localhost:5432/db
5656
```
5757

5858
```yaml {tabTitle: application.yml}

docs/platforms/java/common/tracing/troubleshooting/index.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ The 200+ character request above will become truncated to:
1919
`https://empowerplant.io/api/0/projects/ep/setup_form/?user_id=314159265358979323846264338327&tracking_id=EasyAsABC123OrSimpleAsDoReMi&product_name=PlantToHumanTranslator&product_id=1618033988749894848`
2020

2121
<PlatformContent includePath="performance/control-data-truncation" />
22+
23+
#### JDBC and `spring-boot-docker-compose`
24+
25+
When using `org.springframework.boot:spring-boot-docker-compose` mind that this extension overwrites the `spring.datasource.url` property and therefore removes the `p6spy` prefix required for using `sentry-jdbc`. Therefore if you want to test this locally you need to disable/remove spring-boot-docker-compose.

0 commit comments

Comments
 (0)