@RestController
@RequestMapping(value="/api/v1")
@CrossOrigin(value="${zipkin.query.allowed-origins:*}")
public class ZipkinQueryApiV1
extends Object
| Constructor and Description |
|---|
ZipkinQueryApiV1(StorageComponent storage) |
| 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,
Integer limit) |
void |
notFound() |
@Autowired public ZipkinQueryApiV1(StorageComponent storage)
@RequestMapping(value="/dependencies",
method=GET,
produces="application/json")
public byte[] getDependencies(@RequestParam(value="endTs",required=true)
long endTs,
@RequestParam(value="lookback",required=false)
Long lookback)
@RequestMapping(value="/services",
method=GET)
public org.springframework.http.ResponseEntity<List<String>> getServiceNames()
@RequestMapping(value="/spans",
method=GET)
public org.springframework.http.ResponseEntity<List<String>> getSpanNames(@RequestParam(value="serviceName",required=true)
String serviceName)
@RequestMapping(value="/traces",
method=GET,
produces="application/json")
public String getTraces(@RequestParam(value="serviceName",required=false)
String serviceName,
@RequestParam(value="spanName",defaultValue="all")
String spanName,
@RequestParam(value="annotationQuery",required=false)
String annotationQuery,
@RequestParam(value="minDuration",required=false)
Long minDuration,
@RequestParam(value="maxDuration",required=false)
Long maxDuration,
@RequestParam(value="endTs",required=false)
Long endTs,
@RequestParam(value="lookback",required=false)
Long lookback,
@RequestParam(value="limit",required=false)
Integer limit)
@RequestMapping(value="/trace/{traceIdHex}",
method=GET,
produces="application/json")
public String getTrace(@PathVariable
String traceIdHex,
org.springframework.web.context.request.WebRequest request)
@ExceptionHandler(value=zipkin.server.ZipkinQueryApiV1.TraceNotFoundException.class) @ResponseStatus(value=NOT_FOUND) public void notFound()
Copyright © 2015–2017 OpenZipkin. All rights reserved.