Skip to content

Convert span attribute values to strings #8

@garthk

Description

@garthk

As reported in opencensus-beam/opencensus_absinthe#10:

DD: Unable to send spans, DD reported an error: 400: 'json: cannot unmarshal number into Go struct field Span.meta of type string\n'

If DataDog can't cope with numbers, I think we'd better fix that in our DataDog adapters, because it doesn't make sense to change the rest of the OpenCensus ecosystem to cast attributes to strings just in case the spans might get sent to DataDog.

Nailing it down a little:

attribute_value() = any()
opencensus Erlang typespec

AttributeValueoneofTruncatableString …int64bool_valuedouble_value
OpenCensus protocol definition

A span contains a SpanContext and allows users to record tracing events based on the data model defined here
OpenCensus specification

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