From 178bcf4774eb6f6aaaeae22e1da772f94658a43a Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 11 Nov 2024 11:40:55 +0000 Subject: [PATCH] Add brief docs on server o11y --- .../src/main/antora/modules/ROOT/pages/server.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/server.adoc b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/server.adoc index 98d6458..42e22f2 100644 --- a/spring-grpc-docs/src/main/antora/modules/ROOT/pages/server.adoc +++ b/spring-grpc-docs/src/main/antora/modules/ROOT/pages/server.adoc @@ -109,3 +109,9 @@ ServerInterceptor myGlobalLoggingInterceptor() { === Per-Service This is a **WIP** and will be available soon. + +== Observability + +Spring gRPC provides an autoconfigured interceptor that can be used to provide observability to your gRPC services. +All you need to do is add Spring Boot actuators to your project, and optionally a bridge to your observability platform of choice (just like https://docs.spring.io/spring-boot/reference/actuator/observability.html[any other Spring Boot application]). +The `grpc-tomcat` sample in the Spring gRPC repository shows how to do it, and you should see trace logging and metrics when you connect to the server. \ No newline at end of file