class TraceContext implements Recyclable {

    @Override
    public void resetState() {
        traceId.resetState();
        id.resetState();
        parentId.resetState();
        transactionId.resetState();
        outgoingTextHeader.setLength(0);
        flags = 0;
        discardable = true;
        clock.resetState();
        serviceName = null;
        applicationClassLoader = null;
        traceState.resetState();
        traceState.setSizeLimit(coreConfiguration.getTracestateSizeLimit());
    }

    private  TraceContext(ElasticApmTracer tracer, Id id);

}