logging

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	// Time annotation was created (epoch microsecond value)
	Timestamp safelong.SafeLong `json:"timestamp" conjure-docs:"Time annotation was created (epoch microsecond value)\n"`
	// Value encapsulated by this annotation
	Value    string   `json:"value" conjure-docs:"Value encapsulated by this annotation\n"`
	Endpoint Endpoint `json:"endpoint"`
}

A Zipkin-compatible Annotation object.

func (Annotation) MarshalYAML added in v1.2.1

func (o Annotation) MarshalYAML() (interface{}, error)

func (*Annotation) UnmarshalYAML added in v1.2.1

func (o *Annotation) UnmarshalYAML(unmarshal func(interface{}) error) error

type AuditLogV2

type AuditLogV2 struct {
	// "audit.2"
	Type string            `json:"type" conjure-docs:"\"audit.2\""`
	Time datetime.DateTime `json:"time"`
	// User id (if available). This is the most downstream caller.
	Uid *UserId `json:"uid" conjure-docs:"User id (if available). This is the most downstream caller.\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)\n"`
	// All users upstream of the user currently taking an action. The first element in this list is the uid of the most upstream caller. This list does not include the `uid`.
	OtherUids []UserId `` /* 203-byte string literal not displayed */
	// Best-effort identifier of the originating machine, e.g. an IP address, a Kubernetes node identifier,
	// or similar
	Origin *string `` /* 143-byte string literal not displayed */
	// Name of the audit event, e.g. PUT_FILE
	Name string `json:"name" conjure-docs:"Name of the audit event, e.g. PUT_FILE\n"`
	// Indicates whether the request was successful or the type of failure, e.g. ERROR or UNAUTHORIZED
	Result AuditResult `` /* 126-byte string literal not displayed */
	// The parameters known at method invocation time.
	RequestParams map[string]interface{} `json:"requestParams" conjure-docs:"The parameters known at method invocation time.\n"`
	// Information derived within a method, commonly parts of the return value.
	ResultParams map[string]interface{} `json:"resultParams" conjure-docs:"Information derived within a method, commonly parts of the return value.\n"`
}

Definition of the audit.2 format.

func (AuditLogV2) MarshalJSON

func (o AuditLogV2) MarshalJSON() ([]byte, error)

func (AuditLogV2) MarshalYAML

func (o AuditLogV2) MarshalYAML() (interface{}, error)

func (*AuditLogV2) UnmarshalJSON

func (o *AuditLogV2) UnmarshalJSON(data []byte) error

func (*AuditLogV2) UnmarshalYAML

func (o *AuditLogV2) UnmarshalYAML(unmarshal func(interface{}) error) error

type AuditResult

type AuditResult string
const (
	AuditResultSuccess      AuditResult = "SUCCESS"
	AuditResultUnauthorized AuditResult = "UNAUTHORIZED"
	AuditResultError        AuditResult = "ERROR"
	AuditResultUnknown      AuditResult = "UNKNOWN"
)

func (*AuditResult) UnmarshalText added in v1.2.1

func (e *AuditResult) UnmarshalText(data []byte) error

type BeaconLogV1

type BeaconLogV1 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// Dot-delimited name for the structure of the params block, e.g. `compass.SearchEvent.v1`
	EventType string `json:"eventType" conjure-docs:"Dot-delimited name for the structure of the params block, e.g. \"compass.SearchEvent.v1\"\n"`
	// Name of the application that created the log
	AppName string `json:"appName" conjure-docs:"Name of the application that created the log\n"`
	// Version of the application that created the log
	AppVersion string `json:"appVersion" conjure-docs:"Version of the application that created the log\n"`
	// Known-safe parameters (redaction may be used to make params knowably safe, but is not required)
	Params map[string]interface{} `` /* 126-byte string literal not displayed */
	// Browser identifier (if available)
	BrowserId *string `json:"browserId" conjure-docs:"Browser identifier (if available)\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)\n"`
	// Unredacted parameters
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unredacted parameters\n"`
}

Definition of the beacon.1 format.

func (BeaconLogV1) MarshalJSON

func (o BeaconLogV1) MarshalJSON() ([]byte, error)

func (BeaconLogV1) MarshalYAML

func (o BeaconLogV1) MarshalYAML() (interface{}, error)

func (*BeaconLogV1) UnmarshalJSON

func (o *BeaconLogV1) UnmarshalJSON(data []byte) error

func (*BeaconLogV1) UnmarshalYAML

func (o *BeaconLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type Diagnostic

type Diagnostic struct {
	// contains filtered or unexported fields
}

func NewDiagnosticFromGeneric

func NewDiagnosticFromGeneric(v GenericDiagnostic) Diagnostic

func NewDiagnosticFromThreadDump

func NewDiagnosticFromThreadDump(v ThreadDumpV1) Diagnostic

func (*Diagnostic) Accept

func (u *Diagnostic) Accept(v DiagnosticVisitor) error

func (Diagnostic) MarshalJSON

func (u Diagnostic) MarshalJSON() ([]byte, error)

func (Diagnostic) MarshalYAML

func (u Diagnostic) MarshalYAML() (interface{}, error)

func (*Diagnostic) UnmarshalJSON

func (u *Diagnostic) UnmarshalJSON(data []byte) error

func (*Diagnostic) UnmarshalYAML

func (u *Diagnostic) UnmarshalYAML(unmarshal func(interface{}) error) error

type DiagnosticLogV1

type DiagnosticLogV1 struct {
	// "diagnostic.1"
	Type string            `json:"type" conjure-docs:"\"diagnostic.1\""`
	Time datetime.DateTime `json:"time"`
	// The diagnostic being logged.
	Diagnostic Diagnostic `json:"diagnostic" conjure-docs:"The diagnostic being logged."`
	// Unredacted parameters
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unredacted parameters\n"`
}

Definition of the diagnostic.1 format.

func (DiagnosticLogV1) MarshalJSON

func (o DiagnosticLogV1) MarshalJSON() ([]byte, error)

func (DiagnosticLogV1) MarshalYAML

func (o DiagnosticLogV1) MarshalYAML() (interface{}, error)

func (*DiagnosticLogV1) UnmarshalJSON

func (o *DiagnosticLogV1) UnmarshalJSON(data []byte) error

func (*DiagnosticLogV1) UnmarshalYAML

func (o *DiagnosticLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type DiagnosticVisitor

type DiagnosticVisitor interface {
	VisitGeneric(v GenericDiagnostic) error
	VisitThreadDump(v ThreadDumpV1) error
	VisitUnknown(typeName string) error
}

type Endpoint

type Endpoint struct {
	// Name of the service that generated the annotation
	ServiceName string `json:"serviceName" conjure-docs:"Name of the service that generated the annotation\n"`
	// IPv4 address of the machine that generated this annotation (`xxx.xxx.xxx.xxx`)
	Ipv4 *string `json:"ipv4" conjure-docs:"IPv4 address of the machine that generated this annotation (\"xxx.xxx.xxx.xxx\")\n"`
	// IPv6 address of the machine that generated this annotation (standard hextet form)
	Ipv6 *string `json:"ipv6" conjure-docs:"IPv6 address of the machine that generated this annotation (standard hextet form)\n"`
}

func (Endpoint) MarshalYAML added in v1.2.1

func (o Endpoint) MarshalYAML() (interface{}, error)

func (*Endpoint) UnmarshalYAML added in v1.2.1

func (o *Endpoint) UnmarshalYAML(unmarshal func(interface{}) error) error

type EventLogV1

type EventLogV1 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// Dot-delimited name of event, e.g. `com.foundry.compass.api.Compass.http.ping.failures`
	EventName string `json:"eventName" conjure-docs:"Dot-delimited name of event, e.g. \"com.foundry.compass.api.Compass.http.ping.failures\"\n"`
	// Type of event being represented, e.g. `gauge`, `histogram`, `counter`
	EventType string `json:"eventType" conjure-docs:"Type of event being represented, e.g. \"gauge\", \"histogram\", \"counter\"\n"`
	// Observations, measurements and context associated with the event
	Values map[string]interface{} `json:"values" conjure-docs:"Observations, measurements and context associated with the event\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Unsafe metadata describing the event
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unsafe metadata describing the event\n"`
}

Definition of the event.1 format.

func (EventLogV1) MarshalJSON

func (o EventLogV1) MarshalJSON() ([]byte, error)

func (EventLogV1) MarshalYAML

func (o EventLogV1) MarshalYAML() (interface{}, error)

func (*EventLogV1) UnmarshalJSON

func (o *EventLogV1) UnmarshalJSON(data []byte) error

func (*EventLogV1) UnmarshalYAML

func (o *EventLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type EventLogV2

type EventLogV2 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// Dot-delimited name of event, e.g. `com.foundry.compass.api.Compass.http.ping.failures`
	EventName string `json:"eventName" conjure-docs:"Dot-delimited name of event, e.g. \"com.foundry.compass.api.Compass.http.ping.failures\"\n"`
	// Observations, measurements and context associated with the event
	Values map[string]interface{} `json:"values" conjure-docs:"Observations, measurements and context associated with the event\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)\n"`
	// Unsafe metadata describing the event
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unsafe metadata describing the event\n"`
	// Additional dimensions that describe the instance of the log event
	Tags map[string]string `json:"tags" conjure-docs:"Additional dimensions that describe the instance of the log event"`
}

Definition of the event.2 format.

func (EventLogV2) MarshalJSON

func (o EventLogV2) MarshalJSON() ([]byte, error)

func (EventLogV2) MarshalYAML

func (o EventLogV2) MarshalYAML() (interface{}, error)

func (*EventLogV2) UnmarshalJSON

func (o *EventLogV2) UnmarshalJSON(data []byte) error

func (*EventLogV2) UnmarshalYAML

func (o *EventLogV2) UnmarshalYAML(unmarshal func(interface{}) error) error

type GenericDiagnostic

type GenericDiagnostic struct {
	// An identifier for the type of diagnostic represented.
	DiagnosticType string `json:"diagnosticType" conjure-docs:"An identifier for the type of diagnostic represented."`
	// Observations, measurements and context associated with the diagnostic.
	Value interface{} `json:"value" conjure-docs:"Observations, measurements and context associated with the diagnostic."`
}

func (GenericDiagnostic) MarshalYAML added in v1.2.1

func (o GenericDiagnostic) MarshalYAML() (interface{}, error)

func (*GenericDiagnostic) UnmarshalYAML added in v1.2.1

func (o *GenericDiagnostic) UnmarshalYAML(unmarshal func(interface{}) error) error

type LogLevel

type LogLevel string
const (
	LogLevelFatal   LogLevel = "FATAL"
	LogLevelError   LogLevel = "ERROR"
	LogLevelWarn    LogLevel = "WARN"
	LogLevelInfo    LogLevel = "INFO"
	LogLevelDebug   LogLevel = "DEBUG"
	LogLevelTrace   LogLevel = "TRACE"
	LogLevelUnknown LogLevel = "UNKNOWN"
)

func (*LogLevel) UnmarshalText added in v1.2.1

func (e *LogLevel) UnmarshalText(data []byte) error

type MetricLogV1

type MetricLogV1 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// Dot-delimited name of metric, e.g. `com.foundry.compass.api.Compass.http.ping.failures`
	MetricName string `json:"metricName" conjure-docs:"Dot-delimited name of metric, e.g. \"com.foundry.compass.api.Compass.http.ping.failures\"\n"`
	// Type of metric being represented, e.g. `gauge`, `histogram`, `counter`
	MetricType string `json:"metricType" conjure-docs:"Type of metric being represented, e.g. \"gauge\", \"histogram\", \"counter\"\n"`
	// Observations, measurements and context associated with the metric
	Values map[string]interface{} `json:"values" conjure-docs:"Observations, measurements and context associated with the metric\n"`
	// Additional dimensions that describe the instance of the metric
	Tags map[string]string `json:"tags" conjure-docs:"Additional dimensions that describe the instance of the metric\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Unsafe metadata describing the event
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unsafe metadata describing the event\n"`
}

