Skip to main content

Tracing

This extension integrates spring-boot-starter-actuator to support distributed tracing for gRPC client and server.

Dependencies

implementation("io.github.danielliu1123:grpc-starter-tracing")

Example

Refer to tracing example.

Configurations

If you want to disable the tracing, using the following configuration:

grpc:
tracing:
enabled: false

Only disable the tracing for the client:

grpc:
tracing:
client:
enabled: false

Only disable the tracing for the server:

grpc:
tracing:
server:
enabled: false

The tracing processing is implemented through ClientInterceptor and ServerInterceptor. The order of interceptors can be customized. The default order is 0.

grpc:
tracing:
client:
order: 0
server:
order: 0