Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Conversation

@artembilan
Copy link
Contributor

@artembilan artembilan commented Sep 1, 2017

Resolves #3

With Java 8 Spring Boot auto-configure BufferCounterService which
has an inconsistency with the DefaultCounterService, where the last
one checks for the counter. prefix, but BufferCounterService just
for the counter.
This is a problem because the spring.application.name is populated as
counter-sink, therefore we don't have counter. in case of BufferCounterService.
Having that the SCDF can't get access to our counter because it reads them as
spring.metrics.counter.*

  • While Spring Boot is fixing consistency with the counter. prefix, we provide
    a workaround with an explicit setting counter. prefix in the CounterSinkConfiguration

Resolves spring-attic#3

With Java 8 Spring Boot auto-configure `BufferCounterService` which
has an inconsistency with the `DefaultCounterService`, where the last
one checks for the `counter.` prefix, but `BufferCounterService` just
for the `counter`.
This is a problem because the `spring.application.name` is populated as
`counter-sink`, therefore we don't have `counter.` in case of `BufferCounterService`.
Having that the SCDF can't get access to our counter because it reads them as
`spring.metrics.counter.*`

* While Spring Boot is fixing consistency with the `counter.` prefix, we provide
a workaround with an explicit setting `counter.` prefix in the `CounterSinkConfiguration`
@sobychacko sobychacko self-assigned this Sep 1, 2017
@sobychacko sobychacko merged commit 8fe9d92 into spring-attic:master Sep 1, 2017
@sobychacko sobychacko removed the in pr label Sep 1, 2017
@sobychacko
Copy link
Contributor

Looking good. Merged.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Running the counter-sink without a name silently fails

2 participants