Common application properties

可以直接在您的 application.properties 文件中、在您的 application.yml 文件中、或作为命令行开关来指定一些属性。本附录提供了一些常见的 {project-full-name} 属性及其被它们所使用的底层类的引用。

Various properties can be specified inside your application.properties file, inside your application.yml file, or as command line switches. This appendix provides a list of common {project-full-name} properties and references to the underlying classes that consume them.

属性贡献可以来自类路径上的其他 jar 文件,因此你不应该将此视为一份详尽的清单。此外,你可以定义自己的属性。

Property contributions can come from additional jar files on your classpath, so you should not consider this an exhaustive list. Also, you can define your own properties.

Observability metadata

Observability - Metrics

Observability - Metrics

下面您可以找到此项目声明的所有指标的列表。

Below you can find a list of all metrics declared by this project.

Circuit Breaker Function Observation

当我们将作为备用方法传递给 CircuitBreaker 的 Function 包装起来时创建此观察。

Observation created when we wrap a Function passed to the CircuitBreaker as fallback.

指标名称 spring.cloud.circuitbreaker(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。类型 timer

Metric name spring.cloud.circuitbreaker (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention). Type timer.

指标名称 spring.cloud.circuitbreaker.active(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。类型 long task timer

Metric name spring.cloud.circuitbreaker.active (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention). Type long task timer.

在 Observation 启动后添加的 KeyValues 可能会缺失于 *.active 指标。

KeyValues that are added after starting the Observation might be missing from the *.active metrics.

Micrometer 内部使用 nanoseconds 作为基本单位。但是,每个后端决定实际基本单位。(例如,Prometheus 使用秒)

Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)

封装类的完全限定名称 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

Fully qualified name of the enclosing class org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation.

所有标签必须以 spring.cloud.circuitbreaker 为前缀!

All tags must be prefixed with spring.cloud.circuitbreaker prefix!

Table 1. Low cardinality Keys

Name

Description

spring.cloud.circuitbreaker.type (required)

Defines the type of wrapped lambda.

Circuit Breaker Supplier Observation

将提供给 CircuitBreaker 的 Supplier 包装时创建的观测。

Observation created when we wrap a Supplier passed to the CircuitBreaker.

指标名称 spring.cloud.circuitbreaker(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。类型 timer

Metric name spring.cloud.circuitbreaker (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention). Type timer.

指标名称 spring.cloud.circuitbreaker.active(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。类型 long task timer

Metric name spring.cloud.circuitbreaker.active (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention). Type long task timer.

在 Observation 启动后添加的 KeyValues 可能会缺失于 *.active 指标。

KeyValues that are added after starting the Observation might be missing from the *.active metrics.

Micrometer 内部使用 nanoseconds 作为基本单位。但是,每个后端决定实际基本单位。(例如,Prometheus 使用秒)

Micrometer internally uses nanoseconds for the baseunit. However, each backend determines the actual baseunit. (i.e. Prometheus uses seconds)

封装类的完全限定名称 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

Fully qualified name of the enclosing class org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation.

所有标签必须以 spring.cloud.circuitbreaker 为前缀!

All tags must be prefixed with spring.cloud.circuitbreaker prefix!

Table 2. Low cardinality Keys

Name

Description

spring.cloud.circuitbreaker.type (required)

Defines the type of wrapped lambda.

Observability - Spans

Observability - Spans

下面您可以找到此项目声明的所有 span 的列表。

Below you can find a list of all spans declared by this project.

Circuit Breaker Function Observation Span

当我们将作为备用方法传递给 CircuitBreaker 的 Function 包装起来时创建此观察。

Observation created when we wrap a Function passed to the CircuitBreaker as fallback.

Span 名称 spring.cloud.circuitbreaker(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。

Span name spring.cloud.circuitbreaker (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention).

封装类的完全限定名称 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

Fully qualified name of the enclosing class org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation.

所有标签必须以 spring.cloud.circuitbreaker 为前缀!

All tags must be prefixed with spring.cloud.circuitbreaker prefix!

Table 3. Tag Keys

Name

Description

spring.cloud.circuitbreaker.type (required)

Defines the type of wrapped lambda.

Circuit Breaker Supplier Observation Span

将提供给 CircuitBreaker 的 Supplier 包装时创建的观测。

Observation created when we wrap a Supplier passed to the CircuitBreaker.

Span 名称 spring.cloud.circuitbreaker(由约定类 org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention 定义)。

Span name spring.cloud.circuitbreaker (defined by convention class org.springframework.cloud.client.circuitbreaker.observation.DefaultCircuitBreakerObservationConvention).

封装类的完全限定名称 org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation

Fully qualified name of the enclosing class org.springframework.cloud.client.circuitbreaker.observation.CircuitBreakerObservationDocumentation.

所有标签必须以 spring.cloud.circuitbreaker 为前缀!

All tags must be prefixed with spring.cloud.circuitbreaker prefix!

Table 4. Tag Keys

Name

Description

spring.cloud.circuitbreaker.type (required)

Defines the type of wrapped lambda.