Skip to content

JSON headers being truncated in span #6148

Description

@d-wire

Hey folks, we're trying to add request headers to our traces. To do that, we're adding environment variables like this

      - name: DD_TRACE_REQUEST_HEADER_TAGS
        value: <key>:<value>,<key>:<value>

However, one of our headers is JSON that looks like this

{"user_agent_ip":<value>,"user_agent":<value>}

The span tags don't seem to like JSON headers, and instead of displaying them as normal it seems to be truncating the value at the comma, so that it looks like this in the trace

{"user_agent_ip":"<value>"

Is there a way to get the trace to not truncate these JSON headers? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions