Skip to content

Commit bd5a559

Browse files
committed
keep deprecated constructors for now
1 parent f5fc44c commit bd5a559

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

baggage-processor/src/main/java/io/opentelemetry/contrib/baggage/processor/BaggageLogRecordProcessor.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ public final class BaggageLogRecordProcessor implements LogRecordProcessor {
2323

2424
private final Predicate<String> baggageKeyPredicate;
2525

26+
/**
27+
* @deprecated Use {@link #BaggageLogRecordProcessor(Collection, Collection)} instead.
28+
*/
29+
@Deprecated
30+
public BaggageLogRecordProcessor(Predicate<String> baggageKeyPredicate) {
31+
this.baggageKeyPredicate = baggageKeyPredicate;
32+
}
33+
2634
/**
2735
* Creates a new {@link BaggageLogRecordProcessor} that copies baggage entries with keys that pass
2836
* the provided include/exclude filtering into the newly created log record, when both arguments

baggage-processor/src/main/java/io/opentelemetry/contrib/baggage/processor/BaggageSpanProcessor.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
public final class BaggageSpanProcessor implements SpanProcessor {
2323
private final Predicate<String> baggageKeyPredicate;
2424

25+
/**
26+
* @deprecated Use {@link #BaggageSpanProcessor(Collection, Collection)} instead.
27+
*/
28+
@Deprecated
29+
public BaggageSpanProcessor(Predicate<String> baggageKeyPredicate) {
30+
this.baggageKeyPredicate = baggageKeyPredicate;
31+
}
32+
2533
/**
2634
* Creates a new {@link BaggageSpanProcessor} that copies baggage entries with keys that pass the
2735
* provided include/exclude filtering into the newly created {@link

0 commit comments

Comments
 (0)