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
Has anyone experience with jaegertracing-client-go in WSL2?
Architecture
I've a problem here. First of all, I want to share my current development architecture.
Currently I develop an application using Golang
I used several devices to develop. Sometimes I use macbook, PC or Windows laptop
For non-macbook I'm using WSL2 to run the app
With my current code, everything is ok in Macbook
Problem raised in WSL2
I'm installing jaeger-all-in-one using docker on my raspberry pi so I can connect using that host. E.g: 192.168.100.66 , It's open all port from jaeger-all-in-one.
I've test same configuration in Python script and I executed it from WSL2 and it works without any issues.
Jaeger host: 192.168.100.66
Problem
Trace ID created by jaeger but not shown in jaeger UI
// Finish trace with additional tags data, must in deferred function
func (t *jaegerImpl) Finish(additionalTags ...map[string]interface{}) {
if t.span == nil {
return
}
defer t.span.Finish()
if additionalTags != nil && t.tags == nil {
t.tags = make(map[string]interface{})
}
for _, tag := range additionalTags {
for k, v := range tag {
t.tags[k] = v
}
}
for k, v := range t.tags {
t.span.SetTag(k, toString(v))
}
}
I tried to add time.Sleep when I call Finish statement in tracer helper, then my code become:
// Finish trace with additional tags data, must in deferred function
func (t *jaegerImpl) Finish(additionalTags ...map[string]interface{}) {
if t.span == nil {
return
}
time.Sleep(time.Second * 1)
defer t.span.Finish()
if additionalTags != nil && t.tags == nil {
t.tags = make(map[string]interface{})
}
for _, tag := range additionalTags {
for k, v := range tag {
t.tags[k] = v
}
}
for k, v := range t.tags {
t.span.SetTag(k, toString(v))
}
}
It's sent a span to jager when I add time.Sleep but not full cycle of span as I expected.
And It raised warning
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
Has anyone experience with jaegertracing-client-go in WSL2?
Architecture
I've a problem here. First of all, I want to share my current development architecture.
Jaeger host: 192.168.100.66
Problem
Trace ID created by jaeger but not shown in jaeger UI
here is the console log if the app:
when i check it out in browser:
Code
Config Function:
Initializer:
Caller:
Env:
Self Debug
I wrap
Finish
statementI tried to add
time.Sleep
when I callFinish
statement intracer
helper, then my code become:It's sent a span to jager when I add
time.Sleep
but not full cycle of span as I expected.And It raised warning
Here is the span screenshot:
Here is the span that I expect to be shown in Jaeger UI:
Questions
time.Sleep
inFinish
statement trigger a span even it's not "full-cycle"?Beta Was this translation helpful? Give feedback.
All reactions