v2

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMetadata

func DecodeMetadata(d decoder.Decoder, out *modelpb.APMEvent) error

DecodeMetadata decodes metadata from d, updating out.

DecodeMetadata should be used when the the stream in the decoder does not contain the `metadata` key, but only the metadata data.

func DecodeNestedError

func DecodeNestedError(d decoder.Decoder, input *modeldecoder.Input, batch *modelpb.Batch) error

DecodeNestedError decodes an error from d, appending it to batch.

DecodeNestedError should be used when the stream in the decoder contains the `error` key

func DecodeNestedLog

func DecodeNestedLog(d decoder.Decoder, input *modeldecoder.Input, batch *modelpb.Batch) error

DecodeNestedLog decodes a log event from d, appending it to batch.

DecodeNestedLog should be used when the stream in the decoder contains the `log` key

func DecodeNestedMetadata

func DecodeNestedMetadata(d decoder.Decoder, out *modelpb.APMEvent) error

DecodeNestedMetadata decodes metadata from d, updating out.

DecodeNestedMetadata should be used when the stream in the decoder contains the `metadata` key

func DecodeNestedMetricset

func DecodeNestedMetricset(d decoder.Decoder, input *modeldecoder.Input, batch *modelpb.Batch) error

DecodeNestedMetricset decodes a metricset from d, appending it to batch.

DecodeNestedMetricset should be used when the stream in the decoder contains the `metricset` key

func DecodeNestedSpan

func DecodeNestedSpan(d decoder.Decoder, input *modeldecoder.Input, batch *modelpb.Batch) error

DecodeNestedSpan decodes a span from d, appending it to batch.

DecodeNestedSpan should be used when the stream in the decoder contains the `span` key

func DecodeNestedTransaction

func DecodeNestedTransaction(d decoder.Decoder, input *modeldecoder.Input, batch *modelpb.Batch) error

DecodeNestedTransaction decodes a transaction from d, appending it to batch.

DecodeNestedTransaction should be used when the stream in the decoder contains the `transaction` key

Types

type EcsLogErrorFields

type EcsLogErrorFields struct {
	NestedStruct map[string]interface{} `json:"error" nested:"true"`
	// ErrorType represents the type of the error if the log line represents an error.
	ErrorType nullable.String `json:"error.type"`
	// ErrorMessage represents the message contained in the error if the log line
	// represents an error.
	ErrorMessage nullable.String `json:"error.message"`
	// ErrorStacktrace represents the plain text stacktrace of the error the log line
	// represents.
	ErrorStacktrace nullable.String `json:"error.stack_trace"`
}

EcsLogErrorFields holds error.* fields for supporting ECS logging format and enables parsing them in flat as well as nested notation.

func (*EcsLogErrorFields) IsSet

func (val *EcsLogErrorFields) IsSet() bool

func (*EcsLogErrorFields) Reset

func (val *EcsLogErrorFields) Reset()

type EcsLogEventFields

type EcsLogEventFields struct {
	NestedStruct map[string]interface{} `json:"event" nested:"true"`
	// ProcessThreadName represents the name of the thread.
	EventDataset nullable.String `json:"event.dataset" validate:"maxLength=1024"`
}

EcsLogEventFields holds event.* fields for supporting ECS logging format and enables parsing them in flat as well as nested notation.

func (*EcsLogEventFields) IsSet

func (val *EcsLogEventFields) IsSet() bool

func (*EcsLogEventFields) Reset

func (val *EcsLogEventFields) Reset()

type EcsLogLogFields

type EcsLogLogFields struct {
	NestedStruct map[string]interface{} `json:"log" nested:"true"`
	// Level represents the severity of the recorded log.
	Level nullable.String `json:"log.level" validate:"maxLength=1024"`
	// Logger represents the name of the used logger instance.
	Logger nullable.String `json:"log.logger" validate:"maxLength=1024"`
	// OriginFileName represents the filename containing the sourcecode where the log
	// originated.
	OriginFileName nullable.String `json:"log.origin.file.name" validate:"maxLength=1024"`
	// OriginFunction represents the function name where the log originated.
	OriginFunction nullable.String `json:"log.origin.function"`
	// OriginFileLine represents the line number in the file containing the sourcecode
	// where the log originated.
	OriginFileLine nullable.Int `json:"log.origin.file.line"`
}

EcsLogLogFields holds log.* fields for supporting ECS logging format and enables parsing them in flat as well as nested notation.

func (*EcsLogLogFields) IsSet

func (val *EcsLogLogFields) IsSet() bool

func (*EcsLogLogFields) Reset

func (val *EcsLogLogFields) Reset()

type EcsLogProcessFields

type EcsLogProcessFields struct {
	NestedStruct map[string]interface{} `json:"process" nested:"true"`
	// ProcessThreadName represents the name of the thread.
	ProcessThreadName nullable.String `json:"process.thread.name" validate:"maxLength=1024"`
}

EcsLogProcessFields holds process.* fields for supporting ECS logging format and enables parsing them in flat as well as nested notation.

func (*EcsLogProcessFields) IsSet

func (val *EcsLogProcessFields) IsSet() bool

func (*EcsLogProcessFields) Reset

func (val *EcsLogProcessFields) Reset()

type EcsLogServiceFields

type EcsLogServiceFields struct {
	NestedStruct map[string]interface{} `json:"service" nested:"true"`
	// ServiceName represents name of the service which originated the log line.
	ServiceName nullable.String `json:"service.name" validate:"maxLength=1024"`
	// ServiceVersion represents the version of the service which originated the log
	// line.
	ServiceVersion nullable.String `json:"service.version" validate:"maxLength=1024"`
	// ServiceEnvironment represents the environment the service which originated the
	// log line is running in.
	ServiceEnvironment nullable.String `json:"service.environment" validate:"maxLength=1024"`
	// ServiceNodeName represents a unique node name per host for the service which
	// originated the log line.
	ServiceNodeName nullable.String `json:"service.node.name" validate:"maxLength=1024"`
}

EcsLogServiceFields holds service.* fields for supporting ECS logging format and enables parsing them in flat as well as nested notation.

func (*EcsLogServiceFields) IsSet

func (val *EcsLogServiceFields) IsSet() bool

func (*EcsLogServiceFields) Reset

func (val *EcsLogServiceFields) Reset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL