function addAttributes({ transaction, functionContext }) {
  transaction.trace.attributes.addAttribute(
    DESTS.TRANS_COMMON,
    'faas.invocation_id',
    functionContext.invocationId ?? 'unknown'
  )
  transaction.trace.attributes.addAttribute(
    DESTS.TRANS_COMMON,
    'faas.name',
    functionContext.functionName ?? 'unknown'
  )
  transaction.trace.attributes.addAttribute(
    DESTS.TRANS_COMMON,
    'faas.trigger',
    mapTriggerType({ functionContext })
  )
  transaction.trace.attributes.addAttribute(
    DESTS.TRANS_COMMON,
    'cloud.resource_id',
    buildCloudResourceId({ functionContext })
  )
}
Add required New Relic attributes to the transaction.

@param {object} params Function parameters.
@param {Transaction} params.transaction The transaction to update.
@param {object} params.functionContext The function invocation context
provided by the Azure functions runtime.