Skip to content

Handling NaN, Infinity, -Infinity in string representation of complex attributes #14487

@trask

Description

@trask

Component(s)

pdata

Describe the issue you're reporting

Recent specification suggested string representation of complex attributes for non-OTLP protocols aligns with the Collector's pdata Value AsString, except for the representation of NaN, Infinity, and -Infinity.

I thought I could just update float64AsString but quickly realized that the bigger problem is that json.Marshal is used for maps and lists, which doesn't support these values.

And I'm not sure if it's worth replacing the usage of json.Marshal just to handle these edge cases.

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

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