Documentation ¶
Index ¶
- Variables
- type AggregationTemporality
- type AttributeUnit
- func (*AttributeUnit) Descriptor() ([]byte, []int)
- func (m *AttributeUnit) GetAttributeKey() int64
- func (m *AttributeUnit) GetUnit() int64
- func (m *AttributeUnit) Marshal() (dAtA []byte, err error)
- func (m *AttributeUnit) MarshalTo(dAtA []byte) (int, error)
- func (m *AttributeUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AttributeUnit) ProtoMessage()
- func (m *AttributeUnit) Reset()
- func (m *AttributeUnit) Size() (n int)
- func (m *AttributeUnit) String() string
- func (m *AttributeUnit) Unmarshal(dAtA []byte) error
- func (m *AttributeUnit) XXX_DiscardUnknown()
- func (m *AttributeUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AttributeUnit) XXX_Merge(src proto.Message)
- func (m *AttributeUnit) XXX_Size() int
- func (m *AttributeUnit) XXX_Unmarshal(b []byte) error
- type BuildIdKind
- type Function
- func (*Function) Descriptor() ([]byte, []int)
- func (m *Function) GetFilename() int64
- func (m *Function) GetId() uint64
- func (m *Function) GetName() int64
- func (m *Function) GetStartLine() int64
- func (m *Function) GetSystemName() int64
- func (m *Function) Marshal() (dAtA []byte, err error)
- func (m *Function) MarshalTo(dAtA []byte) (int, error)
- func (m *Function) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Function) ProtoMessage()
- func (m *Function) Reset()
- func (m *Function) Size() (n int)
- func (m *Function) String() string
- func (m *Function) Unmarshal(dAtA []byte) error
- func (m *Function) XXX_DiscardUnknown()
- func (m *Function) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Function) XXX_Merge(src proto.Message)
- func (m *Function) XXX_Size() int
- func (m *Function) XXX_Unmarshal(b []byte) error
- type Label
- func (*Label) Descriptor() ([]byte, []int)
- func (m *Label) GetKey() int64
- func (m *Label) GetNum() int64
- func (m *Label) GetNumUnit() int64
- func (m *Label) GetStr() int64
- func (m *Label) Marshal() (dAtA []byte, err error)
- func (m *Label) MarshalTo(dAtA []byte) (int, error)
- func (m *Label) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Label) ProtoMessage()
- func (m *Label) Reset()
- func (m *Label) Size() (n int)
- func (m *Label) String() string
- func (m *Label) Unmarshal(dAtA []byte) error
- func (m *Label) XXX_DiscardUnknown()
- func (m *Label) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Label) XXX_Merge(src proto.Message)
- func (m *Label) XXX_Size() int
- func (m *Label) XXX_Unmarshal(b []byte) error
- type Line
- func (*Line) Descriptor() ([]byte, []int)
- func (m *Line) GetColumn() int64
- func (m *Line) GetFunctionIndex() uint64
- func (m *Line) GetLine() int64
- func (m *Line) Marshal() (dAtA []byte, err error)
- func (m *Line) MarshalTo(dAtA []byte) (int, error)
- func (m *Line) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Line) ProtoMessage()
- func (m *Line) Reset()
- func (m *Line) Size() (n int)
- func (m *Line) String() string
- func (m *Line) Unmarshal(dAtA []byte) error
- func (m *Line) XXX_DiscardUnknown()
- func (m *Line) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Line) XXX_Merge(src proto.Message)
- func (m *Line) XXX_Size() int
- func (m *Line) XXX_Unmarshal(b []byte) error
- type Link
- func (*Link) Descriptor() ([]byte, []int)
- func (m *Link) Marshal() (dAtA []byte, err error)
- func (m *Link) MarshalTo(dAtA []byte) (int, error)
- func (m *Link) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Link) ProtoMessage()
- func (m *Link) Reset()
- func (m *Link) Size() (n int)
- func (m *Link) String() string
- func (m *Link) Unmarshal(dAtA []byte) error
- func (m *Link) XXX_DiscardUnknown()
- func (m *Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Link) XXX_Merge(src proto.Message)
- func (m *Link) XXX_Size() int
- func (m *Link) XXX_Unmarshal(b []byte) error
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (m *Location) GetAddress() uint64
- func (m *Location) GetAttributes() []uint64
- func (m *Location) GetId() uint64
- func (m *Location) GetIsFolded() bool
- func (m *Location) GetLine() []Line
- func (m *Location) GetMappingIndex() uint64
- func (m *Location) GetTypeIndex() uint32
- func (m *Location) Marshal() (dAtA []byte, err error)
- func (m *Location) MarshalTo(dAtA []byte) (int, error)
- func (m *Location) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Location) ProtoMessage()
- func (m *Location) Reset()
- func (m *Location) Size() (n int)
- func (m *Location) String() string
- func (m *Location) Unmarshal(dAtA []byte) error
- func (m *Location) XXX_DiscardUnknown()
- func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Location) XXX_Merge(src proto.Message)
- func (m *Location) XXX_Size() int
- func (m *Location) XXX_Unmarshal(b []byte) error
- type Mapping
- func (*Mapping) Descriptor() ([]byte, []int)
- func (m *Mapping) GetAttributes() []uint64
- func (m *Mapping) GetBuildId() int64
- func (m *Mapping) GetBuildIdKind() BuildIdKind
- func (m *Mapping) GetFileOffset() uint64
- func (m *Mapping) GetFilename() int64
- func (m *Mapping) GetHasFilenames() bool
- func (m *Mapping) GetHasFunctions() bool
- func (m *Mapping) GetHasInlineFrames() bool
- func (m *Mapping) GetHasLineNumbers() bool
- func (m *Mapping) GetId() uint64
- func (m *Mapping) GetMemoryLimit() uint64
- func (m *Mapping) GetMemoryStart() uint64
- func (m *Mapping) Marshal() (dAtA []byte, err error)
- func (m *Mapping) MarshalTo(dAtA []byte) (int, error)
- func (m *Mapping) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Mapping) ProtoMessage()
- func (m *Mapping) Reset()
- func (m *Mapping) Size() (n int)
- func (m *Mapping) String() string
- func (m *Mapping) Unmarshal(dAtA []byte) error
- func (m *Mapping) XXX_DiscardUnknown()
- func (m *Mapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Mapping) XXX_Merge(src proto.Message)
- func (m *Mapping) XXX_Size() int
- func (m *Mapping) XXX_Unmarshal(b []byte) error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (m *Profile) GetAttributeTable() []v1.KeyValue
- func (m *Profile) GetAttributeUnits() []AttributeUnit
- func (m *Profile) GetComment() []int64
- func (m *Profile) GetDefaultSampleType() int64
- func (m *Profile) GetDropFrames() int64
- func (m *Profile) GetDurationNanos() int64
- func (m *Profile) GetFunction() []Function
- func (m *Profile) GetKeepFrames() int64
- func (m *Profile) GetLinkTable() []Link
- func (m *Profile) GetLocation() []Location
- func (m *Profile) GetLocationIndices() []int64
- func (m *Profile) GetMapping() []Mapping
- func (m *Profile) GetPeriod() int64
- func (m *Profile) GetPeriodType() ValueType
- func (m *Profile) GetSample() []Sample
- func (m *Profile) GetSampleType() []ValueType
- func (m *Profile) GetStringTable() []string
- func (m *Profile) GetTimeNanos() int64
- func (m *Profile) Marshal() (dAtA []byte, err error)
- func (m *Profile) MarshalTo(dAtA []byte) (int, error)
- func (m *Profile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (m *Profile) Size() (n int)
- func (m *Profile) String() string
- func (m *Profile) Unmarshal(dAtA []byte) error
- func (m *Profile) XXX_DiscardUnknown()
- func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Profile) XXX_Merge(src proto.Message)
- func (m *Profile) XXX_Size() int
- func (m *Profile) XXX_Unmarshal(b []byte) error
- type ProfileContainer
- func (*ProfileContainer) Descriptor() ([]byte, []int)
- func (m *ProfileContainer) GetAttributes() []v11.KeyValue
- func (m *ProfileContainer) GetDroppedAttributesCount() uint32
- func (m *ProfileContainer) GetEndTimeUnixNano() uint64
- func (m *ProfileContainer) GetOriginalPayload() []byte
- func (m *ProfileContainer) GetOriginalPayloadFormat() string
- func (m *ProfileContainer) GetProfile() Profile
- func (m *ProfileContainer) GetProfileId() []byte
- func (m *ProfileContainer) GetStartTimeUnixNano() uint64
- func (m *ProfileContainer) Marshal() (dAtA []byte, err error)
- func (m *ProfileContainer) MarshalTo(dAtA []byte) (int, error)
- func (m *ProfileContainer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProfileContainer) ProtoMessage()
- func (m *ProfileContainer) Reset()
- func (m *ProfileContainer) Size() (n int)
- func (m *ProfileContainer) String() string
- func (m *ProfileContainer) Unmarshal(dAtA []byte) error
- func (m *ProfileContainer) XXX_DiscardUnknown()
- func (m *ProfileContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProfileContainer) XXX_Merge(src proto.Message)
- func (m *ProfileContainer) XXX_Size() int
- func (m *ProfileContainer) XXX_Unmarshal(b []byte) error
- type ProfilesData
- func (*ProfilesData) Descriptor() ([]byte, []int)
- func (m *ProfilesData) GetResourceProfiles() []*ResourceProfiles
- func (m *ProfilesData) Marshal() (dAtA []byte, err error)
- func (m *ProfilesData) MarshalTo(dAtA []byte) (int, error)
- func (m *ProfilesData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProfilesData) ProtoMessage()
- func (m *ProfilesData) Reset()
- func (m *ProfilesData) Size() (n int)
- func (m *ProfilesData) String() string
- func (m *ProfilesData) Unmarshal(dAtA []byte) error
- func (m *ProfilesData) XXX_DiscardUnknown()
- func (m *ProfilesData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProfilesData) XXX_Merge(src proto.Message)
- func (m *ProfilesData) XXX_Size() int
- func (m *ProfilesData) XXX_Unmarshal(b []byte) error
- type ResourceProfiles
- func (*ResourceProfiles) Descriptor() ([]byte, []int)
- func (m *ResourceProfiles) GetResource() v1.Resource
- func (m *ResourceProfiles) GetSchemaUrl() string
- func (m *ResourceProfiles) GetScopeProfiles() []*ScopeProfiles
- func (m *ResourceProfiles) Marshal() (dAtA []byte, err error)
- func (m *ResourceProfiles) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceProfiles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceProfiles) ProtoMessage()
- func (m *ResourceProfiles) Reset()
- func (m *ResourceProfiles) Size() (n int)
- func (m *ResourceProfiles) String() string
- func (m *ResourceProfiles) Unmarshal(dAtA []byte) error
- func (m *ResourceProfiles) XXX_DiscardUnknown()
- func (m *ResourceProfiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceProfiles) XXX_Merge(src proto.Message)
- func (m *ResourceProfiles) XXX_Size() int
- func (m *ResourceProfiles) XXX_Unmarshal(b []byte) error
- type Sample
- func (*Sample) Descriptor() ([]byte, []int)
- func (m *Sample) GetAttributes() []uint64
- func (m *Sample) GetLabel() []Label
- func (m *Sample) GetLink() uint64
- func (m *Sample) GetLocationIndex() []uint64
- func (m *Sample) GetLocationsLength() uint64
- func (m *Sample) GetLocationsStartIndex() uint64
- func (m *Sample) GetStacktraceIdIndex() uint32
- func (m *Sample) GetTimestampsUnixNano() []uint64
- func (m *Sample) GetValue() []int64
- func (m *Sample) Marshal() (dAtA []byte, err error)
- func (m *Sample) MarshalTo(dAtA []byte) (int, error)
- func (m *Sample) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Sample) ProtoMessage()
- func (m *Sample) Reset()
- func (m *Sample) Size() (n int)
- func (m *Sample) String() string
- func (m *Sample) Unmarshal(dAtA []byte) error
- func (m *Sample) XXX_DiscardUnknown()
- func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Sample) XXX_Merge(src proto.Message)
- func (m *Sample) XXX_Size() int
- func (m *Sample) XXX_Unmarshal(b []byte) error
- type ScopeProfiles
- func (*ScopeProfiles) Descriptor() ([]byte, []int)
- func (m *ScopeProfiles) GetProfiles() []*ProfileContainer
- func (m *ScopeProfiles) GetSchemaUrl() string
- func (m *ScopeProfiles) GetScope() v11.InstrumentationScope
- func (m *ScopeProfiles) Marshal() (dAtA []byte, err error)
- func (m *ScopeProfiles) MarshalTo(dAtA []byte) (int, error)
- func (m *ScopeProfiles) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ScopeProfiles) ProtoMessage()
- func (m *ScopeProfiles) Reset()
- func (m *ScopeProfiles) Size() (n int)
- func (m *ScopeProfiles) String() string
- func (m *ScopeProfiles) Unmarshal(dAtA []byte) error
- func (m *ScopeProfiles) XXX_DiscardUnknown()
- func (m *ScopeProfiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ScopeProfiles) XXX_Merge(src proto.Message)
- func (m *ScopeProfiles) XXX_Size() int
- func (m *ScopeProfiles) XXX_Unmarshal(b []byte) error
- type ValueType
- func (*ValueType) Descriptor() ([]byte, []int)
- func (m *ValueType) GetAggregationTemporality() AggregationTemporality
- func (m *ValueType) GetType() int64
- func (m *ValueType) GetUnit() int64
- func (m *ValueType) Marshal() (dAtA []byte, err error)
- func (m *ValueType) MarshalTo(dAtA []byte) (int, error)
- func (m *ValueType) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValueType) ProtoMessage()
- func (m *ValueType) Reset()
- func (m *ValueType) Size() (n int)
- func (m *ValueType) String() string
- func (m *ValueType) Unmarshal(dAtA []byte) error
- func (m *ValueType) XXX_DiscardUnknown()
- func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValueType) XXX_Merge(src proto.Message)
- func (m *ValueType) XXX_Size() int
- func (m *ValueType) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthPprofextended = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPprofextended = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPprofextended = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthProfiles = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowProfiles = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupProfiles = fmt.Errorf("proto: unexpected end of group") )
var AggregationTemporality_name = map[int32]string{
0: "AGGREGATION_TEMPORALITY_UNSPECIFIED",
1: "AGGREGATION_TEMPORALITY_DELTA",
2: "AGGREGATION_TEMPORALITY_CUMULATIVE",
}
var AggregationTemporality_value = map[string]int32{
"AGGREGATION_TEMPORALITY_UNSPECIFIED": 0,
"AGGREGATION_TEMPORALITY_DELTA": 1,
"AGGREGATION_TEMPORALITY_CUMULATIVE": 2,
}
var BuildIdKind_name = map[int32]string{
0: "BUILD_ID_LINKER",
1: "BUILD_ID_BINARY_HASH",
}
var BuildIdKind_value = map[string]int32{
"BUILD_ID_LINKER": 0,
"BUILD_ID_BINARY_HASH": 1,
}
Functions ¶
This section is empty.
Types ¶
type AggregationTemporality ¶
type AggregationTemporality int32
Specifies the method of aggregating metric values, either DELTA (change since last report) or CUMULATIVE (total since a fixed start time).
const ( // UNSPECIFIED is the default AggregationTemporality, it MUST not be used. AggregationTemporality_AGGREGATION_TEMPORALITY_UNSPECIFIED AggregationTemporality = 0 //* DELTA is an AggregationTemporality for a profiler which reports //changes since last report time. Successive metrics contain aggregation of //values from continuous and non-overlapping intervals. // //The values for a DELTA metric are based only on the time interval //associated with one measurement cycle. There is no dependency on //previous measurements like is the case for CUMULATIVE metrics. // //For example, consider a system measuring the number of requests that //it receives and reports the sum of these requests every second as a //DELTA metric: // //1. The system starts receiving at time=t_0. //2. A request is received, the system measures 1 request. //3. A request is received, the system measures 1 request. //4. A request is received, the system measures 1 request. //5. The 1 second collection cycle ends. A metric is exported for the //number of requests received over the interval of time t_0 to //t_0+1 with a value of 3. //6. A request is received, the system measures 1 request. //7. A request is received, the system measures 1 request. //8. The 1 second collection cycle ends. A metric is exported for the //number of requests received over the interval of time t_0+1 to //t_0+2 with a value of 2. AggregationTemporality_AGGREGATION_TEMPORALITY_DELTA AggregationTemporality = 1 //* CUMULATIVE is an AggregationTemporality for a profiler which //reports changes since a fixed start time. This means that current values //of a CUMULATIVE metric depend on all previous measurements since the //start time. Because of this, the sender is required to retain this state //in some form. If this state is lost or invalidated, the CUMULATIVE metric //values MUST be reset and a new fixed start time following the last //reported measurement time sent MUST be used. // //For example, consider a system measuring the number of requests that //it receives and reports the sum of these requests every second as a //CUMULATIVE metric: // //1. The system starts receiving at time=t_0. //2. A request is received, the system measures 1 request. //3. A request is received, the system measures 1 request. //4. A request is received, the system measures 1 request. //5. The 1 second collection cycle ends. A metric is exported for the //number of requests received over the interval of time t_0 to //t_0+1 with a value of 3. //6. A request is received, the system measures 1 request. //7. A request is received, the system measures 1 request. //8. The 1 second collection cycle ends. A metric is exported for the //number of requests received over the interval of time t_0 to //t_0+2 with a value of 5. //9. The system experiences a fault and loses state. //10. The system recovers and resumes receiving at time=t_1. //11. A request is received, the system measures 1 request. //12. The 1 second collection cycle ends. A metric is exported for the //number of requests received over the interval of time t_1 to //t_0+1 with a value of 1. // //Note: Even though, when reporting changes since last report time, using //CUMULATIVE is valid, it is not recommended. AggregationTemporality_AGGREGATION_TEMPORALITY_CUMULATIVE AggregationTemporality = 2 )
func (AggregationTemporality) EnumDescriptor ¶
func (AggregationTemporality) EnumDescriptor() ([]byte, []int)
func (AggregationTemporality) String ¶
func (x AggregationTemporality) String() string
type AttributeUnit ¶
type AttributeUnit struct { // Index into string table. AttributeKey int64 `protobuf:"varint,1,opt,name=attribute_key,json=attributeKey,proto3" json:"attribute_key,omitempty"` // Index into string table. Unit int64 `protobuf:"varint,2,opt,name=unit,proto3" json:"unit,omitempty"` }
Represents a mapping between Attribute Keys and Units.
func (*AttributeUnit) Descriptor ¶
func (*AttributeUnit) Descriptor() ([]byte, []int)
func (*AttributeUnit) GetAttributeKey ¶
func (m *AttributeUnit) GetAttributeKey() int64
func (*AttributeUnit) GetUnit ¶
func (m *AttributeUnit) GetUnit() int64
func (*AttributeUnit) Marshal ¶
func (m *AttributeUnit) Marshal() (dAtA []byte, err error)
func (*AttributeUnit) MarshalToSizedBuffer ¶
func (m *AttributeUnit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AttributeUnit) ProtoMessage ¶
func (*AttributeUnit) ProtoMessage()
func (*AttributeUnit) Reset ¶
func (m *AttributeUnit) Reset()
func (*AttributeUnit) Size ¶
func (m *AttributeUnit) Size() (n int)
func (*AttributeUnit) String ¶
func (m *AttributeUnit) String() string
func (*AttributeUnit) Unmarshal ¶
func (m *AttributeUnit) Unmarshal(dAtA []byte) error
func (*AttributeUnit) XXX_DiscardUnknown ¶
func (m *AttributeUnit) XXX_DiscardUnknown()
func (*AttributeUnit) XXX_Marshal ¶
func (m *AttributeUnit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AttributeUnit) XXX_Merge ¶
func (m *AttributeUnit) XXX_Merge(src proto.Message)
func (*AttributeUnit) XXX_Size ¶
func (m *AttributeUnit) XXX_Size() int
func (*AttributeUnit) XXX_Unmarshal ¶
func (m *AttributeUnit) XXX_Unmarshal(b []byte) error
type BuildIdKind ¶
type BuildIdKind int32
Indicates the semantics of the build_id field.
const ( // Linker-generated build ID, stored in the ELF binary notes. BuildIdKind_BUILD_ID_LINKER BuildIdKind = 0 // Build ID based on the content hash of the binary. Currently no particular // hashing approach is standardized, so a given producer needs to define it // themselves and thus unlike BUILD_ID_LINKER this kind of hash is producer-specific. // We may choose to provide a standardized stable hash recommendation later. BuildIdKind_BUILD_ID_BINARY_HASH BuildIdKind = 1 )
func (BuildIdKind) EnumDescriptor ¶
func (BuildIdKind) EnumDescriptor() ([]byte, []int)
func (BuildIdKind) String ¶
func (x BuildIdKind) String() string
type Function ¶
type Function struct { // Unique nonzero id for the function. [deprecated] Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Name of the function, in human-readable form if available. Name int64 `protobuf:"varint,2,opt,name=name,proto3" json:"name,omitempty"` // Name of the function, as identified by the system. // For instance, it can be a C++ mangled name. SystemName int64 `protobuf:"varint,3,opt,name=system_name,json=systemName,proto3" json:"system_name,omitempty"` // Source file containing the function. Filename int64 `protobuf:"varint,4,opt,name=filename,proto3" json:"filename,omitempty"` // Line number in source file. StartLine int64 `protobuf:"varint,5,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` }
Describes a function, including its human-readable name, system name, source file, and starting line number in the source.
func (*Function) Descriptor ¶
func (*Function) GetFilename ¶
func (*Function) GetStartLine ¶
func (*Function) GetSystemName ¶
func (*Function) MarshalToSizedBuffer ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) XXX_DiscardUnknown ¶
func (m *Function) XXX_DiscardUnknown()
func (*Function) XXX_Marshal ¶
func (*Function) XXX_Unmarshal ¶
type Label ¶
type Label struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` // At most one of the following must be present Str int64 `protobuf:"varint,2,opt,name=str,proto3" json:"str,omitempty"` Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num,omitempty"` // Should only be present when num is present. // Specifies the units of num. // Use arbitrary string (for example, "requests") as a custom count unit. // If no unit is specified, consumer may apply heuristic to deduce the unit. // Consumers may also interpret units like "bytes" and "kilobytes" as memory // units and units like "seconds" and "nanoseconds" as time units, // and apply appropriate unit conversions to these. NumUnit int64 `protobuf:"varint,4,opt,name=num_unit,json=numUnit,proto3" json:"num_unit,omitempty"` }
Provides additional context for a sample, such as thread ID or allocation size, with optional units. [deprecated]
func (*Label) Descriptor ¶
func (*Label) GetNumUnit ¶
func (*Label) ProtoMessage ¶
func (*Label) ProtoMessage()
func (*Label) XXX_DiscardUnknown ¶
func (m *Label) XXX_DiscardUnknown()
func (*Label) XXX_Marshal ¶
func (*Label) XXX_Unmarshal ¶
type Line ¶
type Line struct { // The index of the corresponding profile.Function for this line. FunctionIndex uint64 `protobuf:"varint,1,opt,name=function_index,json=functionIndex,proto3" json:"function_index,omitempty"` // Line number in source code. Line int64 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` // Column number in source code. Column int64 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"` }
Details a specific line in a source code, linked to a function.
func (*Line) Descriptor ¶
func (*Line) GetFunctionIndex ¶
func (*Line) ProtoMessage ¶
func (*Line) ProtoMessage()
func (*Line) XXX_DiscardUnknown ¶
func (m *Line) XXX_DiscardUnknown()
func (*Line) XXX_Unmarshal ¶
type Link ¶
type Link struct { // A unique identifier of a trace that this linked span is part of. The ID is a // 16-byte array. TraceId go_opentelemetry_io_collector_pdata_internal_data.TraceID `` /* 141-byte string literal not displayed */ // A unique identifier for the linked span. The ID is an 8-byte array. SpanId go_opentelemetry_io_collector_pdata_internal_data.SpanID `` /* 137-byte string literal not displayed */ }
A pointer from a profile Sample to a trace Span. Connects a profile sample to a trace span, identified by unique trace and span IDs.
func (*Link) Descriptor ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) XXX_DiscardUnknown ¶
func (m *Link) XXX_DiscardUnknown()
func (*Link) XXX_Unmarshal ¶
type Location ¶
type Location struct { // Unique nonzero id for the location. A profile could use // instruction addresses or any integer sequence as ids. [deprecated] Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The index of the corresponding profile.Mapping for this location. // It can be unset if the mapping is unknown or not applicable for // this profile type. MappingIndex uint64 `protobuf:"varint,2,opt,name=mapping_index,json=mappingIndex,proto3" json:"mapping_index,omitempty"` // The instruction address for this location, if available. It // should be within [Mapping.memory_start...Mapping.memory_limit] // for the corresponding mapping. A non-leaf address may be in the // middle of a call instruction. It is up to display tools to find // the beginning of the instruction if necessary. Address uint64 `protobuf:"varint,3,opt,name=address,proto3" json:"address,omitempty"` // Multiple line indicates this location has inlined functions, // where the last entry represents the caller into which the // preceding entries were inlined. // // E.g., if memcpy() is inlined into printf: // line[0].function_name == "memcpy" // line[1].function_name == "printf" Line []Line `protobuf:"bytes,4,rep,name=line,proto3" json:"line"` // Provides an indication that multiple symbols map to this location's // address, for example due to identical code folding by the linker. In that // case the line information above represents one of the multiple // symbols. This field must be recomputed when the symbolization state of the // profile changes. IsFolded bool `protobuf:"varint,5,opt,name=is_folded,json=isFolded,proto3" json:"is_folded,omitempty"` // Type of frame (e.g. kernel, native, python, hotspot, php). Index into string table. TypeIndex uint32 `protobuf:"varint,6,opt,name=type_index,json=typeIndex,proto3" json:"type_index,omitempty"` // References to attributes in Profile.attribute_table. [optional] Attributes []uint64 `protobuf:"varint,7,rep,packed,name=attributes,proto3" json:"attributes,omitempty"` }
Describes function and line table debug information.
func (*Location) Descriptor ¶
func (*Location) GetAddress ¶
func (*Location) GetAttributes ¶
func (*Location) GetIsFolded ¶
func (*Location) GetMappingIndex ¶
func (*Location) GetTypeIndex ¶
func (*Location) MarshalToSizedBuffer ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) XXX_DiscardUnknown ¶
func (m *Location) XXX_DiscardUnknown()
func (*Location) XXX_Marshal ¶
func (*Location) XXX_Unmarshal ¶
type Mapping ¶
type Mapping struct { // Unique nonzero id for the mapping. [deprecated] Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Address at which the binary (or DLL) is loaded into memory. MemoryStart uint64 `protobuf:"varint,2,opt,name=memory_start,json=memoryStart,proto3" json:"memory_start,omitempty"` // The limit of the address range occupied by this mapping. MemoryLimit uint64 `protobuf:"varint,3,opt,name=memory_limit,json=memoryLimit,proto3" json:"memory_limit,omitempty"` // Offset in the binary that corresponds to the first mapped address. FileOffset uint64 `protobuf:"varint,4,opt,name=file_offset,json=fileOffset,proto3" json:"file_offset,omitempty"` // The object this entry is loaded from. This can be a filename on // disk for the main binary and shared libraries, or virtual // abstractions like "[vdso]". Filename int64 `protobuf:"varint,5,opt,name=filename,proto3" json:"filename,omitempty"` // A string that uniquely identifies a particular program version // with high probability. E.g., for binaries generated by GNU tools, // it could be the contents of the .note.gnu.build-id field. BuildId int64 `protobuf:"varint,6,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` // Specifies the kind of build id. See BuildIdKind enum for more details [optional] BuildIdKind BuildIdKind `` /* 159-byte string literal not displayed */ // References to attributes in Profile.attribute_table. [optional] Attributes []uint64 `protobuf:"varint,12,rep,packed,name=attributes,proto3" json:"attributes,omitempty"` // The following fields indicate the resolution of symbolic info. HasFunctions bool `protobuf:"varint,7,opt,name=has_functions,json=hasFunctions,proto3" json:"has_functions,omitempty"` HasFilenames bool `protobuf:"varint,8,opt,name=has_filenames,json=hasFilenames,proto3" json:"has_filenames,omitempty"` HasLineNumbers bool `protobuf:"varint,9,opt,name=has_line_numbers,json=hasLineNumbers,proto3" json:"has_line_numbers,omitempty"` HasInlineFrames bool `protobuf:"varint,10,opt,name=has_inline_frames,json=hasInlineFrames,proto3" json:"has_inline_frames,omitempty"` }
Describes the mapping of a binary in memory, including its address range, file offset, and metadata like build ID
func (*Mapping) Descriptor ¶
func (*Mapping) GetAttributes ¶
func (*Mapping) GetBuildId ¶
func (*Mapping) GetBuildIdKind ¶
func (m *Mapping) GetBuildIdKind() BuildIdKind
func (*Mapping) GetFileOffset ¶
func (*Mapping) GetFilename ¶
func (*Mapping) GetHasFilenames ¶
func (*Mapping) GetHasFunctions ¶
func (*Mapping) GetHasInlineFrames ¶
func (*Mapping) GetHasLineNumbers ¶
func (*Mapping) GetMemoryLimit ¶
func (*Mapping) GetMemoryStart ¶
func (*Mapping) MarshalToSizedBuffer ¶
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
func (*Mapping) XXX_DiscardUnknown ¶
func (m *Mapping) XXX_DiscardUnknown()
func (*Mapping) XXX_Marshal ¶
func (*Mapping) XXX_Unmarshal ¶
type Profile ¶
type Profile struct { // A description of the samples associated with each Sample.value. // For a cpu profile this might be: // [["cpu","nanoseconds"]] or [["wall","seconds"]] or [["syscall","count"]] // For a heap profile, this might be: // [["allocations","count"], ["space","bytes"]], // If one of the values represents the number of events represented // by the sample, by convention it should be at index 0 and use // sample_type.unit == "count". SampleType []ValueType `protobuf:"bytes,1,rep,name=sample_type,json=sampleType,proto3" json:"sample_type"` // The set of samples recorded in this profile. Sample []Sample `protobuf:"bytes,2,rep,name=sample,proto3" json:"sample"` // Mapping from address ranges to the image/binary/library mapped // into that address range. mapping[0] will be the main binary. Mapping []Mapping `protobuf:"bytes,3,rep,name=mapping,proto3" json:"mapping"` // Locations referenced by samples via location_indices. Location []Location `protobuf:"bytes,4,rep,name=location,proto3" json:"location"` // Array of locations referenced by samples. LocationIndices []int64 `protobuf:"varint,15,rep,packed,name=location_indices,json=locationIndices,proto3" json:"location_indices,omitempty"` // Functions referenced by locations. Function []Function `protobuf:"bytes,5,rep,name=function,proto3" json:"function"` // Lookup table for attributes. AttributeTable []v1.KeyValue `protobuf:"bytes,16,rep,name=attribute_table,json=attributeTable,proto3" json:"attribute_table"` // Represents a mapping between Attribute Keys and Units. AttributeUnits []AttributeUnit `protobuf:"bytes,17,rep,name=attribute_units,json=attributeUnits,proto3" json:"attribute_units"` // Lookup table for links. LinkTable []Link `protobuf:"bytes,18,rep,name=link_table,json=linkTable,proto3" json:"link_table"` // A common table for strings referenced by various messages. // string_table[0] must always be "". StringTable []string `protobuf:"bytes,6,rep,name=string_table,json=stringTable,proto3" json:"string_table,omitempty"` // frames with Function.function_name fully matching the following // regexp will be dropped from the samples, along with their successors. DropFrames int64 `protobuf:"varint,7,opt,name=drop_frames,json=dropFrames,proto3" json:"drop_frames,omitempty"` // frames with Function.function_name fully matching the following // regexp will be kept, even if it matches drop_frames. KeepFrames int64 `protobuf:"varint,8,opt,name=keep_frames,json=keepFrames,proto3" json:"keep_frames,omitempty"` // Time of collection (UTC) represented as nanoseconds past the epoch. TimeNanos int64 `protobuf:"varint,9,opt,name=time_nanos,json=timeNanos,proto3" json:"time_nanos,omitempty"` // Duration of the profile, if a duration makes sense. DurationNanos int64 `protobuf:"varint,10,opt,name=duration_nanos,json=durationNanos,proto3" json:"duration_nanos,omitempty"` // The kind of events between sampled occurrences. // e.g [ "cpu","cycles" ] or [ "heap","bytes" ] PeriodType ValueType `protobuf:"bytes,11,opt,name=period_type,json=periodType,proto3" json:"period_type"` // The number of events between sampled occurrences. Period int64 `protobuf:"varint,12,opt,name=period,proto3" json:"period,omitempty"` // Free-form text associated with the profile. The text is displayed as is // to the user by the tools that read profiles (e.g. by pprof). This field // should not be used to store any machine-readable information, it is only // for human-friendly content. The profile must stay functional if this field // is cleaned. Comment []int64 `protobuf:"varint,13,rep,packed,name=comment,proto3" json:"comment,omitempty"` // Index into the string table of the type of the preferred sample // value. If unset, clients should default to the last sample value. DefaultSampleType int64 `protobuf:"varint,14,opt,name=default_sample_type,json=defaultSampleType,proto3" json:"default_sample_type,omitempty"` }
Represents a complete profile, including sample types, samples, mappings to binaries, locations, functions, string table, and additional metadata.
func (*Profile) Descriptor ¶
func (*Profile) GetAttributeTable ¶
func (*Profile) GetAttributeUnits ¶
func (m *Profile) GetAttributeUnits() []AttributeUnit
func (*Profile) GetComment ¶
func (*Profile) GetDefaultSampleType ¶
func (*Profile) GetDropFrames ¶
func (*Profile) GetDurationNanos ¶
func (*Profile) GetFunction ¶
func (*Profile) GetKeepFrames ¶
func (*Profile) GetLinkTable ¶
func (*Profile) GetLocation ¶
func (*Profile) GetLocationIndices ¶
func (*Profile) GetMapping ¶
func (*Profile) GetPeriodType ¶
func (*Profile) GetSampleType ¶
func (*Profile) GetStringTable ¶
func (*Profile) GetTimeNanos ¶
func (*Profile) MarshalToSizedBuffer ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) XXX_DiscardUnknown ¶
func (m *Profile) XXX_DiscardUnknown()
func (*Profile) XXX_Marshal ¶
func (*Profile) XXX_Unmarshal ¶
type ProfileContainer ¶
type ProfileContainer struct { // A globally unique identifier for a profile. The ID is a 16-byte array. An ID with // all zeroes is considered invalid. // // This field is required. ProfileId []byte `protobuf:"bytes,1,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` // start_time_unix_nano is the start time of the profile. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // This field is semantically required and it is expected that end_time >= start_time. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // end_time_unix_nano is the end time of the profile. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // This field is semantically required and it is expected that end_time >= start_time. EndTimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"` // attributes is a collection of key/value pairs. Note, global attributes // like server name can be set using the resource API. Examples of attributes: // // "/http/user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" // "/http/server_latency": 300 // "abc.com/myattribute": true // "abc.com/score": 10.239 // // The OpenTelemetry API specification further restricts the allowed value types: // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/common/README.md#attribute // Attribute keys MUST be unique (it is not allowed to have more than one // attribute with the same key). Attributes []v11.KeyValue `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes"` // dropped_attributes_count is the number of attributes that were discarded. Attributes // can be discarded because their keys are too long or because there are too many // attributes. If this value is 0, then no attributes were dropped. DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */ // Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] OriginalPayloadFormat string `` /* 126-byte string literal not displayed */ // Original payload can be stored in this field. This can be useful for users who want to get the original payload. // Formats such as JFR are highly extensible and can contain more information than what is defined in this spec. // Inclusion of original payload should be configurable by the user. Default behavior should be to not include the original payload. // If the original payload is in pprof format, it SHOULD not be included in this field. // The field is optional, however if it is present `profile` MUST be present and contain the same profiling information. OriginalPayload []byte `protobuf:"bytes,7,opt,name=original_payload,json=originalPayload,proto3" json:"original_payload,omitempty"` // This is a reference to a pprof profile. Required, even when original_payload is present. Profile Profile `protobuf:"bytes,8,opt,name=profile,proto3" json:"profile"` }
A ProfileContainer represents a single profile. It wraps pprof profile with OpenTelemetry specific metadata.
func (*ProfileContainer) Descriptor ¶
func (*ProfileContainer) Descriptor() ([]byte, []int)
func (*ProfileContainer) GetAttributes ¶
func (m *ProfileContainer) GetAttributes() []v11.KeyValue
func (*ProfileContainer) GetDroppedAttributesCount ¶
func (m *ProfileContainer) GetDroppedAttributesCount() uint32
func (*ProfileContainer) GetEndTimeUnixNano ¶
func (m *ProfileContainer) GetEndTimeUnixNano() uint64
func (*ProfileContainer) GetOriginalPayload ¶
func (m *ProfileContainer) GetOriginalPayload() []byte
func (*ProfileContainer) GetOriginalPayloadFormat ¶
func (m *ProfileContainer) GetOriginalPayloadFormat() string
func (*ProfileContainer) GetProfile ¶
func (m *ProfileContainer) GetProfile() Profile
func (*ProfileContainer) GetProfileId ¶
func (m *ProfileContainer) GetProfileId() []byte
func (*ProfileContainer) GetStartTimeUnixNano ¶
func (m *ProfileContainer) GetStartTimeUnixNano() uint64
func (*ProfileContainer) Marshal ¶
func (m *ProfileContainer) Marshal() (dAtA []byte, err error)
func (*ProfileContainer) MarshalToSizedBuffer ¶
func (m *ProfileContainer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProfileContainer) ProtoMessage ¶
func (*ProfileContainer) ProtoMessage()
func (*ProfileContainer) Reset ¶
func (m *ProfileContainer) Reset()
func (*ProfileContainer) Size ¶
func (m *ProfileContainer) Size() (n int)
func (*ProfileContainer) String ¶
func (m *ProfileContainer) String() string
func (*ProfileContainer) Unmarshal ¶
func (m *ProfileContainer) Unmarshal(dAtA []byte) error
func (*ProfileContainer) XXX_DiscardUnknown ¶
func (m *ProfileContainer) XXX_DiscardUnknown()
func (*ProfileContainer) XXX_Marshal ¶
func (m *ProfileContainer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProfileContainer) XXX_Merge ¶
func (m *ProfileContainer) XXX_Merge(src proto.Message)
func (*ProfileContainer) XXX_Size ¶
func (m *ProfileContainer) XXX_Size() int
func (*ProfileContainer) XXX_Unmarshal ¶
func (m *ProfileContainer) XXX_Unmarshal(b []byte) error
type ProfilesData ¶
type ProfilesData struct { // An array of ResourceProfiles. // For data coming from a single resource this array will typically contain // one element. Intermediary nodes that receive data from multiple origins // typically batch the data before forwarding further and in that case this // array will contain multiple elements. ResourceProfiles []*ResourceProfiles `protobuf:"bytes,1,rep,name=resource_profiles,json=resourceProfiles,proto3" json:"resource_profiles,omitempty"` }
ProfilesData represents the profiles data that can be stored in persistent storage, OR can be embedded by other protocols that transfer OTLP profiles data but do not implement the OTLP protocol.
The main difference between this message and collector protocol is that in this message there will not be any "control" or "metadata" specific to OTLP protocol.
When new fields are added into this message, the OTLP request MUST be updated as well.
func (*ProfilesData) Descriptor ¶
func (*ProfilesData) Descriptor() ([]byte, []int)
func (*ProfilesData) GetResourceProfiles ¶
func (m *ProfilesData) GetResourceProfiles() []*ResourceProfiles
func (*ProfilesData) Marshal ¶
func (m *ProfilesData) Marshal() (dAtA []byte, err error)
func (*ProfilesData) MarshalToSizedBuffer ¶
func (m *ProfilesData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProfilesData) ProtoMessage ¶
func (*ProfilesData) ProtoMessage()
func (*ProfilesData) Reset ¶
func (m *ProfilesData) Reset()
func (*ProfilesData) Size ¶
func (m *ProfilesData) Size() (n int)
func (*ProfilesData) String ¶
func (m *ProfilesData) String() string
func (*ProfilesData) Unmarshal ¶
func (m *ProfilesData) Unmarshal(dAtA []byte) error
func (*ProfilesData) XXX_DiscardUnknown ¶
func (m *ProfilesData) XXX_DiscardUnknown()
func (*ProfilesData) XXX_Marshal ¶
func (m *ProfilesData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProfilesData) XXX_Merge ¶
func (m *ProfilesData) XXX_Merge(src proto.Message)
func (*ProfilesData) XXX_Size ¶
func (m *ProfilesData) XXX_Size() int
func (*ProfilesData) XXX_Unmarshal ¶
func (m *ProfilesData) XXX_Unmarshal(b []byte) error
type ResourceProfiles ¶
type ResourceProfiles struct { // The resource for the profiles in this message. // If this field is not set then no resource info is known. Resource v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource"` // A list of ScopeProfiles that originate from a resource. ScopeProfiles []*ScopeProfiles `protobuf:"bytes,2,rep,name=scope_profiles,json=scopeProfiles,proto3" json:"scope_profiles,omitempty"` // The Schema URL, if known. This is the identifier of the Schema that the resource data // is recorded in. To learn more about Schema URL see // https://opentelemetry.io/docs/specs/otel/schemas/#schema-url // This schema_url applies to the data in the "resource" field. It does not apply // to the data in the "scope_profiles" field which have their own schema_url field. SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"` }
A collection of ScopeProfiles from a Resource.
func (*ResourceProfiles) Descriptor ¶
func (*ResourceProfiles) Descriptor() ([]byte, []int)
func (*ResourceProfiles) GetResource ¶
func (m *ResourceProfiles) GetResource() v1.Resource
func (*ResourceProfiles) GetSchemaUrl ¶
func (m *ResourceProfiles) GetSchemaUrl() string
func (*ResourceProfiles) GetScopeProfiles ¶
func (m *ResourceProfiles) GetScopeProfiles() []*ScopeProfiles
func (*ResourceProfiles) Marshal ¶
func (m *ResourceProfiles) Marshal() (dAtA []byte, err error)
func (*ResourceProfiles) MarshalToSizedBuffer ¶
func (m *ResourceProfiles) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceProfiles) ProtoMessage ¶
func (*ResourceProfiles) ProtoMessage()
func (*ResourceProfiles) Reset ¶
func (m *ResourceProfiles) Reset()
func (*ResourceProfiles) Size ¶
func (m *ResourceProfiles) Size() (n int)
func (*ResourceProfiles) String ¶
func (m *ResourceProfiles) String() string
func (*ResourceProfiles) Unmarshal ¶
func (m *ResourceProfiles) Unmarshal(dAtA []byte) error
func (*ResourceProfiles) XXX_DiscardUnknown ¶
func (m *ResourceProfiles) XXX_DiscardUnknown()
func (*ResourceProfiles) XXX_Marshal ¶
func (m *ResourceProfiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceProfiles) XXX_Merge ¶
func (m *ResourceProfiles) XXX_Merge(src proto.Message)
func (*ResourceProfiles) XXX_Size ¶
func (m *ResourceProfiles) XXX_Size() int
func (*ResourceProfiles) XXX_Unmarshal ¶
func (m *ResourceProfiles) XXX_Unmarshal(b []byte) error
type Sample ¶
type Sample struct { // The indices recorded here correspond to locations in Profile.location. // The leaf is at location_index[0]. [deprecated, superseded by locations_start_index / locations_length] LocationIndex []uint64 `protobuf:"varint,1,rep,packed,name=location_index,json=locationIndex,proto3" json:"location_index,omitempty"` // locations_start_index along with locations_length refers to to a slice of locations in Profile.location. // Supersedes location_index. LocationsStartIndex uint64 `protobuf:"varint,7,opt,name=locations_start_index,json=locationsStartIndex,proto3" json:"locations_start_index,omitempty"` // locations_length along with locations_start_index refers to a slice of locations in Profile.location. // Supersedes location_index. LocationsLength uint64 `protobuf:"varint,8,opt,name=locations_length,json=locationsLength,proto3" json:"locations_length,omitempty"` // A 128bit id that uniquely identifies this stacktrace, globally. Index into string table. [optional] StacktraceIdIndex uint32 `protobuf:"varint,9,opt,name=stacktrace_id_index,json=stacktraceIdIndex,proto3" json:"stacktrace_id_index,omitempty"` // The type and unit of each value is defined by the corresponding // entry in Profile.sample_type. All samples must have the same // number of values, the same as the length of Profile.sample_type. // When aggregating multiple samples into a single sample, the // result has a list of values that is the element-wise sum of the // lists of the originals. Value []int64 `protobuf:"varint,2,rep,packed,name=value,proto3" json:"value,omitempty"` // label includes additional context for this sample. It can include // things like a thread id, allocation size, etc. // // NOTE: While possible, having multiple values for the same label key is // strongly discouraged and should never be used. Most tools (e.g. pprof) do // not have good (or any) support for multi-value labels. And an even more // discouraged case is having a string label and a numeric label of the same // name on a sample. Again, possible to express, but should not be used. // [deprecated, superseded by attributes] Label []Label `protobuf:"bytes,3,rep,name=label,proto3" json:"label"` // References to attributes in Profile.attribute_table. [optional] Attributes []uint64 `protobuf:"varint,10,rep,packed,name=attributes,proto3" json:"attributes,omitempty"` // Reference to link in Profile.link_table. [optional] Link uint64 `protobuf:"varint,12,opt,name=link,proto3" json:"link,omitempty"` // Timestamps associated with Sample represented in nanoseconds. These timestamps are expected // to fall within the Profile's time range. [optional] TimestampsUnixNano []uint64 `` /* 126-byte string literal not displayed */ }
Each Sample records values encountered in some program context. The program context is typically a stack trace, perhaps augmented with auxiliary information like the thread-id, some indicator of a higher level request being handled etc.
func (*Sample) Descriptor ¶
func (*Sample) GetAttributes ¶
func (*Sample) GetLocationIndex ¶
func (*Sample) GetLocationsLength ¶
func (*Sample) GetLocationsStartIndex ¶
func (*Sample) GetStacktraceIdIndex ¶
func (*Sample) GetTimestampsUnixNano ¶
func (*Sample) MarshalToSizedBuffer ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) XXX_DiscardUnknown ¶
func (m *Sample) XXX_DiscardUnknown()
func (*Sample) XXX_Marshal ¶
func (*Sample) XXX_Unmarshal ¶
type ScopeProfiles ¶
type ScopeProfiles struct { // The instrumentation scope information for the profiles in this message. // Semantically when InstrumentationScope isn't set, it is equivalent with // an empty instrumentation scope name (unknown). Scope v11.InstrumentationScope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope"` // A list of ProfileContainers that originate from an instrumentation scope. Profiles []*ProfileContainer `protobuf:"bytes,2,rep,name=profiles,proto3" json:"profiles,omitempty"` // The Schema URL, if known. This is the identifier of the Schema that the metric data // is recorded in. To learn more about Schema URL see // https://opentelemetry.io/docs/specs/otel/schemas/#schema-url // This schema_url applies to all profiles in the "profiles" field. SchemaUrl string `protobuf:"bytes,3,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"` }
A collection of ProfileContainers produced by an InstrumentationScope.
func (*ScopeProfiles) Descriptor ¶
func (*ScopeProfiles) Descriptor() ([]byte, []int)
func (*ScopeProfiles) GetProfiles ¶
func (m *ScopeProfiles) GetProfiles() []*ProfileContainer
func (*ScopeProfiles) GetSchemaUrl ¶
func (m *ScopeProfiles) GetSchemaUrl() string
func (*ScopeProfiles) GetScope ¶
func (m *ScopeProfiles) GetScope() v11.InstrumentationScope
func (*ScopeProfiles) Marshal ¶
func (m *ScopeProfiles) Marshal() (dAtA []byte, err error)
func (*ScopeProfiles) MarshalToSizedBuffer ¶
func (m *ScopeProfiles) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ScopeProfiles) ProtoMessage ¶
func (*ScopeProfiles) ProtoMessage()
func (*ScopeProfiles) Reset ¶
func (m *ScopeProfiles) Reset()
func (*ScopeProfiles) Size ¶
func (m *ScopeProfiles) Size() (n int)
func (*ScopeProfiles) String ¶
func (m *ScopeProfiles) String() string
func (*ScopeProfiles) Unmarshal ¶
func (m *ScopeProfiles) Unmarshal(dAtA []byte) error
func (*ScopeProfiles) XXX_DiscardUnknown ¶
func (m *ScopeProfiles) XXX_DiscardUnknown()
func (*ScopeProfiles) XXX_Marshal ¶
func (m *ScopeProfiles) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ScopeProfiles) XXX_Merge ¶
func (m *ScopeProfiles) XXX_Merge(src proto.Message)
func (*ScopeProfiles) XXX_Size ¶
func (m *ScopeProfiles) XXX_Size() int
func (*ScopeProfiles) XXX_Unmarshal ¶
func (m *ScopeProfiles) XXX_Unmarshal(b []byte) error
type ValueType ¶
type ValueType struct { Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Unit int64 `protobuf:"varint,2,opt,name=unit,proto3" json:"unit,omitempty"` AggregationTemporality AggregationTemporality `` /* 200-byte string literal not displayed */ }
ValueType describes the type and units of a value, with an optional aggregation temporality.
func (*ValueType) Descriptor ¶
func (*ValueType) GetAggregationTemporality ¶
func (m *ValueType) GetAggregationTemporality() AggregationTemporality
func (*ValueType) MarshalToSizedBuffer ¶
func (*ValueType) ProtoMessage ¶
func (*ValueType) ProtoMessage()
func (*ValueType) XXX_DiscardUnknown ¶
func (m *ValueType) XXX_DiscardUnknown()