Skip to content

DD_TAGS space separation #88

Description

@dmehala

Description

During my attempt to use nginx-datadog instead of the legacy nginx-opentracing module in system-tests. I found out dd-trace-cpp was crashing because of this odd DD_TAGS expression.

Let me save you a click (the link is here for context):

ENV DD_TAGS='key1:val1, key2 : val2 '

Investigation

I found this RFC from 2021 to support space separation in DD_TAGS.

Our implementation does not follow the recommend solution of this RFC and end up mixing spaces and commas. The result of our algorithm is:
Screenshot 2023-12-21 at 17 09 22

While it should be as follow according to the RFC:

const std::vector<StringView> tags {
   {"key1:val1"},
   {"key2 : val2"}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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