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