Skip to content

Can't override service using opentracing_tag #72

Closed
@sanglt

Description

@sanglt

I'm using the nginx for proxy to our microservices.

I want to using dd-opentracing-cpp as nginx plugin.

I also using the opentracing_tag "service" "service_name" to change the service name, like this documents tell:
https://github.com/opentracing/specification/blob/master/semantic_conventions.md#span-tags-table

The service name for a span, which overrides any default "service name" property defined in a tracer's config. The meaning of service should correspond to the value set in peer.service, except it is applied to the current span. This tag is meant to only be used when a tracer is reporting spans on behalf of another service (for example, a service mesh reporting on behalf of the services it is proxying, or an out-of-band reporter which reads in log files). This tag does not need to be used when reporting spans for the service the tracer is running in.

But the issue is all of tracer reports in apm-ui is only show the nginx service name (Which defined in /etc/datadog-config.json).

For example:
screen_shot_2018-12-07_at_4_50_27_pm

How can I override the service_name for some span? (We also have a plan to implement dd-trace to all sub services), but its take time and I want to implements this way first.

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions