@Test public void wingtipsRequestTracingFilter_returns_null_if_WingtipsSpringBootProperties_indicates_disabled() { WingtipsSpringBoot2WebfluxProperties props = generateProps(true, null, null, null, null, false); WingtipsSpringBoot2WebfluxConfiguration conf = new WingtipsSpringBoot2WebfluxConfiguration(props); assertThat(conf.wingtipsSpringWebfluxWebFilter()).isNull(); }
@Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) public WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter() { if (wingtipsProperties.isWingtipsDisabled()) { return null; } if (customSpringWebfluxWebFilter != null) { return null; } return WingtipsSpringWebfluxWebFilter .newBuilder() .withUserIdHeaderKeys(extractUserIdHeaderKeysAsList(wingtipsProperties)) .withTagAndNamingStrategy(extractTagAndNamingStrategy(wingtipsProperties)) .withTagAndNamingAdapter(extractTagAndNamingAdapter(wingtipsProperties)) .build(); }
WingtipsSpringBoot2WebfluxConfiguration { @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) public WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter() { if (wingtipsProperties.isWingtipsDisabled()) { return null; } if (customSpringWebfluxWebFilter != null) { return null; } return WingtipsSpringWebfluxWebFilter .newBuilder() .withUserIdHeaderKeys(extractUserIdHeaderKeysAsList(wingtipsProperties)) .withTagAndNamingStrategy(extractTagAndNamingStrategy(wingtipsProperties)) .withTagAndNamingAdapter(extractTagAndNamingAdapter(wingtipsProperties)) .build(); } }
WingtipsSpringBoot2WebfluxConfiguration { @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) public WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter() { if (wingtipsProperties.isWingtipsDisabled()) { return null; } if (customSpringWebfluxWebFilter != null) { return null; } return WingtipsSpringWebfluxWebFilter .newBuilder() .withUserIdHeaderKeys(extractUserIdHeaderKeysAsList(wingtipsProperties)) .withTagAndNamingStrategy(extractTagAndNamingStrategy(wingtipsProperties)) .withTagAndNamingAdapter(extractTagAndNamingAdapter(wingtipsProperties)) .build(); } @Autowired  WingtipsSpringBoot2WebfluxConfiguration(WingtipsSpringBoot2WebfluxProperties wingtipsProperties); }
WingtipsSpringBoot2WebfluxConfiguration { @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) public WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter() { if (wingtipsProperties.isWingtipsDisabled()) { return null; } if (customSpringWebfluxWebFilter != null) { return null; } return WingtipsSpringWebfluxWebFilter .newBuilder() .withUserIdHeaderKeys(extractUserIdHeaderKeysAsList(wingtipsProperties)) .withTagAndNamingStrategy(extractTagAndNamingStrategy(wingtipsProperties)) .withTagAndNamingAdapter(extractTagAndNamingAdapter(wingtipsProperties)) .build(); } @Autowired  WingtipsSpringBoot2WebfluxConfiguration(WingtipsSpringBoot2WebfluxProperties wingtipsProperties); @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter(); @Bean WingtipsReactorInitializer reactorInitializer(); }
WingtipsSpringBoot2WebfluxConfiguration { @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) public WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter() { if (wingtipsProperties.isWingtipsDisabled()) { return null; } if (customSpringWebfluxWebFilter != null) { return null; } return WingtipsSpringWebfluxWebFilter .newBuilder() .withUserIdHeaderKeys(extractUserIdHeaderKeysAsList(wingtipsProperties)) .withTagAndNamingStrategy(extractTagAndNamingStrategy(wingtipsProperties)) .withTagAndNamingAdapter(extractTagAndNamingAdapter(wingtipsProperties)) .build(); } @Autowired  WingtipsSpringBoot2WebfluxConfiguration(WingtipsSpringBoot2WebfluxProperties wingtipsProperties); @Bean @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE) WingtipsSpringWebfluxWebFilter wingtipsSpringWebfluxWebFilter(); @Bean WingtipsReactorInitializer reactorInitializer();  }