Describe the bug
SummarizedSpan declares many fields as required, but the DataDog API does not return those fields for some nodes. This causes ObjectSerializer to throw an error.
At minimum, this affects at least children on leaf nodes, error, hidden_child_spans_count, meta, span_kind, metrics, parent_id
Error: missing required property 'children'
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17659:17)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17523:28)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17651:52)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17523:28)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17651:52)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17523:28)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17651:52)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17523:28)
at Function.deserialize (.../datadog-api-client-v2/models/ObjectSerializer.ts:17651:52)
To Reproduce
Steps to reproduce the behavior:
- Call getPrunedTraceByID() to download a trace where some of the attributes are missing.
Expected behavior
getPrunedTraceByID() works with what the DataDog API returns.
Environment and Versions (please complete the following information):
@datadog/datadog-api-client 1.63.0
Describe the bug
SummarizedSpan declares many fields as required, but the DataDog API does not return those fields for some nodes. This causes ObjectSerializer to throw an error.
At minimum, this affects at least
childrenon leaf nodes,error,hidden_child_spans_count,meta,span_kind,metrics,parent_idTo Reproduce
Steps to reproduce the behavior:
Expected behavior
getPrunedTraceByID() works with what the DataDog API returns.
Environment and Versions (please complete the following information):
@datadog/datadog-api-client 1.63.0