与和spring-cloud-feign
结合使用时遇到了一个奇怪的问题。创建了度量节点,但没有数据进入。HystrixCodaHaleMetricsPublisher
Graphite
我的配置:
@Configuration
@RequiredArgsConstructor
@EnableConfigurationProperties(ApiGatewayProperties.class)
@EnableFeignClients
public class AccountSettingsClientConfig {
private final ApiGatewayProperties apiGatewayProperties;
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor() {
return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), resource());
}
@Bean
public okhttp3.OkHttpClient okHttpClient() {
return new OkHttpClient.Builder().hostnameVerifier((s, sslSession) -> true)
.build();
}
@Bean
public AccountSettingsClientFallbackFactory accountSettingsClientFallbackFactory() {
return new AccountSettingsClientFallbackFactory();
}