Merge pull request #35455 from be-hase
* pr/35455: Polish "Fix invalid Zipkin Reporter back-off behavior" Fix invalid Zipkin Reporter back-off behavior Closes gh-35455
This commit is contained in:
		
						commit
						d6a1a3d71a
					
				| 
						 | 
				
			
			@ -118,7 +118,7 @@ class ZipkinConfigurations {
 | 
			
		|||
	static class ReporterConfiguration {
 | 
			
		||||
 | 
			
		||||
		@Bean
 | 
			
		||||
		@ConditionalOnMissingBean
 | 
			
		||||
		@ConditionalOnMissingBean(Reporter.class)
 | 
			
		||||
		@ConditionalOnBean(Sender.class)
 | 
			
		||||
		AsyncReporter<Span> spanReporter(Sender sender, BytesEncoder<Span> encoder) {
 | 
			
		||||
			return AsyncReporter.builder(sender).build(encoder);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,7 +56,8 @@ class ZipkinConfigurationsReporterConfigurationTests {
 | 
			
		|||
 | 
			
		||||
	@Test
 | 
			
		||||
	void shouldBackOffOnCustomBeans() {
 | 
			
		||||
		this.contextRunner.withUserConfiguration(CustomConfiguration.class).run((context) -> {
 | 
			
		||||
		this.contextRunner.withUserConfiguration(SenderConfiguration.class, CustomConfiguration.class)
 | 
			
		||||
			.run((context) -> {
 | 
			
		||||
				assertThat(context).hasBean("customReporter");
 | 
			
		||||
				assertThat(context).hasSingleBean(Reporter.class);
 | 
			
		||||
			});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue