Documentation ¶
Overview ¶
Package cat provides functionality related to the wire format of CAT headers.
Index ¶
Constants ¶
const ( NewRelicIDName = "X-Newrelic-Id" NewRelicTxnName = "X-Newrelic-Transaction" NewRelicAppDataName = "X-Newrelic-App-Data" NewRelicSyntheticsName = "X-Newrelic-Synthetics" )
These header names don't match the spec in terms of their casing, but does match what Go will give us from http.CanonicalHeaderKey(). Besides, HTTP headers are case insensitive anyway. Rejoice!
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppDataHeader ¶
type AppDataHeader struct { CrossProcessID string TransactionName string QueueTimeInSeconds float64 ResponseTimeInSeconds float64 ContentLength int64 TransactionGUID string }
AppDataHeader represents a decoded AppData header.
func (*AppDataHeader) MarshalJSON ¶
func (appData *AppDataHeader) MarshalJSON() ([]byte, error)
MarshalJSON marshalls an AppDataHeader as raw JSON.
func (*AppDataHeader) UnmarshalJSON ¶
func (appData *AppDataHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls an AppDataHeader from raw JSON.
type IDHeader ¶
IDHeader represents a decoded cross process ID header (generally encoded as a string in the form ACCOUNT#BLOB).
type SyntheticsHeader ¶
type SyntheticsHeader struct { Version int AccountID int ResourceID string JobID string MonitorID string }
SyntheticsHeader represents a decoded Synthetics header.
func (*SyntheticsHeader) UnmarshalJSON ¶
func (s *SyntheticsHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls a SyntheticsHeader from raw JSON.
type TxnDataHeader ¶
TxnDataHeader represents a decoded TxnData header.
func (*TxnDataHeader) MarshalJSON ¶
func (txnData *TxnDataHeader) MarshalJSON() ([]byte, error)
MarshalJSON marshalls a TxnDataHeader as raw JSON.
func (*TxnDataHeader) UnmarshalJSON ¶
func (txnData *TxnDataHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshalls a TxnDataHeader from raw JSON.