TransactionHandle

TransactionHandle

new TransactionHandle()

A light representation of a transaction instance, returned by calling API#getTransaction.

Source:

Methods

acceptDistributedTraceHeaders(@param, headers)

Parsing incoming headers for use in a distributed trace. W3C TraceContext format is preferred over the NewRelic DT format. NewRelic DT format will be used if no traceparent header is found.

Source:
Parameters:
Name Type Description
@param string

[transportType='Unknown'] - The transport type that delivered the trace.

headers object

Headers to search for supported formats. Keys must be lowercase.

end(callback)

End the transaction.

Source:
Parameters:
Name Type Description
callback function

ignore()

Mark the transaction to be ignored.

Source:

insertDistributedTraceHeaders(headers)

Inserts distributed trace headers into the provided headers map.

Source:
Parameters:
Name Type Description
headers Object

isSampled()

Return whether this Transaction is being sampled

Source: