opentracing-contrib / java-metrics

Apache License 2.0
31 stars 9 forks source link

Classpath conflicts when using Prometheus & Micrometer #25

Closed yurishkuro closed 6 years ago

yurishkuro commented 6 years ago

@objectiser I used this in a sample app for today's meetup talk, with Jaeger client and its new Micrometer plugin. I ended up having to exclude the prometheus client transitively pulled by this repo because it was conflicting with the one brought by micrometer:

        <dependency>
            <groupId>io.opentracing.contrib</groupId>
            <artifactId>opentracing-metrics-prometheus</artifactId>
            <version>0.2.0</version>
            <exclusions>
                <exclusion>
                    <groupId>io.prometheus</groupId>
                    <artifactId>simpleclient</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
objectiser commented 6 years ago

Thanks for reporting - I have been meaning to switch over to using micrometer instead of directly using prometheus.

jpkrohling commented 6 years ago

I'm closing this, as it won't be relevant once Micrometer is used instead of Prometheus.