github.com/lulzWill/go-agent@v2.1.2+incompatible/attributes.go (about)

     1  package newrelic
     2  
     3  // This file contains the names of the automatically captured attributes.
     4  // Attributes are key value pairs attached to transaction events, error events,
     5  // and traced errors.  You may add your own attributes using the
     6  // Transaction.AddAttribute method (see transaction.go).
     7  //
     8  // These attribute names are exposed here to facilitate configuration.
     9  //
    10  // For more information, see:
    11  // https://docs.newrelic.com/docs/agents/manage-apm-agents/agent-metrics/agent-attributes
    12  
    13  // Attributes destined for Transaction Events and Errors:
    14  const (
    15  	// AttributeResponseCode is the response status code for a web request.
    16  	AttributeResponseCode = "httpResponseCode"
    17  	// AttributeRequestMethod is the request's method.
    18  	AttributeRequestMethod = "request.method"
    19  	// AttributeRequestAccept is the request's "Accept" header.
    20  	AttributeRequestAccept = "request.headers.accept"
    21  	// AttributeRequestContentType is the request's "Content-Type" header.
    22  	AttributeRequestContentType = "request.headers.contentType"
    23  	// AttributeRequestContentLength is the request's "Content-Length" header.
    24  	AttributeRequestContentLength = "request.headers.contentLength"
    25  	// AttributeRequestHost is the request's "Host" header.
    26  	AttributeRequestHost = "request.headers.host"
    27  	// AttributeResponseContentType is the response "Content-Type" header.
    28  	AttributeResponseContentType = "response.headers.contentType"
    29  	// AttributeResponseContentLength is the response "Content-Length" header.
    30  	AttributeResponseContentLength = "response.headers.contentLength"
    31  	// AttributeHostDisplayName contains the value of Config.HostDisplayName.
    32  	AttributeHostDisplayName = "host.displayName"
    33  )
    34  
    35  // Attributes destined for Errors:
    36  const (
    37  	// AttributeRequestUserAgent is the request's "User-Agent" header.
    38  	AttributeRequestUserAgent = "request.headers.User-Agent"
    39  	// AttributeRequestReferer is the request's "Referer" header.  Query
    40  	// string parameters are removed.
    41  	AttributeRequestReferer = "request.headers.referer"
    42  )