Skip to content

Add spring autoconfiguration for metrics and prometheus reporter#16

Merged
objectiser merged 3 commits intoopentracing-contrib:masterfrom
objectiser:spring
Aug 11, 2017
Merged

Add spring autoconfiguration for metrics and prometheus reporter#16
objectiser merged 3 commits intoopentracing-contrib:masterfrom
objectiser:spring

Conversation

@objectiser
Copy link
Copy Markdown
Contributor

@objectiser objectiser commented Aug 8, 2017

This PR contains code moved from this PR: opentracing-contrib/java-spring-cloud#15

An example of how it simplifies an example can be seen in this PR: objectiser/opentracing-prometheus-example#13

@objectiser objectiser changed the title WIP: Add spring autoconfiguration for metrics and prometheus reporter Add spring autoconfiguration for metrics and prometheus reporter Aug 11, 2017
Copy link
Copy Markdown
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from two spacing issues, LGTM (as usual, I can't judge the Spring semantics)

<artifactId>opentracing-metrics-prometheus</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing looks odd here

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you exclude it? And why are other promo deps provided? I think this should pull-in all what is needed.

<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>io.prometheus</groupId>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spacing again

Copy link
Copy Markdown
Collaborator

@pavolloffay pavolloffay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies look weird but maybe I am missing something.

<artifactId>opentracing-metrics-prometheus</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you exclude it? And why are other promo deps provided? I think this should pull-in all what is needed.


<dependency>
<groupId>io.opentracing.contrib</groupId>
<artifactId>opentracing-metrics-prometheus</artifactId>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the purpose of this artifact? There is one for prometheus so why this has some provided prometheus deps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have removed the exclusions - it was left over from when in the java-spring-cloud repo, so the autoconfigs would become active if prometheus was in the classpath.

@objectiser objectiser merged commit 296b7ed into opentracing-contrib:master Aug 11, 2017
@objectiser objectiser deleted the spring branch August 11, 2017 13:18
@objectiser
Copy link
Copy Markdown
Contributor Author

@jpkrohling @pavolloffay Thanks!

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.

3 participants