Skip to content

Commit

Permalink
Removed tracing related param which was used with OpenTracing only (#851
Browse files Browse the repository at this point in the history
)

Signed-off-by: Paolo Patierno <[email protected]>
  • Loading branch information
ppatierno authored Nov 18, 2023
1 parent afcc7c7 commit 1c25cf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ private void pollHandler(ConsumerRecords<K, V> records, Throwable ex, RoutingCon
if (ex == null) {

for (ConsumerRecord<K, V> record : records) {
tracing.handleRecordSpan(span, record);
tracing.handleRecordSpan(record);
}
span.inject(routingContext);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public <K, V> SpanHandle<K, V> span(RoutingContext routingContext, String operat
}

@Override
public <K, V> void handleRecordSpan(SpanHandle<K, V> parentSpanHandle, ConsumerRecord<K, V> record) {
public <K, V> void handleRecordSpan(ConsumerRecord<K, V> record) {
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private SpanBuilder getSpanBuilder(RoutingContext routingContext, String operati
}

@Override
public <K, V> void handleRecordSpan(SpanHandle<K, V> parentSpanHandle, ConsumerRecord<K, V> record) {
public <K, V> void handleRecordSpan(ConsumerRecord<K, V> record) {
String operationName = record.topic() + " " + MessageOperation.RECEIVE;
SpanBuilder spanBuilder = get().spanBuilder(operationName);
Context parentContext = propagator().extract(Context.current(), TracingUtil.toHeaders(record), MG);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ public interface TracingHandle {
*
* @param <K> key type
* @param <V> value type
* @param parentSpanHandle parent span handle
* @param record Kafka consumer record
*/
<K, V> void handleRecordSpan(SpanHandle<K, V> parentSpanHandle, ConsumerRecord<K, V> record);
<K, V> void handleRecordSpan(ConsumerRecord<K, V> record);

/**
* Add producer properties, if any.
Expand Down

0 comments on commit 1c25cf3

Please sign in to comment.