Merge branch '3.0.x' into main

This commit is contained in:
Marcin Grzejszczak
2021-07-28 20:25:10 +02:00
5 changed files with 108 additions and 28 deletions

View File

@@ -18,6 +18,8 @@ package org.springframework.cloud.sleuth;
import java.util.Map;
import org.springframework.lang.Nullable;
/**
* Manages {@link BaggageInScope} entries. Upon retrieval / creation of a baggage entry
* puts it in scope. Scope must be closed.
@@ -38,6 +40,7 @@ public interface BaggageManager {
* @param name baggage name
* @return baggage or {@code null} if not present
*/
@Nullable
BaggageInScope getBaggage(String name);
/**
@@ -46,6 +49,7 @@ public interface BaggageManager {
* @param name baggage name
* @return baggage or {@code null} if not present
*/
@Nullable
BaggageInScope getBaggage(TraceContext traceContext, String name);
/**