/* * Copyright 2014 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.navercorp.pinpoint.common.util; /** * @author emeroad */ public class TraceHeader { private String id; private String spanId; private String parentSpanId; private String sampling; private String flag; public TraceHeader() { } public TraceHeader(String id, String spanId, String parentSpanId, String sampling, String flag) { this.id = id; this.spanId = spanId; this.parentSpanId = parentSpanId; this.sampling = sampling; this.flag = flag; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getSpanId() { return spanId; } public void setSpanId(String spanId) { this.spanId = spanId; } public String getParentSpanId() { return parentSpanId; } public void setParentSpanId(String parentSpanId) { this.parentSpanId = parentSpanId; } public String getSampling() { return sampling; } public void setSampling(String sampling) { this.sampling = sampling; } public String getFlag() { return flag; } public void setFlag(String flag) { this.flag = flag; } @Override public String toString() { return "TraceHeader{" + "id='" + id + '\'' + ", spanId='" + spanId + '\'' + ", parentSpanId='" + parentSpanId + '\'' + ", sampling='" + sampling + '\'' + ", flag='" + flag + '\'' + '}'; } }