Perf Agent v0.1.5 PerfAgent.Transaction

Records information about a web transaction.

Summary

Types

The response code of the connection

t()

A Perf transaction context

Functions

Finishes a web transaction. This method should be called just after processing a web transaction. It will record the elapsed time of the transaction and the response code

Creates a new web transaction. This method should be called just before processing a web transaction

Types

status_code :: non_neg_integer

The response code of the connection.

t

A Perf transaction context.

Functions

finish(transaction, status_code)

Specs

finish(t, status_code) :: t

Finishes a web transaction. This method should be called just after processing a web transaction. It will record the elapsed time of the transaction and the response code

start(request_url, request_method, normalized_uri)

Specs

start(String.t, String.t, String.t) :: t

Creates a new web transaction. This method should be called just before processing a web transaction.