File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ repositories {
3838
3939}
4040dependencies {
41- compile 'io.github.lognet:grpc-spring-boot-starter:4.4.7 '
41+ compile 'io.github.lognet:grpc-spring-boot-starter:4.5.0 '
4242}
4343
4444
@@ -339,6 +339,18 @@ This case is covered by link:grpc-spring-boot-starter-demo/src/test/java/org/log
339339[TIP]
340340Make sure to read <<Interceptors ordering>> chapter.
341341
342+ ==== Exposing Prometheus endpoint
343+
344+ Make sure to include below dependencies :
345+
346+ ```
347+ implementation "org.springframework.boot:spring-boot-starter-actuator"
348+ implementation "io.micrometer:micrometer-registry-prometheus"
349+ implementation 'org.springframework.boot:spring-boot-starter-web'
350+ ```
351+
352+ Standard `/actuator/metrics` and `/actuator/prometheus` endpoints will render `grpc.server.calls` metrics (see demo https://github.com/LogNet/grpc-spring-boot-starter/blob/master/grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/DemoAppTest.java[here]).
353+
342354=== Spring Boot Validation support
343355
344356The starter can be auto-configured to validate request/response gRPC service messages.
Original file line number Diff line number Diff line change 11| Starter Version | gRPC versions |Spring Boot version
22| -------------------- | :-------------:| :------------------:|
3+ | [ 4.5.0] ( #version-450 ) | 1.37.0 | 2.4.5 |
34| [ 4.4.7] ( #version-447 ) | 1.37.0 | 2.4.5 |
45| [ 4.4.6] ( #version-446 ) | 1.37.0 | 2.4.5 |
56| [ 4.4.5] ( #version-445 ) | 1.36.0 | 2.4.1 |
2122
2223
2324
25+ # Version 4.5.0
26+
27+ ## :beetle : Bug Fixes
28+
29+ - How to disable Grpc Security [ #206 ] ( https://github.com/LogNet/grpc-spring-boot-starter/issues/206 )
30+ ## :hammer_and_wrench : Migration from 4.4.x
31+
32+
33+ Please use standard ` @Configuration ` instead of ` @EnableGrpcSecurity ` :
34+
35+ Before (4.4.x):
36+ ``` java
37+ @EnableGrpcSecurity
38+ public class GrpcSecurityConfiguration extends GrpcSecurityConfigurerAdapter {
39+
40+ }
41+ ```
42+ After (4.5.0) :
43+ ``` java
44+ @Configuration
45+ public class GrpcSecurityConfiguration extends GrpcSecurityConfigurerAdapter {
46+
47+ }
48+ ```
49+ or
50+
51+ ``` java
52+ @Configuration
53+ public class MyAppConfiguration {
54+ public class GrpcSecurityConfiguration extends GrpcSecurityConfigurerAdapter {
55+
56+ }
57+
58+ @Bean
59+ public GrpcSecurityConfigurerAdapter grpcConfig (){
60+ return new GrpcSecurityConfiguration ();
61+ }
62+ }
63+ ```
2464# Version 4.4.7
2565
2666## :star : New Features
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ grpcVersion=1.37.0
22springBootVersion =2.4.5
33springCloudVersion =2020.0.2
44
5- version =4.4.8-SNAPSHOT
5+ version =4.5.0
66group =io.github.lognet
77description =Spring Boot starter for Google RPC.
88gitHubUrl =https\://github.com/LogNet/grpc-spring-boot-starter
You can’t perform that action at this time.
0 commit comments