Skip to content

Commit ad9f232

Browse files
committed
Fix spotless and add setMessagingReceiveTelemetryEnabled to KafkaInstrumenterFactory
1 parent 792e62a commit ad9f232

File tree

2 files changed

+14
-2
lines changed
  • instrumentation

2 files changed

+14
-2
lines changed

instrumentation/jms/jms-common/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jms/JmsInstrumenterFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public JmsInstrumenterFactory setMessagingReceiveTelemetryEnabled(
4646
return this;
4747
}
4848

49-
/** @deprecated Use {@link #setMessagingReceiveTelemetryEnabled(boolean)} instead. */
49+
/**
50+
* @deprecated Use {@link #setMessagingReceiveTelemetryEnabled(boolean)} instead.
51+
*/
5052
@CanIgnoreReturnValue
5153
@Deprecated
5254
public JmsInstrumenterFactory setMessagingReceiveInstrumentationEnabled(

instrumentation/kafka/kafka-clients/kafka-clients-common-0.11/library/src/main/java/io/opentelemetry/instrumentation/kafkaclients/common/v0_11/internal/KafkaInstrumenterFactory.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,22 @@ public KafkaInstrumenterFactory setCaptureExperimentalSpanAttributes(
6363
}
6464

6565
@CanIgnoreReturnValue
66-
public KafkaInstrumenterFactory setMessagingReceiveInstrumentationEnabled(
66+
public KafkaInstrumenterFactory setMessagingReceiveTelemetryEnabled(
6767
boolean messagingReceiveInstrumentationEnabled) {
6868
this.messagingReceiveInstrumentationEnabled = messagingReceiveInstrumentationEnabled;
6969
return this;
7070
}
7171

72+
/**
73+
* @deprecated Use {@link #setMessagingReceiveTelemetryEnabled(boolean)} instead.
74+
*/
75+
@CanIgnoreReturnValue
76+
@Deprecated
77+
public KafkaInstrumenterFactory setMessagingReceiveInstrumentationEnabled(
78+
boolean messagingReceiveInstrumentationEnabled) {
79+
return setMessagingReceiveTelemetryEnabled(messagingReceiveInstrumentationEnabled);
80+
}
81+
7282
public Instrumenter<KafkaProducerRequest, RecordMetadata> createProducerInstrumenter() {
7383
return createProducerInstrumenter(Collections.emptyList());
7484
}

0 commit comments

Comments
 (0)