You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to run the project from IDE remember to tick the default and zipkin profiles there too.
Using OpenTelemetry
Instead of using the default profile please use the otel profile. So if you want to run otel based tracing with zipkin you need to build the
application with both otel and zipkin profiles. Example:
. All projects and acceptance tests
$ ./mvnw clean install -Potel,zipkin
. Build one project
$ ./mvnw clean install -Potel,zipkin -pl task
$ # Run one app
$ java -jar task/target/task*.jar
. Run one project (example for task)
$ ./mvnw -Potel,zipkin -pl task spring-boot:run
FAQ
The logging text makes no sense
You can see logs like this
log.info("<ACCEPTANCE_TEST> <TRACE:{}> Hello from producer", tracer.currentSpan().context().traceId());
or this
log.info("<ACCEPTANCE_TEST> <TRACE:{}> Hello from consumer", tracer.currentSpan().context().traceId());
even though there is no consumer / producer...
That's because in the acceptance tests we're using conventions and we're searching for exactly those entries in the logs to see if the context got properly propagated.