@RestController
@RequestMapping(value="/api/v2")
@ConditionalOnProperty(name="zipkin.query.enabled",
matchIfMissing=true)
public class ZipkinQueryApiV2
extends Object
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDependencies(long endTs,
Long lookback) |
org.springframework.http.ResponseEntity<List<String>> |
getServiceNames() |
org.springframework.http.ResponseEntity<List<String>> |
getSpanNames(String serviceName) |
String |
getTrace(String traceIdHex,
org.springframework.web.context.request.WebRequest request) |
String |
getTraces(String serviceName,
String spanName,
String annotationQuery,
Long minDuration,
Long maxDuration,
Long endTs,
Long lookback,
int limit) |
void |
notFound() |
@RequestMapping(value="/dependencies",
method=GET,
produces="application/json")
public byte[] getDependencies(@RequestParam(value="endTs",required=true)
long endTs,
@Nullable @RequestParam(value="lookback",required=false)
Long lookback)
throws IOException
IOException@RequestMapping(value="/services",
method=GET)
public org.springframework.http.ResponseEntity<List<String>> getServiceNames()
throws IOException
IOException@RequestMapping(value="/spans",
method=GET)
public org.springframework.http.ResponseEntity<List<String>> getSpanNames(@RequestParam(value="serviceName",required=true)
String serviceName)
throws IOException
IOException@RequestMapping(value="/traces",
method=GET,
produces="application/json")
public String getTraces(@Nullable @RequestParam(value="serviceName",required=false)
String serviceName,
@Nullable @RequestParam(value="spanName",required=false)
String spanName,
@Nullable @RequestParam(value="annotationQuery",required=false)
String annotationQuery,
@Nullable @RequestParam(value="minDuration",required=false)
Long minDuration,
@Nullable @RequestParam(value="maxDuration",required=false)
Long maxDuration,
@Nullable @RequestParam(value="endTs",required=false)
Long endTs,
@Nullable @RequestParam(value="lookback",required=false)
Long lookback,
@RequestParam(value="limit",defaultValue="10")
int limit)
throws IOException
IOException@RequestMapping(value="/trace/{traceIdHex}",
method=GET,
produces="application/json")
public String getTrace(@PathVariable
String traceIdHex,
org.springframework.web.context.request.WebRequest request)
throws IOException
IOException@ExceptionHandler(value=zipkin2.server.internal.ZipkinQueryApiV2.TraceNotFoundException.class) @ResponseStatus(value=NOT_FOUND) public void notFound()
Copyright © 2015–2018 OpenZipkin. All rights reserved.