Class ZipkinOtelSetup
java.lang.Object
io.micrometer.tracing.test.reporter.zipkin.ZipkinOtelSetup
- All Implemented Interfaces:
AutoCloseable
Provides Zipkin setup with OTel.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for OTel with Zipkin. -
Method Summary
Modifier and TypeMethodDescriptionstatic ZipkinOtelSetup.Builderbuilder()voidclose()static voidrun(io.micrometer.observation.ObservationRegistry registry, Consumer<ZipkinOtelSetup.Builder.OtelBuildingBlocks> consumer) Runs the given lambda with Zipkin setup.static voidrun(ZipkinOtelSetup localZipkinBrave, Consumer<ZipkinOtelSetup.Builder.OtelBuildingBlocks> consumer)
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getBuildingBlocks
- Returns:
- all the OTel building blocks required to communicate with Zipkin
-
builder
- Returns:
- builder for the
ZipkinOtelSetup
-
run
public static void run(io.micrometer.observation.ObservationRegistry registry, Consumer<ZipkinOtelSetup.Builder.OtelBuildingBlocks> consumer) Runs the given lambda with Zipkin setup.- Parameters:
registry- registry to register the handlers againstconsumer- lambda to be executed with the building blocks
-
run
public static void run(ZipkinOtelSetup localZipkinBrave, Consumer<ZipkinOtelSetup.Builder.OtelBuildingBlocks> consumer) - Parameters:
localZipkinBrave- Brave setup with Zipkinconsumer- runnable to run
-