Class WavefrontBraveSetup
java.lang.Object
io.micrometer.tracing.test.reporter.wavefront.WavefrontBraveSetup
- All Implemented Interfaces:
AutoCloseable
Provides Wavefront setup with Brave.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for Brave with Wavefront. -
Method Summary
Modifier and TypeMethodDescriptionstatic WavefrontBraveSetup.Buildervoidclose()static voidrun(WavefrontBraveSetup setup, Consumer<WavefrontBraveSetup.Builder.BraveBuildingBlocks> consumer) static voidrun(String server, String token, io.micrometer.observation.ObservationRegistry observationRegistry, io.micrometer.core.instrument.MeterRegistry meterRegistry, Consumer<WavefrontBraveSetup.Builder.BraveBuildingBlocks> consumer) Runs the given lambda with Zipkin setup.
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getBuildingBlocks
- Returns:
- all the Brave building blocks required to communicate with Zipkin
-
builder
- Parameters:
server- Wavefront server URLtoken- Wavefront token- Returns:
- builder for the
WavefrontBraveSetup
-
run
public static void run(String server, String token, io.micrometer.observation.ObservationRegistry observationRegistry, io.micrometer.core.instrument.MeterRegistry meterRegistry, Consumer<WavefrontBraveSetup.Builder.BraveBuildingBlocks> consumer) Runs the given lambda with Zipkin setup.- Parameters:
server- Wavefront's server URLtoken- Wavefront's tokenobservationRegistry- observation registry to register the handlers againstmeterRegistry- meter registryconsumer- lambda to be executed with the building blocks
-
run
public static void run(WavefrontBraveSetup setup, Consumer<WavefrontBraveSetup.Builder.BraveBuildingBlocks> consumer) - Parameters:
setup- Brave setup with Wavefrontconsumer- runnable to run
-