private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; }
/** * @return An instance of {@code AWSXRayRecorder} using the {@link com.amazonaws.xray.strategy.sampling.DefaultSamplingStrategy}, {@link com.amazonaws.xray.strategy.DefaultPrioritizationStrategy}, along with other default strategies and settings. */ public static AWSXRayRecorder defaultRecorder() { return standard().build(); }
/** * @return A new builder instance with all defaults set. */ public static AWSXRayRecorderBuilder standard() { return new AWSXRayRecorderBuilder(); }
private static ContextMissingStrategy getContextMissingStrategy() { return AWSXRay.getGlobalRecorder().getContextMissingStrategy(); }
public static Optional<Subsegment> getCurrentSubsegmentOptional() { return globalRecorder.getCurrentSubsegmentOptional(); }
/** * Clears the current stored entity. * */ public static void clear() { CURRENT_ENTITY.remove(); }
public static SecureRandom getRandom() { return CURRENT_RANDOM.get(); } }
public static <R> R createSegment(String name, Supplier<R> supplier) { return globalRecorder.createSegment(name, supplier); }
private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; }
/** * @return An instance of {@code AWSXRayRecorder} using the {@link com.amazonaws.xray.strategy.sampling.DefaultSamplingStrategy}, {@link com.amazonaws.xray.strategy.DefaultPrioritizationStrategy}, along with other default strategies and settings. */ public static AWSXRayRecorder defaultRecorder() { return standard().build(); }
/** * @return A new builder instance with all defaults set. */ public static AWSXRayRecorderBuilder standard() { return new AWSXRayRecorderBuilder(); }
/** * Clears the current stored entity. * */ public static void clear() { CURRENT_ENTITY.remove(); }
public static SecureRandom getRandom() { return CURRENT_RANDOM.get(); } }
/** * Constructs a TracedHttpClient instance using the provided client and global recorder. * * @param wrappedClient * the HTTP client to wrap */ public TracedHttpClient(final CloseableHttpClient wrappedClient) { this(wrappedClient, AWSXRay.getGlobalRecorder()); }
private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; } }
private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; }
private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; } }
private AWSXRayRecorder getRecorder() { if (recorder == null) { recorder = AWSXRay.getGlobalRecorder(); } return recorder; }
/** * Constructs a TracedHttpClient instance using the provided client and global recorder. * * @param wrappedClient * the HTTP client to wrap */ public TracedHttpClient(final CloseableHttpClient wrappedClient) { this(wrappedClient, AWSXRay.getGlobalRecorder()); }
private void lazyLoadRecorder() { if (recorder != null) { return; } recorder = AWSXRay.getGlobalRecorder(); }