From f04ca6dacc805f233ef89826a4ed4dbdad9e9b8a Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Tue, 23 Feb 2021 10:07:18 +0100 Subject: [PATCH 1/5] Java: bump dependency versions to 4.2.0 --- src/includes/getting-started-install/android.mdx | 2 +- src/includes/getting-started-install/java.log4j2.mdx | 6 +++--- src/includes/getting-started-install/java.logback.mdx | 6 +++--- src/includes/getting-started-install/java.mdx | 6 +++--- .../getting-started-install/java.spring-boot.mdx | 4 ++-- src/includes/getting-started-install/java.spring.mdx | 6 +++--- .../configure-sample-rate/java.spring-boot.mdx | 6 +++--- .../performance/configure-sample-rate/java.spring.mdx | 6 +++--- src/platforms/java/common/configuration/transport.mdx | 6 +++--- .../java/guides/spring-boot/logging-frameworks.mdx | 4 ++-- src/platforms/java/usage.mdx | 10 +++++----- 11 files changed, 31 insertions(+), 31 deletions(-) diff --git a/src/includes/getting-started-install/android.mdx b/src/includes/getting-started-install/android.mdx index 3f806336c8deb6..62c027b5d28ce1 100644 --- a/src/includes/getting-started-install/android.mdx +++ b/src/includes/getting-started-install/android.mdx @@ -16,6 +16,6 @@ android { // Add Sentry's SDK as a dependency. dependencies { - implementation 'io.sentry:sentry-android:{{ packages.version('sentry.java', '4.0.0') }}' + implementation 'io.sentry:sentry-android:{{ packages.version('sentry.java', '4.2.0') }}' } ``` diff --git a/src/includes/getting-started-install/java.log4j2.mdx b/src/includes/getting-started-install/java.log4j2.mdx index 5059a0500b9d8a..411de570d0949b 100644 --- a/src/includes/getting-started-install/java.log4j2.mdx +++ b/src/includes/getting-started-install/java.log4j2.mdx @@ -2,16 +2,16 @@ io.sentry sentry-log4j2 - {{ packages.version('sentry.java', '4.0.0') }} + {{ packages.version('sentry.java', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-log4j2:{{ packages.version('sentry.java', '4.0.0') }}' +implementation 'io.sentry:sentry-log4j2:{{ packages.version('sentry.java', '4.2.0') }}' ``` ```scala {tabTitle: SBT} -libraryDependencies += "io.sentry" % "sentry-log4j2" % "{{ packages.version('sentry.java', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-log4j2" % "{{ packages.version('sentry.java', '4.2.0') }}" ``` For other dependency managers see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-log4j2). diff --git a/src/includes/getting-started-install/java.logback.mdx b/src/includes/getting-started-install/java.logback.mdx index a794d0807e22b9..d9345211924479 100644 --- a/src/includes/getting-started-install/java.logback.mdx +++ b/src/includes/getting-started-install/java.logback.mdx @@ -2,16 +2,16 @@ io.sentry sentry-logback - {{ packages.version('sentry.java.logback', '4.0.0') }} + {{ packages.version('sentry.java.logback', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-logback:{{ packages.version('sentry.java.logback', '4.0.0') }}' +implementation 'io.sentry:sentry-logback:{{ packages.version('sentry.java.logback', '4.2.0') }}' ``` ```scala {tabTitle: SBT} -libraryDependencies += "io.sentry" % "sentry-logback" % "{{ packages.version('sentry.java.logback', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-logback" % "{{ packages.version('sentry.java.logback', '4.2.0') }}" ``` For other dependency managers, see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-logback). diff --git a/src/includes/getting-started-install/java.mdx b/src/includes/getting-started-install/java.mdx index 73b8275b15eb8c..c9038272f9ca38 100644 --- a/src/includes/getting-started-install/java.mdx +++ b/src/includes/getting-started-install/java.mdx @@ -6,7 +6,7 @@ repositories { // Add Sentry's SDK as a dependency. dependencies { - implementation 'io.sentry:sentry:{{ packages.version('sentry.java', '4.0.0') }}' + implementation 'io.sentry:sentry:{{ packages.version('sentry.java', '4.2.0') }}' } ``` @@ -14,10 +14,10 @@ dependencies { io.sentry sentry - {{ packages.version('sentry.java', '4.0.0') }} + {{ packages.version('sentry.java', '4.2.0') }} ``` ```scala {tabTitle:SBT} -libraryDependencies += "io.sentry" % "sentry" % "{{ packages.version('sentry.java', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry" % "{{ packages.version('sentry.java', '4.2.0') }}" ``` diff --git a/src/includes/getting-started-install/java.spring-boot.mdx b/src/includes/getting-started-install/java.spring-boot.mdx index 805a5535ecb7d7..84a84aebbc2453 100644 --- a/src/includes/getting-started-install/java.spring-boot.mdx +++ b/src/includes/getting-started-install/java.spring-boot.mdx @@ -2,10 +2,10 @@ io.sentry sentry-spring-boot-starter - {{ packages.version('sentry.java.spring-boot', '4.0.0') }} + {{ packages.version('sentry.java.spring-boot', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-spring-boot-starter:{{ packages.version('sentry.java.spring-boot', '4.0.0') }}' +implementation 'io.sentry:sentry-spring-boot-starter:{{ packages.version('sentry.java.spring-boot', '4.2.0') }}' ``` diff --git a/src/includes/getting-started-install/java.spring.mdx b/src/includes/getting-started-install/java.spring.mdx index 879332f5d35e33..909d2c7f721e19 100644 --- a/src/includes/getting-started-install/java.spring.mdx +++ b/src/includes/getting-started-install/java.spring.mdx @@ -2,16 +2,16 @@ io.sentry sentry-spring - {{ packages.version('sentry.java.spring', '4.0.0') }} + {{ packages.version('sentry.java.spring', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-spring:{{ packages.version('sentry.java.spring', '4.0.0') }}' +implementation 'io.sentry:sentry-spring:{{ packages.version('sentry.java.spring', '4.2.0') }}' ``` ```scala {tabTitle: SBT} -libraryDependencies += "io.sentry" % "sentry-spring" % "{{ packages.version('sentry.java.spring', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-spring" % "{{ packages.version('sentry.java.spring', '4.2.0') }}" ``` For other dependency managers see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-spring). diff --git a/src/includes/performance/configure-sample-rate/java.spring-boot.mdx b/src/includes/performance/configure-sample-rate/java.spring-boot.mdx index 9897a3d6d6d002..2d617ee75f1de3 100644 --- a/src/includes/performance/configure-sample-rate/java.spring-boot.mdx +++ b/src/includes/performance/configure-sample-rate/java.spring-boot.mdx @@ -58,14 +58,14 @@ For high traffic applications, we recommend using high-throughput HTTP transport io.sentry sentry-apache-http-client-5 - {{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }} + {{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}' +implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}' ``` ```scala {tabTitle:SBT} -libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}" ``` diff --git a/src/includes/performance/configure-sample-rate/java.spring.mdx b/src/includes/performance/configure-sample-rate/java.spring.mdx index 5fa12fad2c49bd..536986bcb90747 100644 --- a/src/includes/performance/configure-sample-rate/java.spring.mdx +++ b/src/includes/performance/configure-sample-rate/java.spring.mdx @@ -51,16 +51,16 @@ For high traffic applications, we recommend using high-throughput HTTP transport io.sentry sentry-apache-http-client-5 - {{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }} + {{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}' +implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}' ``` ```scala {tabTitle:SBT} -libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}" ``` Define the bean, which will be automatically used by Sentry SDK: diff --git a/src/platforms/java/common/configuration/transport.mdx b/src/platforms/java/common/configuration/transport.mdx index 9f2fb65001c320..d8bab7c2fae7a8 100644 --- a/src/platforms/java/common/configuration/transport.mdx +++ b/src/platforms/java/common/configuration/transport.mdx @@ -12,16 +12,16 @@ In a separate module, as an optional dependency, the SDK also provides high-thro io.sentry sentry-apache-http-client-5 - {{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }} + {{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}' +implementation 'io.sentry:sentry-apache-http-client-5:{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}' ``` ```scala {tabTitle:SBT} -libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry-apache-http-client-5" % "{{ packages.version('sentry.java.apache-http-client-5', '4.2.0') }}" ``` Then configure SDK to use the new transport: diff --git a/src/platforms/java/guides/spring-boot/logging-frameworks.mdx b/src/platforms/java/guides/spring-boot/logging-frameworks.mdx index c5a50a2ab63b1d..5bf2c665ab54bc 100644 --- a/src/platforms/java/guides/spring-boot/logging-frameworks.mdx +++ b/src/platforms/java/guides/spring-boot/logging-frameworks.mdx @@ -14,12 +14,12 @@ To use Sentry Logback integration in Spring Boot application you must include a io.sentry sentry-logback - {{ packages.version('sentry.java.logback', '4.0.0') }} + {{ packages.version('sentry.java.logback', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry-logback:{{ packages.version('sentry.java.logback', '4.0.0') }}' +implementation 'io.sentry:sentry-logback:{{ packages.version('sentry.java.logback', '4.2.0') }}' ``` Minimum logging levels for `SentryAppender` can be configured in `application.properties` or `application.yml` file. diff --git a/src/platforms/java/usage.mdx b/src/platforms/java/usage.mdx index 9c21e146e9fa21..fdbcdb0c66da40 100644 --- a/src/platforms/java/usage.mdx +++ b/src/platforms/java/usage.mdx @@ -12,16 +12,16 @@ description: "Learn more about passing configuration options to a static Sentry# io.sentry sentry - {{ packages.version('sentry.java', '4.0.0') }} + {{ packages.version('sentry.java', '4.2.0') }} ``` ```groovy {tabTitle:Gradle} -implementation 'io.sentry:sentry:{{ packages.version('sentry.java', '4.0.0') }}' +implementation 'io.sentry:sentry:{{ packages.version('sentry.java', '4.2.0') }}' ``` ```scala {tabTitle:SBT} -libraryDependencies += "io.sentry" % "sentry" % "{{ packages.version('sentry.java', '4.0.0') }}" +libraryDependencies += "io.sentry" % "sentry" % "{{ packages.version('sentry.java', '4.2.0') }}" ``` For other dependency managers see the [central Maven repository](https://search.maven.org/artifact/io.sentry/sentry-spring). @@ -46,7 +46,7 @@ public class MyClass { // All events get assigned to the release. See more at // https://docs.sentry.io/workflow/releases/ - options.setRelease("io.sentry.samples.console@4.0.0+1"); + options.setRelease("io.sentry.samples.console@4.2.0+1"); // Modifications to event before it goes out. Could replace the event altogether options.setBeforeSend((event, hint) -> { @@ -101,7 +101,7 @@ fun main() { // All events get assigned to the release. See more at // https://docs.sentry.io/workflow/releases/ - options.release = "io.sentry.samples.console@4.0.0+1" + options.release = "io.sentry.samples.console@4.2.0+1" // Modifications to event before it goes out. Could replace the event altogether options.beforeSend = BeforeSendCallback { event: SentryEvent, hint: Any? -> From 41bd593a3963b7849825da55c4ec7a8789444503 Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Tue, 23 Feb 2021 10:20:54 +0100 Subject: [PATCH 2/5] Update usage of SentryTransaction to include required "operation" property. --- .../java.spring-boot.mdx | 6 +++--- .../enable-manual-instrumentation/java.spring.mdx | 6 +++--- .../set-transaction-current-scope/java.mdx | 12 ++++++------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx index 484fc93ea5f895..5ed442570d9aba 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx @@ -24,7 +24,7 @@ import io.sentry.spring.tracing.SentryTransaction; class ScheduledJob { @Scheduled(...) - @SentryTransaction + @SentryTransaction("task") void execute() { ... } @@ -40,14 +40,14 @@ import io.sentry.spring.tracing.SentryTransaction class ScheduledJob { @Scheduled(...) - @SentryTransaction + @SentryTransaction("task") fun execute() { ... } } ``` -`@SentryTransaction` can be configured with custom `name` and `op` properties. If not defined, `name` will be resolved from the class, and the method name. +`@SentryTransaction` can be configured with custom `name`. If not defined, `name` will be resolved from the class, and the method name. Advanced Spring AOP users can redefine transaction pointcut by providing a custom `org.springframework.aop.Pointcut` bean with name `sentryTransactionPointcut`. diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx index e82f2e71685117..d4c3e136c464de 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx @@ -51,7 +51,7 @@ import io.sentry.spring.tracing.SentryTransaction; class ScheduledJob { @Scheduled(...) - @SentryTransaction + @SentryTransaction("task") void execute() { ... } @@ -67,14 +67,14 @@ import io.sentry.spring.tracing.SentryTransaction class ScheduledJob { @Scheduled(...) - @SentryTransaction + @SentryTransaction("task") fun execute() { ... } } ``` -`@SentryTransaction` can be configured with custom `name` and `op` properties. If not defined, `name` will be resolved from the class, and the method name. +`@SentryTransaction` can be configured with custom `name`. If not defined, `name` will be resolved from the class, and the method name. Advanced Spring AOP users can redefine transaction pointcut by providing a custom `org.springframework.aop.Pointcut` bean with name `sentryTransactionPointcut`. diff --git a/src/includes/performance/set-transaction-current-scope/java.mdx b/src/includes/performance/set-transaction-current-scope/java.mdx index 48f70f6eb1b8d1..d7dbe748a70bd1 100644 --- a/src/includes/performance/set-transaction-current-scope/java.mdx +++ b/src/includes/performance/set-transaction-current-scope/java.mdx @@ -8,7 +8,7 @@ import io.sentry.ITransaction; import io.sentry.Sentry; void executeTask() { - ITransaction transaction = Sentry.startTransaction("task"); + ITransaction transaction = Sentry.startTransaction("transaction-name", "task"); Sentry.configureScope(scope -> scope.setTransaction(transaction)); executeSubTask(); @@ -19,9 +19,9 @@ void executeTask() { private void executeSubTask() { ISpan span = Sentry.getSpan(); if (span == null) { - span = Sentry.startTransaction("sub-task"); + span = Sentry.startTransaction("transaction-name", "sub-task"); } else { - span = span.startChild(); + span = span.startChild("operation"); } // ... span.finish(); @@ -34,7 +34,7 @@ import io.sentry.ITransaction import io.sentry.Sentry fun executeTask() { - val transaction = Sentry.startTransaction("task") + val transaction = Sentry.startTransaction("transaction-name", "task") Sentry.configureScope(scope -> scope.setTransaction(transaction)) executeSubTask() @@ -45,9 +45,9 @@ fun executeTask() { private fun executeSubTask() { var span = Sentry.getSpan() span = if (span == null) { - Sentry.startTransaction("sub-task") + Sentry.startTransaction("transaction-name", "sub-task") } else { - span.startChild() + span.startChild("operation") } // ... span.finish() From 4a20d576e69f5c10eedcef5a5b0a72cfca3a33c4 Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Tue, 23 Feb 2021 10:22:19 +0100 Subject: [PATCH 3/5] Update Android dependencies to 4.2.0 --- src/platforms/android/integrations/timber.mdx | 4 ++-- src/platforms/android/usage/advanced-usage.mdx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platforms/android/integrations/timber.mdx b/src/platforms/android/integrations/timber.mdx index cd56241f70f495..5376df21dce0ed 100644 --- a/src/platforms/android/integrations/timber.mdx +++ b/src/platforms/android/integrations/timber.mdx @@ -17,8 +17,8 @@ The source can be found [on GitHub](https://github.com/getsentry/sentry-java/tre Using Gradle: ```groovy - implementation 'io.sentry:sentry-android:{{ packages.version('sentry.java.android', '4.0.0') }}' - implementation 'io.sentry:sentry-android-timber:{{ packages.version('sentry.java.android.timber', '4.0.0') }}' + implementation 'io.sentry:sentry-android:{{ packages.version('sentry.java.android', '4.2.0') }}' + implementation 'io.sentry:sentry-android-timber:{{ packages.version('sentry.java.android.timber', '4.2.0') }}' ``` 3. Initialize and add the `SentryTimberIntegration` diff --git a/src/platforms/android/usage/advanced-usage.mdx b/src/platforms/android/usage/advanced-usage.mdx index de8adc55758ae4..ce51d0cccbbe73 100644 --- a/src/platforms/android/usage/advanced-usage.mdx +++ b/src/platforms/android/usage/advanced-usage.mdx @@ -23,7 +23,7 @@ compileOptions { // Add the Sentry Android SDK as a dependency dependencies { - implementation 'io.sentry:sentry-android-core:{{ packages.version('sentry.java.android', '4.0.0') }}' + implementation 'io.sentry:sentry-android-core:{{ packages.version('sentry.java.android', '4.2.0') }}' } ``` From 0f5ec558a8ad1f2b7c01298bf2c70e4d9e071346 Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Tue, 23 Feb 2021 10:47:53 +0100 Subject: [PATCH 4/5] Update @SentrySpan on types. --- .../enable-manual-instrumentation/java.spring-boot.mdx | 8 ++++++-- .../enable-manual-instrumentation/java.spring.mdx | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx index 5ed442570d9aba..462d94a4923a1d 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx @@ -49,6 +49,8 @@ class ScheduledJob { `@SentryTransaction` can be configured with custom `name`. If not defined, `name` will be resolved from the class, and the method name. +`@SentryTransaction` can be also placed on a class or an interface - it turns every method execution from the annotated type into a transaction. + Advanced Spring AOP users can redefine transaction pointcut by providing a custom `org.springframework.aop.Pointcut` bean with name `sentryTransactionPointcut`. ### Capturing a Span @@ -76,13 +78,15 @@ import io.sentry.spring.tracing.SentrySpan @Component class PersonService { - @SentrySpan + @SentrySpan("task") fun findById(id: Long): Person { ... } } ``` -`@SentrySpan` can be configured with custom `description` and `op` properties. If not defined, `description` will be resolved from the class, and the method name. +`@SentrySpan` can be configured with custom `description` property. If not defined, `operation` will be resolved from the class, and the method name. + +`@SentrySpan` can be also placed on a class or an interface - it turns every method execution from the annotated type into a span. Advanced Spring AOP users can redefine span pointcut by providing a custom `org.springframework.aop.Pointcut` bean with name `sentrySpanPointcut`. diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx index d4c3e136c464de..fdb760bfff6de9 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx @@ -76,9 +76,11 @@ class ScheduledJob { `@SentryTransaction` can be configured with custom `name`. If not defined, `name` will be resolved from the class, and the method name. +`@SentryTransaction` can be also placed on a class or an interface - it turns every method execution from the annotated type into a transaction. + Advanced Spring AOP users can redefine transaction pointcut by providing a custom `org.springframework.aop.Pointcut` bean with name `sentryTransactionPointcut`. -### Capturing Span +### Capturing a Span To create a span around a method execution, annotate method with `@SentrySpan` annotation: @@ -103,13 +105,15 @@ import io.sentry.spring.tracing.SentrySpan @Component class PersonService { - @SentrySpan + @SentrySpan("task") fun findById(id: Long): Person { ... } } ``` -`@SentrySpan` can be configured with custom `description` and `op` properties. If not defined, `description` will be resolved from the class, and the method name. +`@SentrySpan` can be configured with custom `description` property. If not defined, `operation` will be resolved from the class, and the method name. + +`@SentrySpan` can be also placed on a class or an interface - it turns every method execution from the annotated type into a span. Advanced Spring AOP users can redefine around which methods spans and transactions are created by creating custom advice, pointcut and advisor beans instead of importing `SentryTracingConfiguration` class. From d05c6fcb80b4d4b236c2a2e9a5c34bfc19bff08b Mon Sep 17 00:00:00 2001 From: Maciej Walkowiak Date: Tue, 23 Feb 2021 14:57:41 +0100 Subject: [PATCH 5/5] Add parameter names to @SentrySpan and @SentryTransaction --- .../enable-manual-instrumentation/java.spring-boot.mdx | 6 +++--- .../enable-manual-instrumentation/java.spring.mdx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx index 462d94a4923a1d..0bc72b95da18f6 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring-boot.mdx @@ -24,7 +24,7 @@ import io.sentry.spring.tracing.SentryTransaction; class ScheduledJob { @Scheduled(...) - @SentryTransaction("task") + @SentryTransaction(operation = "task") void execute() { ... } @@ -40,7 +40,7 @@ import io.sentry.spring.tracing.SentryTransaction class ScheduledJob { @Scheduled(...) - @SentryTransaction("task") + @SentryTransaction(operation = "task") fun execute() { ... } @@ -78,7 +78,7 @@ import io.sentry.spring.tracing.SentrySpan @Component class PersonService { - @SentrySpan("task") + @SentrySpan(operation = "task") fun findById(id: Long): Person { ... } diff --git a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx index fdb760bfff6de9..63462f1536171f 100644 --- a/src/includes/performance/enable-manual-instrumentation/java.spring.mdx +++ b/src/includes/performance/enable-manual-instrumentation/java.spring.mdx @@ -51,7 +51,7 @@ import io.sentry.spring.tracing.SentryTransaction; class ScheduledJob { @Scheduled(...) - @SentryTransaction("task") + @SentryTransaction(operation = "task") void execute() { ... } @@ -67,7 +67,7 @@ import io.sentry.spring.tracing.SentryTransaction class ScheduledJob { @Scheduled(...) - @SentryTransaction("task") + @SentryTransaction(operation = "task") fun execute() { ... } @@ -105,7 +105,7 @@ import io.sentry.spring.tracing.SentrySpan @Component class PersonService { - @SentrySpan("task") + @SentrySpan(operation = "task") fun findById(id: Long): Person { ... }