All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.lang.trace.Trace Maven / Gradle / Ivy

package cn.lang.trace;

/**
 * Trace
 *
 * @author Lang [email protected]
 * date 2022-6-06
 */
public class Trace {

    private String traceId;

    private String spanId;

    public static final String TRACE_ID = "X-LANG-TRACE";

    public static final String SPAN_ID = "X-LANG-SPAN";

    public static final String TRACE_HEADER = "X-TRACE";

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getSpanId() {
        return spanId;
    }

    public void setSpanId(String spanId) {
        this.spanId = spanId;
    }

    @Override
    public String toString() {
        return "Trace{" +
                "traceId='" + traceId + '\'' +
                ", spanId='" + spanId + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy