Skip to content

A sample spring reactive application to demonstrate problems with jaeger tracing library

Notifications You must be signed in to change notification settings

winster/jaeger-trace-reactive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstrate no logs in trace when using webclient

  • Step1: Start Jaeger
  • Step2: Run application and observe the logs. It will show logs as below
[   scheduling-1] c.e.demo.JaegerTraceReactiveApplication  : before task
[   scheduling-1] c.e.demo.JaegerTraceReactiveApplication  : inside getA
[   scheduling-1] c.e.demo.JaegerTraceReactiveApplication  : inside getB
[   scheduling-1] c.e.demo.JaegerTraceReactiveApplication  : after task
[ctor-http-nio-3] c.e.demo.JaegerTraceReactiveApplication  : inside api 
[ctor-http-nio-2] c.e.demo.JaegerTraceReactiveApplication  : before sending BMono
[ctor-http-nio-2] c.e.demo.JaegerTraceReactiveApplication  : inside onCompleted batest
  • Step3: Navigate to a trace and inspect the logs. Following logs are missing
    • before sending BMono
    • inside onCompleted

Optional step.

  • StepO1: Open JaegerTraceReactiveApplication.java and inspect the reactive flow
  • StepO2: Uncomment lines 42
/*.exchangeFunction(clientRequest -> Mono.just(dummyResponseToAvoidPost()))*/
  • Step)3: Restart application
  • StepO4: Navigate to a trace in Jaeger and inspect the logs. All logs are shown

Analysis

Jaeger tracing does not capture logs after webclient makes http call

About

A sample spring reactive application to demonstrate problems with jaeger tracing library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages