in packages/opentelemetry-cloud-trace-exporter/src/transform.ts [286:298]
function transformAttributeNames(
attributes: ot.SpanAttributes
): ot.SpanAttributes {
const out: ot.SpanAttributes = {};
for (const [key, value] of Object.entries(attributes)) {
if (HTTP_ATTRIBUTE_MAPPING[key]) {
out[HTTP_ATTRIBUTE_MAPPING[key]] = value;
} else {
out[key] = value;
}
}
return out;
}