-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply wider exclusion for zipkin-reporter #362
Comments
I suspect this is because of the plugin's support for Maven-style exclusions. |
I have tried all the possible solutions to exclude zipkin, but no success. |
@deekshacse1999 Can you provide any errors? What's your setup? |
and I guess the dependency versions, which is the output of https://stackoverflow.com/a/2834352/4971476
or
you can add them here by adding a details tag to your comment:
it looks like this when github renders it: my dependencies
|
[2024-05-17 15:57:59.477] - 18904 WARNING [main] --- zipkin2.reporter.AsyncReporter$BoundedAsyncReporter: Timed out waiting for in-flight spans to send. |
tree.txt |
looks like public class Example {
public static void main(String[] args) throws Throwable {
System.out.println(Class.forName("zipkin2.reporter.AsyncReporter"));
}
} and this plugins {
id 'java'
}
repositories.mavenCentral()
dependencies {
implementation 'io.micrometer:micrometer-tracing-bridge-brave:1.2.4'
implementation 'com.google.cloud:spring-cloud-gcp-starter-trace:5.1.0'
}
tasks.register('zipkintest', JavaExec) {
it.group 'verification'
it.description 'zipkintest'
classpath(sourceSets.main.runtimeClasspath)
mainClass.set 'Example'
}
|
Okay, any help would be greatly appreciated. |
i mean the code i provided above was to illustrate my point - it is not a solution or a workaround. |
Please provide any solution, if possible |
yep the solution is to achieve a zipkin free classpath. stackoverflow, or
|
Thanks now warning for zipkin not coming, but the application still not starting, 2024-05-17 19:04:54.632] - 25596 INFO [main] --- org.apache.catalina.core.StandardService: Starting service [Tomcat] |
It seems Gradle still brings in the zipkin reporter (
io.zipkin.reporter2:zipkin-reporter
) if one depends onio.micrometer:micrometer-tracing-bridge-brave
.Reproducer:
gradle dependencies
produces the following output:Interestingly it works if
io.spring.dependency-management
plugin is used.Reported and brainstormed by @alexanderankin and @fbonander on Slack.
The text was updated successfully, but these errors were encountered: