in packages/opentelemetry-cloud-trace-exporter/src/transform.ts [174:187]
function spanAttributesToGCTAttributes(
attributes: ot.SpanAttributes,
stringifyArrayAttributes?: boolean
): Attributes {
const attributeMap = transformAttributeValues(
attributes,
stringifyArrayAttributes
);
return {
attributeMap,
droppedAttributesCount:
Object.keys(attributes).length - Object.keys(attributeMap).length,
};
}