@ConfigurationProperties(value="spring.sleuth.keys") public class TraceKeys extends Object
span tag
keys.
When evaluating new keys, consider how much additional data it implies, and if that data is critical to classifying, filtering or displaying traces. More data often means larger systems, less retention, or a lower sample rate.
For example, in zipkin, a thrift-encoded span with an "sr" annotation is 82 bytes plus the size of its name and associated service. The maximum size of an HTTP cookie is 4096 bytes, roughly 50x that. Even if compression helps, if you aren't analyzing based on cookies, storing them displaces resources that could be used for more traces. Meanwhile, you have another system storing private data! The takeaway isn't never store cookies, as there are valid cases for this. The takeaway is to be conscious about what's you are storing.
| Modifier and Type | Class and Description |
|---|---|
static class |
TraceKeys.Async
Trace keys related to async processing
|
static class |
TraceKeys.Http |
static class |
TraceKeys.Hystrix
Trace keys related to Hystrix processing
|
static class |
TraceKeys.Message |
static class |
TraceKeys.Mvc
Trace keys related to MVC controller tags
|
| Constructor and Description |
|---|
TraceKeys() |
| Modifier and Type | Method and Description |
|---|---|
TraceKeys.Async |
getAsync() |
TraceKeys.Http |
getHttp() |
TraceKeys.Hystrix |
getHystrix() |
TraceKeys.Message |
getMessage() |
TraceKeys.Mvc |
getMvc() |
void |
setAsync(TraceKeys.Async async) |
void |
setHttp(TraceKeys.Http http) |
void |
setHystrix(TraceKeys.Hystrix hystrix) |
void |
setMessage(TraceKeys.Message message) |
void |
setMvc(TraceKeys.Mvc mvc) |
public TraceKeys.Http getHttp()
public TraceKeys.Message getMessage()
public TraceKeys.Hystrix getHystrix()
public TraceKeys.Async getAsync()
public TraceKeys.Mvc getMvc()
public void setHttp(TraceKeys.Http http)
public void setMessage(TraceKeys.Message message)
public void setHystrix(TraceKeys.Hystrix hystrix)
public void setAsync(TraceKeys.Async async)
public void setMvc(TraceKeys.Mvc mvc)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.