Definition of the metric.1 format.

func (MetricLogV1) MarshalJSON

func (o MetricLogV1) MarshalJSON() ([]byte, error)

func (MetricLogV1) MarshalYAML

func (o MetricLogV1) MarshalYAML() (interface{}, error)

func (*MetricLogV1) UnmarshalJSON

func (o *MetricLogV1) UnmarshalJSON(data []byte) error

func (*MetricLogV1) UnmarshalYAML

func (o *MetricLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type RequestLog

type RequestLog struct {
	// contains filtered or unexported fields
}

func NewRequestLogFromV1

func NewRequestLogFromV1(v RequestLogV1) RequestLog

func NewRequestLogFromV2

func NewRequestLogFromV2(v RequestLogV2) RequestLog

func (*RequestLog) Accept

func (u *RequestLog) Accept(v RequestLogVisitor) error

func (RequestLog) MarshalJSON

func (u RequestLog) MarshalJSON() ([]byte, error)

func (RequestLog) MarshalYAML

func (u RequestLog) MarshalYAML() (interface{}, error)

func (*RequestLog) UnmarshalJSON

func (u *RequestLog) UnmarshalJSON(data []byte) error

func (*RequestLog) UnmarshalYAML

func (u *RequestLog) UnmarshalYAML(unmarshal func(interface{}) error) error

type RequestLogV1

type RequestLogV1 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// HTTP method of request
	Method *string `json:"method" conjure-docs:"HTTP method of request\n"`
	// Protocol, e.g. `HTTP/1.1`, `HTTP/2`
	Protocol string `json:"protocol" conjure-docs:"Protocol, e.g. \"HTTP/1.1\", \"HTTP/2\"\n"`
	// Path of request. If templated, the unrendered path, e.g.: `/catalog/dataset/{datasetId}`, `/{rid}/paths/contents/{path:.*}`.
	Path string `` /* 157-byte string literal not displayed */
	// Known-safe path parameters
	PathParams map[string]interface{} `json:"pathParams" conjure-docs:"Known-safe path parameters\n"`
	// Known-safe query parameters
	QueryParams map[string]interface{} `json:"queryParams" conjure-docs:"Known-safe query parameters\n"`
	// Known-safe header parameters
	HeaderParams map[string]interface{} `json:"headerParams" conjure-docs:"Known-safe header parameters\n"`
	// Known-safe body parameters
	BodyParams map[string]interface{} `json:"bodyParams" conjure-docs:"Known-safe body parameters\n"`
	// HTTP status code of response
	Status int `json:"status" conjure-docs:"HTTP status code of response\n"`
	// Size of request (bytes). string to allow large numbers.
	RequestSize string `json:"requestSize" conjure-docs:"Size of request (bytes). string to allow large numbers.\n"`
	// Size of response (bytes). string to allow large numbers.
	ResponseSize string `json:"responseSize" conjure-docs:"Size of response (bytes). string to allow large numbers.\n"`
	// Amount of time spent handling request (microseconds)
	Duration int `json:"duration" conjure-docs:"Amount of time spent handling request (microseconds)\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)\n"`
	// Unredacted parameters such as path, query and header parameters
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unredacted parameters such as path, query and header parameters\n"`
}

Definition of the request.1 format.

func (RequestLogV1) MarshalJSON

func (o RequestLogV1) MarshalJSON() ([]byte, error)

func (RequestLogV1) MarshalYAML

func (o RequestLogV1) MarshalYAML() (interface{}, error)

func (*RequestLogV1) UnmarshalJSON

func (o *RequestLogV1) UnmarshalJSON(data []byte) error

func (*RequestLogV1) UnmarshalYAML

func (o *RequestLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type RequestLogV2

type RequestLogV2 struct {
	Type string            `json:"type"`
	Time datetime.DateTime `json:"time"`
	// HTTP method of request
	Method *string `json:"method" conjure-docs:"HTTP method of request\n"`
	// Protocol, e.g. `HTTP/1.1`, `HTTP/2`
	Protocol string `json:"protocol" conjure-docs:"Protocol, e.g. \"HTTP/1.1\", \"HTTP/2\"\n"`
	// Path of request. If templated, the unrendered path, e.g.: `/catalog/dataset/{datasetId}`, `/{rid}/paths/contents/{path:.*}`.
	Path string `` /* 157-byte string literal not displayed */
	// Known-safe parameters
	Params map[string]interface{} `json:"params" conjure-docs:"Known-safe parameters\n"`
	// HTTP status code of response
	Status int `json:"status" conjure-docs:"HTTP status code of response\n"`
	// Size of request (bytes)
	RequestSize safelong.SafeLong `json:"requestSize" conjure-docs:"Size of request (bytes)\n"`
	// Size of response (bytes)
	ResponseSize safelong.SafeLong `json:"responseSize" conjure-docs:"Size of response (bytes)\n"`
	// Amount of time spent handling request (microseconds)
	Duration safelong.SafeLong `json:"duration" conjure-docs:"Amount of time spent handling request (microseconds)\n"`
	// User id (if available)
	Uid *UserId `json:"uid" conjure-docs:"User id (if available)\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)\n"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)\n"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)\n"`
	// Unredacted parameters such as path, query and header parameters
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unredacted parameters such as path, query and header parameters\n"`
}

Definition of the request.2 format.

func (RequestLogV2) MarshalJSON

func (o RequestLogV2) MarshalJSON() ([]byte, error)

func (RequestLogV2) MarshalYAML

func (o RequestLogV2) MarshalYAML() (interface{}, error)

func (*RequestLogV2) UnmarshalJSON

func (o *RequestLogV2) UnmarshalJSON(data []byte) error

func (*RequestLogV2) UnmarshalYAML

func (o *RequestLogV2) UnmarshalYAML(unmarshal func(interface{}) error) error

type RequestLogVisitor

type RequestLogVisitor interface {
	VisitV1(v RequestLogV1) error
	VisitV2(v RequestLogV2) error
	VisitUnknown(typeName string) error
}

type ServiceLogV1

type ServiceLogV1 struct {
	// "service.1"
	Type string `json:"type" conjure-docs:"\"service.1\""`
	// The logger output level. One of {FATAL,ERROR,WARN,INFO,DEBUG,TRACE}.
	Level LogLevel `json:"level" conjure-docs:"The logger output level. One of {FATAL,ERROR,WARN,INFO,DEBUG,TRACE}."`
	// RFC3339Nano UTC datetime string when the log event was emitted
	Time datetime.DateTime `json:"time" conjure-docs:"RFC3339Nano UTC datetime string when the log event was emitted"`
	// Class or file name. May include line number.
	Origin *string `json:"origin" conjure-docs:"Class or file name. May include line number."`
	// Thread name
	Thread *string `json:"thread" conjure-docs:"Thread name"`
	// Log message. Palantir Java services using slf4j should not use slf4j placeholders ({}). Logs obtained from 3rd party libraries or services that use slf4j and contain slf4j placeholders will always produce `unsafeParams` with numeric indexes corresponding to the zero-indexed order of placeholders. Renderers should substitute numeric parameters from `unsafeParams` and may leave placeholders that do not match indexes as the original placeholder text.
	Message string `` /* 487-byte string literal not displayed */
	// Known-safe parameters (redaction may be used to make params knowably safe, but is not required).
	Params map[string]interface{} `json:"params" conjure-docs:"Known-safe parameters (redaction may be used to make params knowably safe, but is not required)."`
	// User id (if available).
	Uid *UserId `json:"uid" conjure-docs:"User id (if available).\n"`
	// Session id (if available)
	Sid *SessionId `json:"sid" conjure-docs:"Session id (if available)"`
	// API token id (if available)
	TokenId *TokenId `json:"tokenId" conjure-docs:"API token id (if available)"`
	// Zipkin trace id (if available)
	TraceId *TraceId `json:"traceId" conjure-docs:"Zipkin trace id (if available)"`
	// Language-specific stack trace. Content is knowably safe. Renderers should substitute named placeholders ({name}, for name as a key) with keyed value from unsafeParams and leave non-matching keys as the original placeholder text.
	Stacktrace *string `` /* 263-byte string literal not displayed */
	// Unredacted parameters
	UnsafeParams map[string]interface{} `json:"unsafeParams" conjure-docs:"Unredacted parameters"`
	// Additional dimensions that describe the instance of the log event
	Tags map[string]string `json:"tags" conjure-docs:"Additional dimensions that describe the instance of the log event"`
}

Definition of the service.1 format.

func (ServiceLogV1) MarshalJSON

func (o ServiceLogV1) MarshalJSON() ([]byte, error)

func (ServiceLogV1) MarshalYAML

func (o ServiceLogV1) MarshalYAML() (interface{}, error)

func (*ServiceLogV1) UnmarshalJSON

func (o *ServiceLogV1) UnmarshalJSON(data []byte) error

func (*ServiceLogV1) UnmarshalYAML

func (o *ServiceLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type SessionId

type SessionId string

type Span

type Span struct {
	// 16-digit hex trace identifier
	TraceId string `json:"traceId" conjure-docs:"16-digit hex trace identifier\n"`
	// 16-digit hex span identifier
	Id string `json:"id" conjure-docs:"16-digit hex span identifier\n"`
	// Name of the span (typically the operation/RPC/method name for corresponding to this span)
	Name string `json:"name" conjure-docs:"Name of the span (typically the operation/RPC/method name for corresponding to this span)\n"`
	// 16-digit hex identifer of the parent span
	ParentId *string `json:"parentId" conjure-docs:"16-digit hex identifer of the parent span\n"`
	// Timestamp of the start of this span (epoch microsecond value)
	Timestamp safelong.SafeLong `json:"timestamp" conjure-docs:"Timestamp of the start of this span (epoch microsecond value)\n"`
	// Duration of this span (microseconds)
	Duration    safelong.SafeLong `json:"duration" conjure-docs:"Duration of this span (microseconds)\n"`
	Annotations []Annotation      `json:"annotations"`
}

A Zipkin-compatible Span object.

func (Span) MarshalJSON

func (o Span) MarshalJSON() ([]byte, error)

func (Span) MarshalYAML

func (o Span) MarshalYAML() (interface{}, error)

func (*Span) UnmarshalJSON

func (o *Span) UnmarshalJSON(data []byte) error

func (*Span) UnmarshalYAML

func (o *Span) UnmarshalYAML(unmarshal func(interface{}) error) error

type StackFrameV1

type StackFrameV1 struct {
	// The address of the execution point of this stack frame. This is a string because a safelong can't represent the full 64 bit address space.
	Address *string `` /* 170-byte string literal not displayed */
	// The identifier of the procedure containing the execution point of this stack frame. This is a fully qualified method name in Java and a demangled symbol name in native code, for example. Note that procedure names may include unsafe information if a service is, for exmaple, running user-defined code. It must be safely redacted.
	Procedure *string `` /* 362-byte string literal not displayed */
	// The name of the file containing the source location of the execution point of this stack frame. Note that file names may include unsafe information if a service is, for example, running user-defined code. It must be safely redacted.
	File *string `` /* 261-byte string literal not displayed */
	// The line number of the source location of the execution point of this stack frame.
	Line *int `json:"line" conjure-docs:"The line number of the source location of the execution point of this stack frame.\n"`
	// Other frame-level information.
	Params map[string]interface{} `json:"params" conjure-docs:"Other frame-level information."`
}

func (StackFrameV1) MarshalJSON

func (o StackFrameV1) MarshalJSON() ([]byte, error)

func (StackFrameV1) MarshalYAML

func (o StackFrameV1) MarshalYAML() (interface{}, error)

func (*StackFrameV1) UnmarshalJSON

func (o *StackFrameV1) UnmarshalJSON(data []byte) error

func (*StackFrameV1) UnmarshalYAML

func (o *StackFrameV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type ThreadDumpV1

type ThreadDumpV1 struct {
	// Information about each of the threads in the thread dump. "Thread" may refer to a userland thread such as a goroutine, or an OS-level thread.
	Threads []ThreadInfoV1 `` /* 175-byte string literal not displayed */
}

func (ThreadDumpV1) MarshalJSON

func (o ThreadDumpV1) MarshalJSON() ([]byte, error)

func (ThreadDumpV1) MarshalYAML

func (o ThreadDumpV1) MarshalYAML() (interface{}, error)

func (*ThreadDumpV1) UnmarshalJSON

func (o *ThreadDumpV1) UnmarshalJSON(data []byte) error

func (*ThreadDumpV1) UnmarshalYAML

func (o *ThreadDumpV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type ThreadInfoV1

type ThreadInfoV1 struct {
	// The ID of the thread.
	Id *safelong.SafeLong `json:"id" conjure-docs:"The ID of the thread."`
	// The name of the thread. Note that thread names may include unsafe information such as the path of the HTTP request being processed. It must be safely redacted.
	Name *string `` /* 188-byte string literal not displayed */
	// A list of stack frames for the thread, ordered with the current frame first.
	StackTrace []StackFrameV1 `json:"stackTrace" conjure-docs:"A list of stack frames for the thread, ordered with the current frame first.\n"`
	// Other thread-level information.
	Params map[string]interface{} `json:"params" conjure-docs:"Other thread-level information."`
}

func (ThreadInfoV1) MarshalJSON

func (o ThreadInfoV1) MarshalJSON() ([]byte, error)

func (ThreadInfoV1) MarshalYAML

func (o ThreadInfoV1) MarshalYAML() (interface{}, error)

func (*ThreadInfoV1) UnmarshalJSON

func (o *ThreadInfoV1) UnmarshalJSON(data []byte) error

func (*ThreadInfoV1) UnmarshalYAML

func (o *ThreadInfoV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type TokenId

type TokenId string

type TraceId

type TraceId string

type TraceLogV1

type TraceLogV1 struct {
	Type         string                 `json:"type"`
	Time         datetime.DateTime      `json:"time"`
	Uid          *UserId                `json:"uid"`
	Sid          *SessionId             `json:"sid"`
	TokenId      *TokenId               `json:"tokenId"`
	UnsafeParams map[string]interface{} `json:"unsafeParams"`
	Span         Span                   `json:"span"`
}

Definition of the trace.1 format.

func (TraceLogV1) MarshalJSON

func (o TraceLogV1) MarshalJSON() ([]byte, error)

func (TraceLogV1) MarshalYAML

func (o TraceLogV1) MarshalYAML() (interface{}, error)

func (*TraceLogV1) UnmarshalJSON

func (o *TraceLogV1) UnmarshalJSON(data []byte) error

func (*TraceLogV1) UnmarshalYAML

func (o *TraceLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type UnionEventLog

type UnionEventLog struct {
	// contains filtered or unexported fields
}

Union type containing log types that are logged to event.log.

func NewUnionEventLogFromBeaconLog

func NewUnionEventLogFromBeaconLog(v BeaconLogV1) UnionEventLog

func NewUnionEventLogFromEventLog

func NewUnionEventLogFromEventLog(v EventLogV1) UnionEventLog

func NewUnionEventLogFromEventLogV2

func NewUnionEventLogFromEventLogV2(v EventLogV2) UnionEventLog

func (*UnionEventLog) Accept

func (UnionEventLog) MarshalJSON

func (u UnionEventLog) MarshalJSON() ([]byte, error)

func (UnionEventLog) MarshalYAML

func (u UnionEventLog) MarshalYAML() (interface{}, error)

func (*UnionEventLog) UnmarshalJSON

func (u *UnionEventLog) UnmarshalJSON(data []byte) error

func (*UnionEventLog) UnmarshalYAML

func (u *UnionEventLog) UnmarshalYAML(unmarshal func(interface{}) error) error

type UnionEventLogVisitor

type UnionEventLogVisitor interface {
	VisitEventLog(v EventLogV1) error
	VisitEventLogV2(v EventLogV2) error
	VisitBeaconLog(v BeaconLogV1) error
	VisitUnknown(typeName string) error
}

type UserId

type UserId string

type WrappedLogV1

type WrappedLogV1 struct {
	// "wrapped.1"
	Type    string              `json:"type" conjure-docs:"\"wrapped.1\""`
	Payload WrappedLogV1Payload `json:"payload"`
	// Artifact part of entity's maven coordinate
	EntityName    string `json:"entityName" conjure-docs:"Artifact part of entity's maven coordinate"`
	EntityVersion string `json:"entityVersion"`
}

Wraps a log entry with entity information.

func (WrappedLogV1) MarshalYAML added in v1.2.1

func (o WrappedLogV1) MarshalYAML() (interface{}, error)

func (*WrappedLogV1) UnmarshalYAML added in v1.2.1

func (o *WrappedLogV1) UnmarshalYAML(unmarshal func(interface{}) error) error

type WrappedLogV1Payload

type WrappedLogV1Payload struct {
	// contains filtered or unexported fields
}

func NewWrappedLogV1PayloadFromAuditLogV2

func NewWrappedLogV1PayloadFromAuditLogV2(v AuditLogV2) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromDiagnosticLogV1

func NewWrappedLogV1PayloadFromDiagnosticLogV1(v DiagnosticLogV1) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromEventLogV2

func NewWrappedLogV1PayloadFromEventLogV2(v EventLogV2) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromMetricLogV1

func NewWrappedLogV1PayloadFromMetricLogV1(v MetricLogV1) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromRequestLogV2

func NewWrappedLogV1PayloadFromRequestLogV2(v RequestLogV2) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromServiceLogV1

func NewWrappedLogV1PayloadFromServiceLogV1(v ServiceLogV1) WrappedLogV1Payload

func NewWrappedLogV1PayloadFromTraceLogV1

func NewWrappedLogV1PayloadFromTraceLogV1(v TraceLogV1) WrappedLogV1Payload

func (*WrappedLogV1Payload) Accept

func (WrappedLogV1Payload) MarshalJSON

func (u WrappedLogV1Payload) MarshalJSON() ([]byte, error)

func (WrappedLogV1Payload) MarshalYAML

func (u WrappedLogV1Payload) MarshalYAML() (interface{}, error)

func (*WrappedLogV1Payload) UnmarshalJSON

func (u *WrappedLogV1Payload) UnmarshalJSON(data []byte) error

func (*WrappedLogV1Payload) UnmarshalYAML

func (u *WrappedLogV1Payload) UnmarshalYAML(unmarshal func(interface{}) error) error

type WrappedLogV1PayloadVisitor

type WrappedLogV1PayloadVisitor interface {
	VisitServiceLogV1(v ServiceLogV1) error
	VisitRequestLogV2(v RequestLogV2) error
	VisitTraceLogV1(v TraceLogV1) error
	VisitEventLogV2(v EventLogV2) error
	VisitMetricLogV1(v MetricLogV1) error
	VisitAuditLogV2(v AuditLogV2) error
	VisitDiagnosticLogV1(v DiagnosticLogV1) error
	VisitUnknown(typeName string) error
}

Jump to

Keyboard shortcuts

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