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

HTTP method is empty and URI shows the method #34

Open
sullerandras opened this issue Mar 27, 2017 · 4 comments
Open

HTTP method is empty and URI shows the method #34

sullerandras opened this issue Mar 27, 2017 · 4 comments

Comments

@sullerandras
Copy link

I have an existing Ruby on Rails application which is using the Zipkin for tracing. I used the docker image to start the proxy application locally to send the tracing data to Stackdriver Trace.
It does work, but for some reason the "HTTP method" column remains empty on the UI and the URI shows "get" or "post" instead of the actual URI. When i click on a trace, it shows the URI as zipkin.io/http.path property.

How can configure to see the correct URI and HTTP method?

Ruby 2.3.3, zipkin-tracer gem 0.21.0, gcr.io/stackdriver-trace-docker/zipkin-collector docker image "latest" (2 months old).

Here's a screenshot of what i see on the UI:
stackdriver_trace

@denyska
Copy link
Contributor

denyska commented Mar 27, 2017 via email

@kevinmdavis
Copy link
Contributor

The "URI" field in the UI is actually showing the span name, which is mapped directly from the Zipkin span name. Looking at the code for the Ruby tracer, it looks like it sets the span name to be the HTTP method which is why you're seeing "post". We also populate the "HTTP Method" column based on the value of the "http.method" annotation, however it looks like that isn't set.

@adriancole In our data model, we typically use the URL or operation name as the span name. Is there any documentation about what values to typically expect for the Zipkin span names?

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Mar 28, 2017 via email

@sullerandras
Copy link
Author

@denyska Here is an actual span sent to the adapter:

[
    {
        "name": "post",
        "traceId": "daa4dacc668ea2a1",
        "id": "daa4dacc668ea2a1",
        "annotations": [
            {
                "value": "sr",
                "timestamp": 1490665705030831,
                "endpoint": {
                    "ipv4": "192.168.1.2",
                    "port": 443,
                    "serviceName": "[redacted]"
                }
            },
            {
                "value": "ss",
                "timestamp": 1490665705078433,
                "endpoint": {
                    "ipv4": "192.168.1.2",
                    "port": 443,
                    "serviceName": "[redacted]"
                }
            }
        ],
        "binaryAnnotations": [
            {
                "key": "http.path",
                "value": "/[redacted]",
                "endpoint": {
                    "ipv4": "192.168.1.2",
                    "port": 443,
                    "serviceName": "[redacted]"
                }
            }
        ],
        "timestamp": 1490665705030789,
        "duration": 47650,
        "debug": false
    }
]

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

4 participants