Documentation ¶
Index ¶
- Variables
- type ErrorMessage
- func (*ErrorMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorMessage) GetAdditionalTags() map[string]string
- func (x *ErrorMessage) GetException() *Exception
- func (x *ErrorMessage) GetLevel() ErrorMessage_Level
- func (x *ErrorMessage) GetManufacturer() string
- func (x *ErrorMessage) GetModel() string
- func (x *ErrorMessage) GetOsVersion() string
- func (x *ErrorMessage) GetPlatform() common.DevicePlatform
- func (x *ErrorMessage) GetProguardUuid() string
- func (x *ErrorMessage) GetReleaseVersion() string
- func (x *ErrorMessage) GetTimestamp() int64
- func (x *ErrorMessage) GetTitle() string
- func (*ErrorMessage) ProtoMessage()
- func (x *ErrorMessage) ProtoReflect() protoreflect.Message
- func (x *ErrorMessage) Reset()
- func (x *ErrorMessage) String() string
- func (m *ErrorMessage) Validate() error
- func (m *ErrorMessage) ValidateAll() error
- type ErrorMessageMultiError
- type ErrorMessageValidationError
- func (e ErrorMessageValidationError) Cause() error
- func (e ErrorMessageValidationError) Error() string
- func (e ErrorMessageValidationError) ErrorName() string
- func (e ErrorMessageValidationError) Field() string
- func (e ErrorMessageValidationError) Key() bool
- func (e ErrorMessageValidationError) Reason() string
- type ErrorMessage_Level
- func (ErrorMessage_Level) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorMessage_Level) Enum() *ErrorMessage_Level
- func (ErrorMessage_Level) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorMessage_Level) Number() protoreflect.EnumNumber
- func (x ErrorMessage_Level) String() string
- func (ErrorMessage_Level) Type() protoreflect.EnumType
- type Exception
- func (*Exception) Descriptor() ([]byte, []int)deprecated
- func (x *Exception) GetStacktrace() []*Frame
- func (x *Exception) GetType() string
- func (x *Exception) GetValue() string
- func (*Exception) ProtoMessage()
- func (x *Exception) ProtoReflect() protoreflect.Message
- func (x *Exception) Reset()
- func (x *Exception) String() string
- func (m *Exception) Validate() error
- func (m *Exception) ValidateAll() error
- type ExceptionMultiError
- type ExceptionValidationError
- type Frame
- func (*Frame) Descriptor() ([]byte, []int)deprecated
- func (x *Frame) GetColNo() int32
- func (x *Frame) GetFilename() string
- func (x *Frame) GetFunction() string
- func (x *Frame) GetLineNo() int32
- func (x *Frame) GetModule() string
- func (*Frame) ProtoMessage()
- func (x *Frame) ProtoReflect() protoreflect.Message
- func (x *Frame) Reset()
- func (x *Frame) String() string
- func (m *Frame) Validate() error
- func (m *Frame) ValidateAll() error
- type FrameMultiError
- type FrameValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrorMessage_Level_name = map[int32]string{ 0: "INVALID", 1: "DEBUG", 2: "INFO", 3: "WARNING", 4: "ERROR", 5: "FATAL", } ErrorMessage_Level_value = map[string]int32{ "INVALID": 0, "DEBUG": 1, "INFO": 2, "WARNING": 3, "ERROR": 4, "FATAL": 5, } )
Enum value maps for ErrorMessage_Level.
var File_error_reporting_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ErrorMessage ¶
type ErrorMessage struct { // The title that will show up on Sentry. Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Timestamp represented in millis since epoch Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // We send one of "android", "ios" or "web". The backend converts it into // one that Sentry expects like java, objc and so on. Platform common.DevicePlatform `protobuf:"varint,3,opt,name=platform,proto3,enum=v2.common.DevicePlatform" json:"platform,omitempty"` // E.g Apple or Samsung - useful debug info. Makes it way to Sentry tags. Manufacturer string `protobuf:"bytes,4,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` // iPhone13,4 OR Pixel 3a - useful debug info. Model string `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"` // 14.4 (iOS) / 11 (Android) - useful debug info. Makes it way to Sentry tags. OsVersion string `protobuf:"bytes,6,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` // One of fatal, error, warning, info, debug. Helps send info only messages as well. Level ErrorMessage_Level `protobuf:"varint,7,opt,name=level,proto3,enum=error_reporting.ErrorMessage_Level" json:"level,omitempty"` // Determines the version of the SDK that caused the issue. ReleaseVersion string `protobuf:"bytes,8,opt,name=release_version,json=releaseVersion,proto3" json:"release_version,omitempty"` // Needed to de-obfuscate the Android stack traces. // https://develop.sentry.dev/sdk/event-payloads/debugmeta#proguard-images ProguardUuid string `protobuf:"bytes,9,opt,name=proguard_uuid,json=proguardUuid,proto3" json:"proguard_uuid,omitempty"` // Any exceptions related to this message - can be ignored for level = info // or level = debug. Exception *Exception `protobuf:"bytes,10,opt,name=exception,proto3" json:"exception,omitempty"` // A map of any extra tags the should be stored for the // error report. These will be split out as individual // tags when pushed to sentry AdditionalTags map[string]string `` /* 192-byte string literal not displayed */ // contains filtered or unexported fields }
Represents an issue that has been captured by the SDK.
The Moonsense backend converts the information contained in this message into one that is understandable by Sentry.
Note that event_id for the Sentry transaction is generated server side.
func (*ErrorMessage) Descriptor
deprecated
func (*ErrorMessage) Descriptor() ([]byte, []int)
Deprecated: Use ErrorMessage.ProtoReflect.Descriptor instead.
func (*ErrorMessage) GetAdditionalTags ¶
func (x *ErrorMessage) GetAdditionalTags() map[string]string
func (*ErrorMessage) GetException ¶
func (x *ErrorMessage) GetException() *Exception
func (*ErrorMessage) GetLevel ¶
func (x *ErrorMessage) GetLevel() ErrorMessage_Level
func (*ErrorMessage) GetManufacturer ¶
func (x *ErrorMessage) GetManufacturer() string
func (*ErrorMessage) GetModel ¶
func (x *ErrorMessage) GetModel() string
func (*ErrorMessage) GetOsVersion ¶
func (x *ErrorMessage) GetOsVersion() string
func (*ErrorMessage) GetPlatform ¶
func (x *ErrorMessage) GetPlatform() common.DevicePlatform
func (*ErrorMessage) GetProguardUuid ¶
func (x *ErrorMessage) GetProguardUuid() string
func (*ErrorMessage) GetReleaseVersion ¶
func (x *ErrorMessage) GetReleaseVersion() string
func (*ErrorMessage) GetTimestamp ¶
func (x *ErrorMessage) GetTimestamp() int64
func (*ErrorMessage) GetTitle ¶
func (x *ErrorMessage) GetTitle() string
func (*ErrorMessage) ProtoMessage ¶
func (*ErrorMessage) ProtoMessage()
func (*ErrorMessage) ProtoReflect ¶
func (x *ErrorMessage) ProtoReflect() protoreflect.Message
func (*ErrorMessage) Reset ¶
func (x *ErrorMessage) Reset()
func (*ErrorMessage) String ¶
func (x *ErrorMessage) String() string
func (*ErrorMessage) Validate ¶
func (m *ErrorMessage) Validate() error
Validate checks the field values on ErrorMessage with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ErrorMessage) ValidateAll ¶
func (m *ErrorMessage) ValidateAll() error
ValidateAll checks the field values on ErrorMessage with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ErrorMessageMultiError, or nil if none found.
type ErrorMessageMultiError ¶
type ErrorMessageMultiError []error
ErrorMessageMultiError is an error wrapping multiple validation errors returned by ErrorMessage.ValidateAll() if the designated constraints aren't met.
func (ErrorMessageMultiError) AllErrors ¶
func (m ErrorMessageMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ErrorMessageMultiError) Error ¶
func (m ErrorMessageMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ErrorMessageValidationError ¶
type ErrorMessageValidationError struct {
// contains filtered or unexported fields
}
ErrorMessageValidationError is the validation error returned by ErrorMessage.Validate if the designated constraints aren't met.
func (ErrorMessageValidationError) Cause ¶
func (e ErrorMessageValidationError) Cause() error
Cause function returns cause value.
func (ErrorMessageValidationError) Error ¶
func (e ErrorMessageValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorMessageValidationError) ErrorName ¶
func (e ErrorMessageValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorMessageValidationError) Field ¶
func (e ErrorMessageValidationError) Field() string
Field function returns field value.
func (ErrorMessageValidationError) Key ¶
func (e ErrorMessageValidationError) Key() bool
Key function returns key value.
func (ErrorMessageValidationError) Reason ¶
func (e ErrorMessageValidationError) Reason() string
Reason function returns reason value.
type ErrorMessage_Level ¶
type ErrorMessage_Level int32
const ( ErrorMessage_INVALID ErrorMessage_Level = 0 ErrorMessage_DEBUG ErrorMessage_Level = 1 ErrorMessage_INFO ErrorMessage_Level = 2 ErrorMessage_WARNING ErrorMessage_Level = 3 ErrorMessage_ERROR ErrorMessage_Level = 4 ErrorMessage_FATAL ErrorMessage_Level = 5 )
func (ErrorMessage_Level) Descriptor ¶
func (ErrorMessage_Level) Descriptor() protoreflect.EnumDescriptor
func (ErrorMessage_Level) Enum ¶
func (x ErrorMessage_Level) Enum() *ErrorMessage_Level
func (ErrorMessage_Level) EnumDescriptor
deprecated
func (ErrorMessage_Level) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorMessage_Level.Descriptor instead.
func (ErrorMessage_Level) Number ¶
func (x ErrorMessage_Level) Number() protoreflect.EnumNumber
func (ErrorMessage_Level) String ¶
func (x ErrorMessage_Level) String() string
func (ErrorMessage_Level) Type ¶
func (ErrorMessage_Level) Type() protoreflect.EnumType
type Exception ¶
type Exception struct { // For eg. "UninitializedPropertyAccessException". Maps directly to Sentry. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // For eg. "lateinit property username has not been initialized". Maps directly to Sentry. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Note that we have skipped the Sentry StackTrace object since it seems excessive for our // use case. Stacktrace []*Frame `protobuf:"bytes,3,rep,name=stacktrace,proto3" json:"stacktrace,omitempty"` // contains filtered or unexported fields }
Represents an exception that occurred on the SDK.
func (*Exception) Descriptor
deprecated
func (*Exception) GetStacktrace ¶
func (*Exception) ProtoMessage ¶
func (*Exception) ProtoMessage()
func (*Exception) ProtoReflect ¶
func (x *Exception) ProtoReflect() protoreflect.Message
func (*Exception) Validate ¶
Validate checks the field values on Exception with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Exception) ValidateAll ¶
ValidateAll checks the field values on Exception with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExceptionMultiError, or nil if none found.
type ExceptionMultiError ¶
type ExceptionMultiError []error
ExceptionMultiError is an error wrapping multiple validation errors returned by Exception.ValidateAll() if the designated constraints aren't met.
func (ExceptionMultiError) AllErrors ¶
func (m ExceptionMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ExceptionMultiError) Error ¶
func (m ExceptionMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ExceptionValidationError ¶
type ExceptionValidationError struct {
// contains filtered or unexported fields
}
ExceptionValidationError is the validation error returned by Exception.Validate if the designated constraints aren't met.
func (ExceptionValidationError) Cause ¶
func (e ExceptionValidationError) Cause() error
Cause function returns cause value.
func (ExceptionValidationError) Error ¶
func (e ExceptionValidationError) Error() string
Error satisfies the builtin error interface
func (ExceptionValidationError) ErrorName ¶
func (e ExceptionValidationError) ErrorName() string
ErrorName returns error name.
func (ExceptionValidationError) Field ¶
func (e ExceptionValidationError) Field() string
Field function returns field value.
func (ExceptionValidationError) Key ¶
func (e ExceptionValidationError) Key() bool
Key function returns key value.
func (ExceptionValidationError) Reason ¶
func (e ExceptionValidationError) Reason() string
Reason function returns reason value.
type Frame ¶
type Frame struct { // For eg. ""onCreate" Function string `protobuf:"bytes,1,opt,name=function,proto3" json:"function,omitempty"` // For eg. "io.moonsense.sdk.sample.MainActivity" Module string `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"` // For eg. "MainActivity.kt" Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` // For eg. 64, LineNo int32 `protobuf:"varint,4,opt,name=line_no,json=lineNo,proto3" json:"line_no,omitempty"` // For eg. 12 ColNo int32 `protobuf:"varint,5,opt,name=col_no,json=colNo,proto3" json:"col_no,omitempty"` // contains filtered or unexported fields }
Represents a frame in a Stacktrace. We can also probably use this same message for a thread trace in the future.
func (*Frame) Descriptor
deprecated
func (*Frame) GetFilename ¶
func (*Frame) GetFunction ¶
func (*Frame) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) ProtoReflect ¶
func (x *Frame) ProtoReflect() protoreflect.Message
func (*Frame) Validate ¶
Validate checks the field values on Frame with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Frame) ValidateAll ¶
ValidateAll checks the field values on Frame with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FrameMultiError, or nil if none found.
type FrameMultiError ¶
type FrameMultiError []error
FrameMultiError is an error wrapping multiple validation errors returned by Frame.ValidateAll() if the designated constraints aren't met.
func (FrameMultiError) AllErrors ¶
func (m FrameMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FrameMultiError) Error ¶
func (m FrameMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FrameValidationError ¶
type FrameValidationError struct {
// contains filtered or unexported fields
}
FrameValidationError is the validation error returned by Frame.Validate if the designated constraints aren't met.
func (FrameValidationError) Cause ¶
func (e FrameValidationError) Cause() error
Cause function returns cause value.
func (FrameValidationError) Error ¶
func (e FrameValidationError) Error() string
Error satisfies the builtin error interface
func (FrameValidationError) ErrorName ¶
func (e FrameValidationError) ErrorName() string
ErrorName returns error name.
func (FrameValidationError) Field ¶
func (e FrameValidationError) Field() string
Field function returns field value.
func (FrameValidationError) Key ¶
func (e FrameValidationError) Key() bool
Key function returns key value.
func (FrameValidationError) Reason ¶
func (e FrameValidationError) Reason() string
Reason function returns reason value.