public class ServletTraceFilterBuilder extends Object
ServletTraceFilterBuilder builds a ServletTraceFilter which is a jetty filter
provided by phantom runtime, to kick start distributed tracing for every request. Spans are emitted
to the zipkin collector based on config which is controlled by DynamicSampleRateTraceFilter.
Distributed Tracing by default on prod adds almost NILL overhead. The plan is to enable it per host on need basis dynamically without restarting Posidon application which will add a minor overhead of config lookups, sampling counter lock, logs at Poseidon threads and minor overhead at phantom threads (which is not yet measured). Actual spans and traces are pushed to Zipkin Collector asynchronously (memory requirements are also not measured yet). Expectation is to enable tracing for a brief period for a set of required URLs on one host and turn it off asap.
| Constructor and Description |
|---|
ServletTraceFilterBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static com.flipkart.phantom.runtime.impl.jetty.filter.ServletTraceFilter |
build(Configuration configuration) |
public static com.flipkart.phantom.runtime.impl.jetty.filter.ServletTraceFilter build(Configuration configuration)
Copyright © 2016. All rights reserved.