Skip to content

Commit f0a2a21

Browse files
adinauerclaude
andcommitted
ref: Remove redundant comments from variant controllers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 082fab0 commit f0a2a21

File tree

6 files changed

+0
-6
lines changed

6 files changed

+0
-6
lines changed

sentry-samples/sentry-samples-spring-boot-4-opentelemetry-noagent/src/main/java/io/sentry/samples/spring/boot4/MetricController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class MetricController {
1616

1717
@GetMapping("count")
1818
String count() {
19-
// Set scope attributes - these are automatically attached to metrics
2019
Sentry.setAttribute("user.type", "admin");
2120
Sentry.setAttribute("feature.version", 2);
2221
Sentry.metrics().count("countMetric");

sentry-samples/sentry-samples-spring-boot-4-opentelemetry-noagent/src/main/java/io/sentry/samples/spring/boot4/PersonController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Person person(@PathVariable Long id) {
3434
Sentry.addFeatureFlag("outer-feature-flag", true);
3535
Span span = tracer.spanBuilder("spanCreatedThroughOtelApi").startSpan();
3636
try (final @NotNull Scope spanScope = span.makeCurrent()) {
37-
// Set scope attributes - these are automatically attached to logs and metrics
3837
Sentry.setAttribute("user.type", "admin");
3938
Sentry.setAttribute("feature.version", 2);
4039
Sentry.setAttribute("debug.enabled", true);

sentry-samples/sentry-samples-spring-boot-4-opentelemetry/src/main/java/io/sentry/samples/spring/boot4/MetricController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class MetricController {
1616

1717
@GetMapping("count")
1818
String count() {
19-
// Set scope attributes - these are automatically attached to metrics
2019
Sentry.setAttribute("user.type", "admin");
2120
Sentry.setAttribute("feature.version", 2);
2221
Sentry.metrics().count("countMetric");

sentry-samples/sentry-samples-spring-boot-4-opentelemetry/src/main/java/io/sentry/samples/spring/boot4/PersonController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Person person(@PathVariable Long id) {
3232
Sentry.addFeatureFlag("transaction-feature-flag", true);
3333
Span span = tracer.spanBuilder("spanCreatedThroughOtelApi").startSpan();
3434
try (final @NotNull Scope spanScope = span.makeCurrent()) {
35-
// Set scope attributes - these are automatically attached to logs and metrics
3635
Sentry.setAttribute("user.type", "admin");
3736
Sentry.setAttribute("feature.version", 2);
3837
Sentry.setAttribute("debug.enabled", true);

sentry-samples/sentry-samples-spring-boot-4-webflux/src/main/java/io/sentry/samples/spring/boot4/MetricController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class MetricController {
1616

1717
@GetMapping("count")
1818
String count() {
19-
// Set scope attributes - these are automatically attached to metrics
2019
Sentry.setAttribute("user.type", "admin");
2120
Sentry.setAttribute("feature.version", 2);
2221
Sentry.metrics().count("countMetric");

sentry-samples/sentry-samples-spring-boot-4-webflux/src/main/java/io/sentry/samples/spring/boot4/PersonController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public PersonController(PersonService personService) {
2323

2424
@GetMapping("{id}")
2525
Person person(@PathVariable Long id) {
26-
// Set scope attributes - these are automatically attached to logs and metrics
2726
Sentry.setAttribute("user.type", "admin");
2827
Sentry.setAttribute("feature.version", 2);
2928
Sentry.setAttribute("debug.enabled", true);

0 commit comments

Comments
 (0)