Skip to content

Fix Spring Boot Starter failing with lazy init#1227

Merged
trask merged 1 commit into
masterfrom
fix-spring-boot-starter-with-lazy-init
Apr 13, 2020
Merged

Fix Spring Boot Starter failing with lazy init#1227
trask merged 1 commit into
masterfrom
fix-spring-boot-starter-with-lazy-init

Conversation

@trask

@trask trask commented Apr 8, 2020

Copy link
Copy Markdown
Member

In Spring 2.2.x, adding this new flag to application.properties:

spring.main.lazy-initialization=true

causes our spring boot starter not to create and register the TelemetryChannel (because no one depends on that bean, so it is never created in "lazy" mode), and so NopTelemetryChannel is used and no telemetry is sent.

@trask trask requested a review from littleaj April 8, 2020 22:06
@trask trask merged commit d989207 into master Apr 13, 2020
@trask trask deleted the fix-spring-boot-starter-with-lazy-init branch April 13, 2020 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants