Java Code Examples for org.springframework.cloud.sleuth.Span#setBaggageItem()

The following examples show how to use org.springframework.cloud.sleuth.Span#setBaggageItem() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AddressController.java    From resilient-transport-service with Apache License 2.0 5 votes vote down vote up
private void appendSpan(String city) {
    Span span = tracer.getCurrentSpan();
    String baggageKey = "address-city";
    String baggageValue = city;
    span.setBaggageItem(baggageKey, baggageValue);
    tracer.addTag(baggageKey, baggageValue);
}
 
Example 2
Source File: CustomerController.java    From resilient-transport-service with Apache License 2.0 5 votes vote down vote up
private void appendSpan(String value, String key) {
    Span span = tracer.getCurrentSpan();
    String baggageKey = key;
    String baggageValue = value;
    span.setBaggageItem(baggageKey, baggageValue);
    tracer.addTag(baggageKey, baggageValue);
}
 
Example 3
Source File: ConnoteController.java    From resilient-transport-service with Apache License 2.0 5 votes vote down vote up
private void appendSpan(String value, String key) {
    Span span = tracer.getCurrentSpan();
    String baggageKey = key;
    String baggageValue = value;
    span.setBaggageItem(baggageKey, baggageValue);
    tracer.addTag(baggageKey, baggageValue);
}
 
Example 4
Source File: BookingController.java    From resilient-transport-service with Apache License 2.0 5 votes vote down vote up
private void appendSpan(String value, String key) {
    Span span = tracer.getCurrentSpan();
    String baggageKey = key;
    String baggageValue = value;
    span.setBaggageItem(baggageKey, baggageValue);
    tracer.addTag(baggageKey, baggageValue);
}