Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/platforms/java/common/integrations/graphql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ plugins {
implementation 'io.sentry:sentry-graphql:{{@inject packages.version('sentry.java.graphql', '6.28.0') }}'
```

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
</plugin>
```

```xml {tabTitle:Maven}
<dependency>
<groupId>io.sentry</groupId>
Expand Down
10 changes: 10 additions & 0 deletions docs/platforms/java/common/integrations/graphql22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ plugins {
implementation 'io.sentry:sentry-graphql-22:{{@inject packages.version('sentry.java.graphql-22', '8.0.0') }}'
```

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
</plugin>
```

```xml {tabTitle:Maven}
<dependency>
<groupId>io.sentry</groupId>
Expand Down
10 changes: 10 additions & 0 deletions docs/platforms/java/common/integrations/quartz.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ plugins {
implementation 'io.sentry:sentry-quartz:{{@inject packages.version('sentry.java.quartz', '6.30.0') }}'
```

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
</plugin>
```

```xml {tabTitle:Maven}
<dependency>
<groupId>io.sentry</groupId>
Expand Down
31 changes: 31 additions & 0 deletions platform-includes/getting-started-install/java.log4j2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@
options={["error-monitoring", "performance", "opentelemetry"]}
/>

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
<configuration>
<!-- In case you're self hosting, provide the URL here -->
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
<debugSentryCli>true</debugSentryCli>
</configuration>
<executions>
<execution>
<goals>
<!-- Generates a source bundle and uploads it to Sentry -->
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
</goals>
</execution>
</executions>
</plugin>
```

```xml {tabTitle:Maven}
<dependency>
<groupId>io.sentry</groupId>
Expand Down
31 changes: 31 additions & 0 deletions platform-includes/getting-started-install/java.logback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@
options={["error-monitoring", "performance", "opentelemetry"]}
/>

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
<configuration>
<!-- In case you're self hosting, provide the URL here -->
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
<debugSentryCli>true</debugSentryCli>
</configuration>
<executions>
<execution>
<goals>
<!-- Generates a source bundle and uploads it to Sentry -->
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
</goals>
</execution>
</executions>
</plugin>
```

```xml {tabTitle:Maven}
<dependency>
<groupId>io.sentry</groupId>
Expand Down
35 changes: 29 additions & 6 deletions platform-includes/getting-started-install/java.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,35 @@ plugins {
}
```

```xml {tabTitle:Maven}{filename:pom.xml}
<dependency>
<groupId>io.sentry</groupId>
<artifactId>sentry</artifactId>
<version>{{@inject packages.version('sentry.java', '4.2.0') }}</version>
</dependency>
```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
<configuration>
<!-- In case you're self hosting, provide the URL here -->
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
<debugSentryCli>true</debugSentryCli>
</configuration>
<executions>
<execution>
<goals>
<!-- Generates a source bundle and uploads it to Sentry -->
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
</goals>
</execution>
</executions>
</plugin>
```

```scala {tabTitle:SBT}
Expand Down
48 changes: 39 additions & 9 deletions platform-includes/getting-started-install/java.spring-boot.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@ plugins {
}
```

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
<configuration>
<!-- In case you're self hosting, provide the URL here -->
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
<debugSentryCli>true</debugSentryCli>
</configuration>
<executions>
<execution>
<goals>
<!-- Generates a source bundle and uploads it to Sentry -->
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
</goals>
</execution>
</executions>
</plugin>
```

```groovy {tabTitle:Gradle (Spring Boot 2)}
implementation 'io.sentry:sentry-spring-boot-starter:{{@inject packages.version('sentry.java.spring-boot', '4.2.0') }}'
```

```groovy {tabTitle:Gradle (Spring Boot 3)}
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:{{@inject packages.version('sentry.java.spring-boot.jakarta', '6.7.0') }}'
```

```xml {tabTitle:Maven (Spring Boot 2)}
<dependency>
<groupId>io.sentry</groupId>
Expand All @@ -22,15 +61,6 @@ plugins {
<artifactId>sentry-spring-boot-starter-jakarta</artifactId>
<version>{{@inject packages.version('sentry.java.spring-boot.jakarta', '6.7.0') }}</version>
</dependency>
```

```groovy {tabTitle:Gradle (Spring Boot 2)}
implementation 'io.sentry:sentry-spring-boot-starter:{{@inject packages.version('sentry.java.spring-boot', '4.2.0') }}'
```

```groovy {tabTitle:Gradle (Spring Boot 3)}
implementation 'io.sentry:sentry-spring-boot-starter-jakarta:{{@inject packages.version('sentry.java.spring-boot.jakarta', '6.7.0') }}'
```

<Alert>

Expand Down
47 changes: 39 additions & 8 deletions platform-includes/getting-started-install/java.spring.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,45 @@ plugins {
}
```

```xml {tabTitle:Maven Plugin}{filename:pom.xml}
<plugin>
<groupId>io.sentry</groupId>
<artifactId>sentry-maven-plugin</artifactId>
<version>{{@inject packages.version('sentry.java.maven-plugin', '0.0.2') }}</version>
<!-- Required to allow auto-install of Sentry SDK and Integrations -->
<extensions>true</extensions>
<configuration>
<!-- In case you're self hosting, provide the URL here -->
<!-- <url>http://localhost:8000/</url> -->
<org>___SENTRY_ORG_SLUG___</org>
<project>___SENTRY_PROJECT_SLUG___</project>
<!-- Do not commit you auth token with this file, you should provide it via the SENTRY_AUTH_TOKEN environment variable or similar -->
<!-- <authToken>${env.SENTRY_AUTH_TOKEN}</authToken> -->
<authToken>___SENTRY_AUTH_TOKEN___</authToken>
<!-- Enable debugging to see logs in case something goes wrong when uploading the source bundle -->
<debugSentryCli>true</debugSentryCli>
</configuration>
<executions>
<execution>
<goals>
<!-- Generates a source bundle and uploads it to Sentry -->
<!-- This enables source context, allowing you to see your source code as part of your stack traces in Sentry -->
<!-- Learn more about this feature in its dedicated "Source Context" docs page -->
<goal>uploadSourceBundle</goal>
</goals>
</execution>
</executions>
</plugin>
```

```groovy {tabTitle:Gradle (Spring 5)}
implementation 'io.sentry:sentry-spring:{{@inject packages.version('sentry.java.spring', '4.2.0') }}'
```

```groovy {tabTitle:Gradle (Spring 6)}
implementation 'io.sentry:sentry-spring-jakarta:{{@inject packages.version('sentry.java.spring.jakarta', '6.7.0') }}'
```

```xml {tabTitle:Maven (Spring 5)}
<dependency>
<groupId>io.sentry</groupId>
Expand All @@ -24,14 +63,6 @@ plugins {
</dependency>
```

```groovy {tabTitle:Gradle (Spring 5)}
implementation 'io.sentry:sentry-spring:{{@inject packages.version('sentry.java.spring', '4.2.0') }}'
```

```groovy {tabTitle:Gradle (Spring 6)}
implementation 'io.sentry:sentry-spring-jakarta:{{@inject packages.version('sentry.java.spring.jakarta', '6.7.0') }}'
```

```scala {tabTitle: SBT (Spring 5)}
libraryDependencies += "io.sentry" % "sentry-spring" % "{{@inject packages.version('sentry.java.spring', '4.2.0') }}"
```
Expand Down