public final class HttpFailure extends Object
POST /api/v1/spans endpoint needs to survive failures.
Besides simply not starting the zipkin server, you can enqueue failures like this to test edge
cases. For example, that you log a failure when a 400 code is returned.| Modifier and Type | Method and Description |
|---|---|
static HttpFailure |
disconnectDuringBody()
Ex a network partition occurs in the middle of the POST request
|
static HttpFailure |
sendErrorResponse(int code,
String body)
Ex code 400 when the server cannot read the spans
|
public static HttpFailure disconnectDuringBody()
public static HttpFailure sendErrorResponse(int code, String body)
Copyright © 2015–2017 OpenZipkin. All rights reserved.