private static void encodeBaggageItemToRequest(MultivaluedMap<String, Object> headers) {
            // Attach baggage items
            RpcInvokeContext rpcInvokeContext = RpcInvokeContext.peekContext();
            if (rpcInvokeContext == null || !RpcInvokeContext.isBaggageEnable() ||
                rpcInvokeContext.getAllRequestBaggage() == null ||
                rpcInvokeContext.getAllRequestBaggage().isEmpty()) {
                return;
            }

            Map<String, String> baggageItems = rpcInvokeContext.getAllRequestBaggage();
            for (Map.Entry<String, String> entry : baggageItems.entrySet()) {
                String baggageKey = RPC_REQUEST_BAGGAGE_PREFIX + entry.getKey();
                headers.putSingle(baggageKey, entry.getValue());
            }
        }
Encode baggage items from invoke context to request headers

@param headers request headers
tracer/tracer-opentracing-resteasy/src/main/java/com/alipay/sofa/rpc/tracer/sofatracer/RestTracerAdapter.java