Skip to content
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

localEndpoint is not parsed for extraction of service name #585

Closed
bandrei opened this issue Dec 5, 2017 · 7 comments
Closed

localEndpoint is not parsed for extraction of service name #585

bandrei opened this issue Dec 5, 2017 · 7 comments
Assignees

Comments

@bandrei
Copy link

bandrei commented Dec 5, 2017

The Jaeger UI seems to display unknown-service-name when the service name is being set in the localEndpoint variable of the tracing component.

This is based on the latest publicly available docker image.

For example

{"traceId":"fa305db27dbc6df6","id":"fa305db27dbc6df6","kind":"SERVER","name":"post","timestamp":1512505929381059,"duration":964935,"localEndpoint":{"serviceName":"myservice","ipv4":"127.0.0.1","port":22000},"tags":{"http.path":"/api/v2/resources/111496227"}}

image

@bandrei
Copy link
Author

bandrei commented Dec 5, 2017

actually, this might not even be a bug, I'm not sure whether localEndpoint is mentioned in the opentracing API at all. Closing it for now.

@bandrei bandrei closed this as completed Dec 5, 2017
@yurishkuro
Copy link
Member

I think it might be a bug. Are you using Python client by chance?

@yurishkuro yurishkuro reopened this Dec 5, 2017
@bandrei
Copy link
Author

bandrei commented Dec 12, 2017

Nope, I was actually using Brave from openzipkin (that's why I wasn't sure that was an actual bug). However, the interesting part is that it started working at some point and it started reporting it correctly :/ which I did not expect to happen.

@golonzovsky
Copy link

golonzovsky commented Dec 14, 2017

Have similar issue after updating to jaeger 1.0 and spring-cloud-sleuth:1.3.0.RELEASE (uses zipkin 2). Between zipkin 1 and 2 this field got renamed from lc to localEndpoint

screenshot from 2017-12-14 18-55-50

Zipkin 2:

{
  "traceId": "ef1bd9a3beda07b2",
  "id": "ef1bd9a3beda07b2",
  "name": "loadbrowsecategories",
  "timestamp": 1513273531819000,
  "duration": 1084374,
  "localEndpoint": {
    "serviceName": "user-history",
    "ipv4": "10.181.1.72",
    "port": 8080
  }
}

Zipkin 1:

{
  "traceId": "e94ab76ce82c0a20",
  "id": "e94ab76ce82c0a20",
  "name": "loadbrowsecategories",
  "timestamp": 1513273747662000,
  "duration": 893797,
  "binaryAnnotations": [
    {
      "key": "lc",
      "value": "unknown",
      "endpoint": {
        "serviceName": "user-history",
        "ipv4": "10.181.1.72",
        "port": 8080
      }
    }
  ]
}

May be related to #450

@yurishkuro
Copy link
Member

@pavolloffay want to take a look? In #518 it seems all unit tests for localEndpoint test only the IP address, not the service name.

@codefromthecrypt
Copy link

codefromthecrypt commented Dec 15, 2017 via email

@pavolloffay
Copy link
Member

I will look at it, IIRC service name is derived only from core annotations (client and server..)

pavolloffay added a commit to pavolloffay/jaeger that referenced this issue Dec 15, 2017
Fixes jaegertracing#585

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@ghost ghost assigned pavolloffay Dec 15, 2017
@ghost ghost added the review label Dec 15, 2017
pavolloffay added a commit that referenced this issue Dec 15, 2017
* Zipin add lc to keep service name

Fixes #585

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Fix review comments

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* fix fmt

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
@ghost ghost removed the review label Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants