Skip to content

Commit

Permalink
Merge pull request #645 from seckin206/follow_micrometer_tag_naming_c…
Browse files Browse the repository at this point in the history
…onvention

Correct tag names according to Micrometer's docs
  • Loading branch information
yidongnan committed May 5, 2022
2 parents 7c6cccb + ac85f65 commit 1485544
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/en/actuator.md
Expand Up @@ -59,7 +59,7 @@ Once the dependencies are added grpc-spring-boot-starter will automatically conf

- `service`: The requested grpc service name (using protobuf name)
- `method`: The requested grpc method name (using protobuf name)
- `methodType`: The type of the requested grpc method.
- `method.type`: The type of the requested grpc method.

### Timer

Expand All @@ -70,8 +70,8 @@ Once the dependencies are added grpc-spring-boot-starter will automatically conf

- `service`: The requested grpc service name (using protobuf name)
- `method`: The requested grpc method name (using protobuf name)
- `methodType`: The type of the requested grpc method.
- `statusCode`: Response `Status.Code`
- `method.type`: The type of the requested grpc method.
- `status.code`: Response `Status.Code`

### Viewing the metrics

Expand Down
6 changes: 3 additions & 3 deletions docs/zh-CN/actuator.md
Expand Up @@ -54,7 +54,7 @@ compile("org.springframework.boot:spring-boot-starter-actuator")

- `service`: 请求的 grpc 服务名称(使用 protubuf 名称)
- `method`: 请求的 grpc 方法名称(使用 protobuf 名称)
- `methodType`: 请求的 grpc 方法的类型。
- `method.type`: 请求的 grpc 方法的类型。

### 计时器

Expand All @@ -65,8 +65,8 @@ compile("org.springframework.boot:spring-boot-starter-actuator")

- `service`: 请求的 grpc 服务名称(使用 protobuf 名称)
- `method`: 请求的 grpc 方法名称(使用 protobuf 名称)
- `methodType`: 请求的 grpc 方法的类型。
- `statusCode`: 响应的 `Status.Code`
- `method.type`: 请求的 grpc 方法的类型。
- `status.code`: 响应的 `Status.Code`

### 查看指标

Expand Down
Expand Up @@ -61,11 +61,11 @@ public final class MetricConstants {
/**
* The metrics tag key that belongs to the type of the called method.
*/
public static final String TAG_METHOD_TYPE = "methodType";
public static final String TAG_METHOD_TYPE = "method.type";
/**
* The metrics tag key that belongs to the result status code.
*/
public static final String TAG_STATUS_CODE = "statusCode";
public static final String TAG_STATUS_CODE = "status.code";

private MetricConstants() {}

Expand Down

0 comments on commit 1485544

Please sign in to comment.