批注接口 AutoConfigureObservability


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @ImportAutoConfiguration public @interface AutoConfigureObservability
Annotation that can be applied to a test class to enable auto-configuration for observability.

If this annotation is applied to a sliced test, an in-memory MeterRegistry, a no-op Tracer and an ObservationRegistry are added to the application context.

从以下版本开始:
3.0.0
作者:
Moritz Halbritter
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    boolean
    Whether metrics should be reported to external systems in the test.
    boolean
    Whether traces should be reported to external systems in the test.
  • 元素详细资料

    • metrics

      boolean metrics
      Whether metrics should be reported to external systems in the test.
      返回:
      whether metrics should be reported to external systems in the test
      默认值:
      true
    • tracing

      boolean tracing
      Whether traces should be reported to external systems in the test.
      返回:
      whether traces should be reported to external systems in the test
      默认值:
      true