|
@@ -169,24 +169,6 @@ public final class InstrumenterBuilder<REQUEST, RESPONSE> {
|
|
return this;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * Sets the {@link TimeExtractor} that will extract the timestamp marking the start and the end of
|
|
|
|
- * request processing. If unset, the constructed {@link Instrumenter} will defer determining the
|
|
|
|
- * start and end timestamps to the OpenTelemetry SDK.
|
|
|
|
- *
|
|
|
|
- * <p>Note: if metrics are generated by the {@link Instrumenter}, the start and end times from the
|
|
|
|
- * {@link TimeExtractor} will be used to generate any duration metrics, but the internal metric
|
|
|
|
- * timestamp (when it occurred) will always be stamped with "now" when the metric is recorded
|
|
|
|
- * (i.e. there is no way to back date a metric recording).
|
|
|
|
- *
|
|
|
|
- * @deprecated Setting operation start and end times is not currently supported.
|
|
|
|
- */
|
|
|
|
- @Deprecated
|
|
|
|
- public InstrumenterBuilder<REQUEST, RESPONSE> setTimeExtractor(
|
|
|
|
- TimeExtractor<REQUEST, RESPONSE> timeExtractor) {
|
|
|
|
- return this;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Allows enabling/disabling the {@link Instrumenter} based on the {@code enabled} value passed as
|
|
* Allows enabling/disabling the {@link Instrumenter} based on the {@code enabled} value passed as
|
|
* parameter. All instrumenters are enabled by default.
|
|
* parameter. All instrumenters are enabled by default.
|