function getLinkTransformer()

in packages/opentelemetry-cloud-trace-exporter/src/transform.ts [149:161]


function getLinkTransformer(
  stringifyArrayAttributes?: boolean
): (link: ot.Link) => Link {
  return link => ({
    attributes: transformAttributes(
      link.attributes ?? {},
      stringifyArrayAttributes
    ),
    spanId: link.context.spanId,
    traceId: link.context.traceId,
    type: LinkType.UNSPECIFIED,
  });
}