Skip to content

Commit 58b67b2

Browse files
adinauerclaude
andcommitted
ref(samples): Move KafkaShowcase to kafka subpackage
Move KafkaShowcase under io.sentry.samples.console.kafka and update Main to import the relocated class. This keeps Kafka-specific sample code grouped in a dedicated package without changing runtime behavior. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 33c4c79 commit 58b67b2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console/Main.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import io.sentry.clientreport.DiscardReason;
55
import io.sentry.jcache.SentryJCacheWrapper;
66
import io.sentry.protocol.Message;
7+
import io.sentry.samples.console.kafka.KafkaShowcase;
78
import io.sentry.protocol.User;
89
import java.util.Collections;
910
import javax.cache.Cache;

sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console/KafkaShowcase.java renamed to sentry-samples/sentry-samples-console/src/main/java/io/sentry/samples/console/kafka/KafkaShowcase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.sentry.samples.console;
1+
package io.sentry.samples.console.kafka;
22

33
import io.sentry.ISentryLifecycleToken;
44
import io.sentry.ITransaction;
@@ -20,11 +20,11 @@
2020
import org.apache.kafka.common.serialization.StringDeserializer;
2121
import org.apache.kafka.common.serialization.StringSerializer;
2222

23-
final class KafkaShowcase {
23+
public final class KafkaShowcase {
2424

2525
private KafkaShowcase() {}
2626

27-
static void demonstrate(final String bootstrapServers) {
27+
public static void demonstrate(final String bootstrapServers) {
2828
final String topic = "sentry-topic-console-sample";
2929
final CountDownLatch consumedLatch = new CountDownLatch(1);
3030
final Thread consumerThread = startKafkaConsumerThread(topic, bootstrapServers, consumedLatch);

0 commit comments

Comments
 (0)