Skip to content

Commit 9aaecc5

Browse files
author
Alexander Furer
committed
release 4.5.0
1 parent 36b8ca6 commit 9aaecc5

File tree

3 files changed

+54
-2
lines changed

3 files changed

+54
-2
lines changed

README.adoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ repositories {
3838
3939
}
4040
dependencies {
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]
340340
Make 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

344356
The starter can be auto-configured to validate request/response gRPC service messages.

ReleaseNotes.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
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 |
@@ -21,6 +22,45 @@
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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ grpcVersion=1.37.0
22
springBootVersion=2.4.5
33
springCloudVersion=2020.0.2
44

5-
version=4.4.8-SNAPSHOT
5+
version=4.5.0
66
group=io.github.lognet
77
description=Spring Boot starter for Google RPC.
88
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

0 commit comments

Comments
 (0)