Skip to content

Support custom GrpcServerObservationConvention in GrpcServerObservationAutoConfiguration#390

Closed
therepanic wants to merge 1 commit intospring-projects:mainfrom
therepanic:gh-389
Closed

Support custom GrpcServerObservationConvention in GrpcServerObservationAutoConfiguration#390
therepanic wants to merge 1 commit intospring-projects:mainfrom
therepanic:gh-389

Conversation

@therepanic
Copy link
Contributor

In this commit, we make GrpcServerObservationAutoConfiguration and GrpcClientObservationAutoConfiguration consistent by supporting a custom GrpcClientObservationConvention and adding the @ConditionalOnMissingBean annotation to the
observationGrpcServerInterceptor bean.

Closes: gh-389

…onAutoConfiguration

In this commit, we make `GrpcServerObservationAutoConfiguration` and
`GrpcClientObservationAutoConfiguration` consistent by supporting a
custom `GrpcClientObservationConvention` and adding the
`@ConditionalOnMissingBean` annotation to the
`observationGrpcServerInterceptor` bean.

Closes: spring-projectsgh-389

Signed-off-by: Andrey Litvitski <andrey1010102008@gmail.com>
@GlobalServerInterceptor
ObservationGrpcServerInterceptor observationGrpcServerInterceptor(ObservationRegistry observationRegistry) {
return new ObservationGrpcServerInterceptor(observationRegistry);
@ConditionalOnMissingBean
Copy link
Contributor Author

@therepanic therepanic Mar 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets add this too like in GrpcClientAutoConfiguration

@therepanic
Copy link
Contributor Author

Closing in favor of: spring-projects/spring-boot#49730

@therepanic therepanic closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: post-spring-boot-migration Must wait until after #234 is complete

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GrpcServerObservationAutoConfiguration Bean should use custom GrpcServerObservationConvention

2 participants