Versions in this module Expand all Collapse all v1 v1.4.0 Jun 19, 2024 v1.3.0 Jun 11, 2024 v1.2.0 Jun 5, 2024 v1.1.0 Apr 5, 2024 v1.0.0 Feb 7, 2024 v0 v0.1.0 Dec 14, 2022 Changes in this version + var ErrorProcessor = Processor + var LogProcessor = Processor + var MetricsetProcessor = Processor + var SpanProcessor = Processor + var TransactionProcessor = Processor + type APMEvent struct + Agent Agent + Child Child + Client Client + Cloud Cloud + Container Container + DataStream DataStream + Destination Destination + Device Device + Error *Error + Event Event + FAAS FAAS + HTTP HTTP + Host Host + Kubernetes Kubernetes + Labels Labels + Log Log + Message string + Metricset *Metricset + Network Network + NumericLabels NumericLabels + Observer Observer + Parent Parent + Process Process + Processor Processor + Service Service + Session Session + Source Source + Span *Span + Timestamp time.Time + Trace Trace + Transaction *Transaction + URL URL + User User + UserAgent UserAgent + func (e *APMEvent) MarshalFastJSON(w *fastjson.Writer) error + func (e *APMEvent) MarshalJSON() ([]byte, error) + type Agent struct + EphemeralID string + Name string + Version string + type AggregatedDuration struct + Count int + Sum time.Duration + type Batch []APMEvent + type BatchProcessor interface + ProcessBatch func(context.Context, *Batch) error + type Child struct + ID []string + type Client struct + Domain string + IP netip.Addr + Port int + type Cloud struct + AccountID string + AccountName string + AvailabilityZone string + InstanceID string + InstanceName string + MachineType string + Origin *CloudOrigin + ProjectID string + ProjectName string + Provider string + Region string + ServiceName string + type CloudOrigin struct + AccountID string + Provider string + Region string + ServiceName string + type Composite struct + CompressionStrategy string + Count int + Sum float64 + type Container struct + ID string + ImageName string + ImageTag string + Name string + Runtime string + type DB struct + Instance string + Link string + RowsAffected *int + Statement string + Type string + UserName string + type DataStream struct + Dataset string + Namespace string + Type string + type Destination struct + Address string + Port int + type DestinationService struct + Name string + Resource string + ResponseTime AggregatedDuration + Type string + type Device struct + ID string + Manufacturer string + Model DeviceModel + type DeviceModel struct + Identifier string + Name string + type DroppedSpanStats struct + DestinationServiceResource string + Duration AggregatedDuration + Outcome string + ServiceTargetName string + ServiceTargetType string + type Error struct + Culprit string + Custom map[string]any + Exception *Exception + GroupingKey string + ID string + Log *ErrorLog + Message string + StackTrace string + Type string + type ErrorLog struct + Level string + LoggerName string + Message string + ParamMessage string + Stacktrace Stacktrace + type Event struct + Action string + Dataset string + Duration time.Duration + Outcome string + Severity int64 + type Exception struct + Attributes interface{} + Cause []Exception + Code string + Handled *bool + Message string + Module string + Stacktrace Stacktrace + Type string + type FAAS struct + Coldstart *bool + Execution string + ID string + Name string + TriggerRequestID string + TriggerType string + Version string + type Framework struct + Name string + Version string + type HTTP struct + Request *HTTPRequest + Response *HTTPResponse + Version string + type HTTPRequest struct + Body interface{} + Cookies map[string]any + Env map[string]any + Headers map[string]any + ID string + Method string + Referrer string + type HTTPResponse struct + DecodedBodySize *int + EncodedBodySize *int + Finished *bool + Headers map[string]any + HeadersSent *bool + StatusCode int + TransferSize *int + type Histogram struct + Counts []int64 + Values []float64 + type Host struct + Architecture string + Hostname string + ID string + IP []netip.Addr + Name string + OS OS + Type string + type Kubernetes struct + Namespace string + NodeName string + PodName string + PodUID string + type LabelValue struct + Global bool + Value string + Values []string + type Labels map[string]LabelValue + func (l Labels) Clone() Labels + func (l Labels) Set(k string, v string) + func (l Labels) SetSlice(k string, v []string) + type Language struct + Name string + Version string + type Log struct + Level string + Logger string + Origin LogOrigin + type LogOrigin struct + File LogOriginFile + FunctionName string + type LogOriginFile struct + Line int + Name string + type LongtaskMetrics struct + Count int + Max float64 + Sum float64 + type Message struct + AgeMillis *int + Body string + Headers http.Header + QueueName string + RoutingKey string + func (m *Message) Fields() map[string]any + type MetricType string + const MetricTypeCounter + const MetricTypeGauge + const MetricTypeHistogram + const MetricTypeSummary + type Metricset struct + DocCount int64 + Name string + Samples []MetricsetSample + type MetricsetSample struct + Name string + Type MetricType + Unit string + Value float64 + type NAT struct + IP netip.Addr + type Network struct + Carrier NetworkCarrier + Connection NetworkConnection + type NetworkCarrier struct + ICC string + MCC string + MNC string + Name string + type NetworkConnection struct + Subtype string + Type string + type NumericLabelValue struct + Global bool + Value float64 + Values []float64 + type NumericLabels map[string]NumericLabelValue + func (l NumericLabels) Clone() NumericLabels + func (l NumericLabels) Set(k string, v float64) + func (l NumericLabels) SetSlice(k string, v []float64) + type OS struct + Full string + Name string + Platform string + Type string + Version string + type Observer struct + Hostname string + Name string + Type string + Version string + func (o *Observer) Fields() map[string]any + type Original struct + AbsPath string + Classname string + Colno *int + Filename string + Function string + LibraryFrame bool + Lineno *int + type Parent struct + ID string + type Process struct + Argv []string + CommandLine string + Executable string + Pid int + Ppid *int + Thread ProcessThread + Title string + type ProcessBatchFunc func(context.Context, *Batch) error + func (f ProcessBatchFunc) ProcessBatch(ctx context.Context, b *Batch) error + type ProcessThread struct + ID int + Name string + type Processor struct + Event string + Name string + type Runtime struct + Name string + Version string + type Service struct + Environment string + Framework Framework + Language Language + Name string + Node ServiceNode + Origin *ServiceOrigin + Runtime Runtime + Target *ServiceTarget + Version string + func (s *Service) Fields() map[string]any + type ServiceNode struct + Name string + type ServiceOrigin struct + ID string + Name string + Version string + type ServiceTarget struct + Name string + Type string + type Session struct + ID string + Sequence int + type Source struct + Domain string + IP netip.Addr + NAT *NAT + Port int + type Span struct + Action string + Composite *Composite + DB *DB + DestinationService *DestinationService + ID string + Kind string + Links []SpanLink + Message *Message + Name string + RepresentativeCount float64 + SelfTime AggregatedDuration + Stacktrace Stacktrace + Subtype string + Sync *bool + Type string + type SpanCount struct + Dropped *int + Started *int + type SpanLink struct + Span Span + Trace Trace + type Stacktrace []*StacktraceFrame + type StacktraceFrame struct + AbsPath string + Classname string + Colno *int + ContextLine string + ExcludeFromGrouping bool + Filename string + Function string + LibraryFrame bool + Lineno *int + Module string + Original Original + PostContext []string + PreContext []string + SourcemapError string + SourcemapUpdated bool + Vars map[string]any + type SummaryMetric struct + Count int64 + Sum float64 + type Trace struct + ID string + type Transaction struct + Custom map[string]any + DroppedSpansStats []DroppedSpanStats + DurationHistogram Histogram + DurationSummary SummaryMetric + ID string + Marks TransactionMarks + Message *Message + Name string + RepresentativeCount float64 + Result string + Root bool + Sampled bool + SpanCount SpanCount + SuccessCount SummaryMetric + Type string + UserExperience *UserExperience + type TransactionMark map[string]float64 + type TransactionMarks map[string]TransactionMark + type URL struct + Domain string + Fragment string + Full string + Original string + Path string + Port int + Query string + Scheme string + func ParseURL(original, defaultHostname, defaultScheme string) URL + type User struct + Domain string + Email string + ID string + Name string + type UserAgent struct + Name string + Original string + type UserExperience struct + CumulativeLayoutShift float64 + FirstInputDelay float64 + Longtask LongtaskMetrics + TotalBlockingTime float64 + func (u *UserExperience) Fields() map[string]any