Skip to content

How to set component_span with Rack middleware? #96

@georgeu2000

Description

@georgeu2000

We have the following config for a Sinatra App:

zipkin_config = { service_name:ENV[ '...' ],
                  service_port:settings.port,
                  sampled_as_boolean:false,
                  sample_rate: 1,
                  json_api_host: ENV[ '..' ]}
use ZipkinTracer::RackHandler, zipkin_config

The span is displayed as "post", which I guess comes from the request method. How can I set it to request method and request path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions