Versions in this module Expand all Collapse all v3 v3.14.1 Jul 12, 2021 v3.14.0 Jul 12, 2021 Changes in this version + const AttributeAWSLambdaARN + const AttributeAWSLambdaColdStart + const AttributeAWSLambdaEventSourceARN + const AttributeAWSRequestID + const AttributeHostDisplayName + const AttributeMessageCorrelationID + const AttributeMessageExchangeType + const AttributeMessageQueueName + const AttributeMessageReplyTo + const AttributeMessageRoutingKey + const AttributeRequestAccept + const AttributeRequestContentLength + const AttributeRequestContentType + const AttributeRequestHost + const AttributeRequestMethod + const AttributeRequestReferer + const AttributeRequestURI + const AttributeRequestUserAgent + const AttributeRequestUserAgentDeprecated + const AttributeResponseCode + const AttributeResponseCodeDeprecated + const AttributeResponseContentLength + const AttributeResponseContentType + const DistributedTraceNewRelicHeader + const DistributedTraceW3CTraceParentHeader + const DistributedTraceW3CTraceStateHeader + const SpanAttributeAWSOperation + const SpanAttributeAWSRegion + const SpanAttributeAWSRequestID + const SpanAttributeDBCollection + const SpanAttributeDBInstance + const SpanAttributeDBStatement + const SpanAttributeErrorClass + const SpanAttributeErrorMessage + const SpanAttributeHTTPMethod + const SpanAttributeHTTPStatusCode + const SpanAttributeHTTPURL + const SpanAttributeParentAccount + const SpanAttributeParentApp + const SpanAttributeParentTransportDuration + const SpanAttributeParentTransportType + const SpanAttributeParentType + const SpanAttributePeerAddress + const SpanAttributePeerHostname + const Version + func InstrumentSQLConnector(connector driver.Connector, bld SQLDriverSegmentBuilder) driver.Connector + func InstrumentSQLDriver(d driver.Driver, bld SQLDriverSegmentBuilder) driver.Driver + func NewContext(ctx context.Context, txn *Transaction) context.Context + func NewRoundTripper(original http.RoundTripper) http.RoundTripper + func NewStackTrace() []uintptr + func RequestWithTransactionContext(req *http.Request, txn *Transaction) *http.Request + func WrapHandle(app *Application, pattern string, handler http.Handler) (string, http.Handler) + func WrapHandleFunc(app *Application, pattern string, ...) (string, func(http.ResponseWriter, *http.Request)) + type Application struct + Private interface{} + func NewApplication(opts ...ConfigOption) (*Application, error) + func (app *Application) RecordCustomEvent(eventType string, params map[string]interface{}) + func (app *Application) RecordCustomMetric(name string, value float64) + func (app *Application) Shutdown(timeout time.Duration) + func (app *Application) StartTransaction(name string) *Transaction + func (app *Application) WaitForConnection(timeout time.Duration) error + type AttributeDestinationConfig struct + Enabled bool + Exclude []string + Include []string + type BrowserTimingHeader struct + func (h *BrowserTimingHeader) WithTags() []byte + func (h *BrowserTimingHeader) WithoutTags() []byte + type Config struct + AppName string + Attributes AttributeDestinationConfig + BrowserMonitoring struct{ ... } + CrossApplicationTracer struct{ ... } + CustomInsightsEvents struct{ ... } + DatastoreTracer struct{ ... } + DistributedTracer struct{ ... } + Enabled bool + Error error + ErrorCollector struct{ ... } + Heroku struct{ ... } + HighSecurity bool + Host string + HostDisplayName string + InfiniteTracing struct{ ... } + Labels map[string]string + License string + Logger Logger + RuntimeSampler struct{ ... } + SecurityPoliciesToken string + ServerlessMode struct{ ... } + SpanEvents struct{ ... } + TransactionEvents struct{ ... } + TransactionTracer struct{ ... } + Transport http.RoundTripper + Utilization struct{ ... } + type ConfigOption func(*Config) + func ConfigAppName(appName string) ConfigOption + func ConfigDebugLogger(w io.Writer) ConfigOption + func ConfigDistributedTracerEnabled(enabled bool) ConfigOption + func ConfigEnabled(enabled bool) ConfigOption + func ConfigFromEnvironment() ConfigOption + func ConfigInfoLogger(w io.Writer) ConfigOption + func ConfigLicense(license string) ConfigOption + func ConfigLogger(l Logger) ConfigOption + type DatastoreProduct string + const DatastoreAerospike + const DatastoreCassandra + const DatastoreCouchDB + const DatastoreDerby + const DatastoreDynamoDB + const DatastoreElasticsearch + const DatastoreFirebird + const DatastoreIBMDB2 + const DatastoreInformix + const DatastoreMSSQL + const DatastoreMemcached + const DatastoreMongoDB + const DatastoreMySQL + const DatastoreNeptune + const DatastoreOracle + const DatastorePostgres + const DatastoreRedis + const DatastoreRiak + const DatastoreSQLite + const DatastoreSnowflake + const DatastoreSolr + const DatastoreTarantool + const DatastoreVoltDB + type DatastoreSegment struct + Collection string + DatabaseName string + Host string + Operation string + ParameterizedQuery string + PortPathOrID string + Product DatastoreProduct + QueryParameters map[string]interface{} + StartTime SegmentStartTime + func (s *DatastoreSegment) AddAttribute(key string, val interface{}) + func (s *DatastoreSegment) End() + type Error struct + Attributes map[string]interface{} + Class string + Message string + Stack []uintptr + func (e Error) Error() string + func (e Error) ErrorAttributes() map[string]interface{} + func (e Error) ErrorClass() string + func (e Error) StackTrace() []uintptr + type ExternalSegment struct + Host string + Library string + Procedure string + Request *http.Request + Response *http.Response + StartTime SegmentStartTime + URL string + func StartExternalSegment(txn *Transaction, request *http.Request) *ExternalSegment + func (s *ExternalSegment) AddAttribute(key string, val interface{}) + func (s *ExternalSegment) End() + func (s *ExternalSegment) SetStatusCode(code int) + type LinkingMetadata struct + EntityGUID string + EntityName string + EntityType string + Hostname string + SpanID string + TraceID string + type Logger interface + Debug func(msg string, context map[string]interface{}) + DebugEnabled func() bool + Error func(msg string, context map[string]interface{}) + Info func(msg string, context map[string]interface{}) + Warn func(msg string, context map[string]interface{}) + func NewDebugLogger(w io.Writer) Logger + func NewLogger(w io.Writer) Logger + type MessageDestinationType string + const MessageExchange + const MessageQueue + const MessageTopic + type MessageProducerSegment struct + DestinationName string + DestinationTemporary bool + DestinationType MessageDestinationType + Library string + StartTime SegmentStartTime + func (s *MessageProducerSegment) AddAttribute(key string, val interface{}) + func (s *MessageProducerSegment) End() + type SQLDriverSegmentBuilder struct + BaseSegment DatastoreSegment + ParseDSN func(segment *DatastoreSegment, dataSourceName string) + ParseQuery func(segment *DatastoreSegment, query string) + type Segment struct + Name string + StartTime SegmentStartTime + func StartSegment(txn *Transaction, name string) *Segment + func (s *Segment) AddAttribute(key string, val interface{}) + func (s *Segment) End() + type SegmentStartTime struct + func StartSegmentNow(txn *Transaction) SegmentStartTime + type TraceMetadata struct + SpanID string + TraceID string + type Transaction struct + Private interface{} + func FromContext(ctx context.Context) *Transaction + func (txn *Transaction) AcceptDistributedTraceHeaders(t TransportType, hdrs http.Header) + func (txn *Transaction) AddAttribute(key string, value interface{}) + func (txn *Transaction) Application() *Application + func (txn *Transaction) BrowserTimingHeader() *BrowserTimingHeader + func (txn *Transaction) End() + func (txn *Transaction) GetLinkingMetadata() LinkingMetadata + func (txn *Transaction) GetTraceMetadata() TraceMetadata + func (txn *Transaction) Ignore() + func (txn *Transaction) InsertDistributedTraceHeaders(hdrs http.Header) + func (txn *Transaction) IsSampled() bool + func (txn *Transaction) NewGoroutine() *Transaction + func (txn *Transaction) NoticeError(err error) + func (txn *Transaction) SetName(name string) + func (txn *Transaction) SetWebRequest(r WebRequest) + func (txn *Transaction) SetWebRequestHTTP(r *http.Request) + func (txn *Transaction) SetWebResponse(w http.ResponseWriter) http.ResponseWriter + func (txn *Transaction) StartSegment(name string) *Segment + func (txn *Transaction) StartSegmentNow() SegmentStartTime + type TransportType string + const TransportAMQP + const TransportHTTP + const TransportHTTPS + const TransportIronMQ + const TransportJMS + const TransportKafka + const TransportOther + const TransportQueue + const TransportUnknown + type WebRequest struct + Header http.Header + Host string + Method string + Transport TransportType + URL *url.URL