Skip to content

Commit 24b9bba

Browse files
Make SpanContext#withBaggageItem publicly accessible to allow 3rd party propagators to set baggage items upon extraction (#163)
Co-authored-by: Carlos Alberto Cortez <[email protected]>
1 parent 0d07543 commit 24b9bba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

common/src/main/java/com/lightstep/tracer/shared/SpanContext.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ Map<String, String> getBaggage() {
8989
return baggage;
9090
}
9191

92-
SpanContext withBaggageItem(String key, String value) {
92+
@SuppressWarnings("WeakerAccess")
93+
public SpanContext withBaggageItem(String key, String value) {
9394
// Do NOT modify our own baggage, as SpanContext is expected to be immutable.
9495
Map<String, String> newBaggage = new HashMap<String, String>(this.baggage);
9596
newBaggage.put(key, value);

0 commit comments

Comments
 (0)