private static String stacktraceToString(StackTraceElement[] stackTrace,
                                             RequestContext unwrap) {
        final StringBuilder builder = new StringBuilder(512);
        builder.append(unwrap).append(System.lineSeparator());
        for (int i = 1; i < stackTrace.length; i++) {
            builder.append("\tat ").append(stackTrace[i]).append(System.lineSeparator());
        }
        return builder.toString();
    }
Creates a new instance.

@param delegate the underlying {@link RequestContextStorage} that stores {@link RequestContext}
@param sampler the {@link Sampler} that determines whether to retain the stacktrace of the context leaks
core/src/main/java/com/linecorp/armeria/internal/common/LeakTracingRequestContextStorage.java