package v1development
import "go.opentelemetry.io/proto/otlp/profiles/v1development"
Index ¶
- Variables
- type AggregationTemporality
- func (AggregationTemporality) Descriptor() protoreflect.EnumDescriptor
- func (x AggregationTemporality) Enum() *AggregationTemporality
- func (AggregationTemporality) EnumDescriptor() ([]byte, []int)
- func (x AggregationTemporality) Number() protoreflect.EnumNumber
- func (x AggregationTemporality) String() string
- func (AggregationTemporality) Type() protoreflect.EnumType
- type AttributeUnit
- func (*AttributeUnit) Descriptor() ([]byte, []int)
- func (x *AttributeUnit) GetAttributeKeyStrindex() int32
- func (x *AttributeUnit) GetUnitStrindex() int32
- func (*AttributeUnit) ProtoMessage()
- func (x *AttributeUnit) ProtoReflect() protoreflect.Message
- func (x *AttributeUnit) Reset()
- func (x *AttributeUnit) String() string
- type Function
- func (*Function) Descriptor() ([]byte, []int)
- func (x *Function) GetFilenameStrindex() int32
- func (x *Function) GetNameStrindex() int32
- func (x *Function) GetStartLine() int64
- func (x *Function) GetSystemNameStrindex() int32
- func (*Function) ProtoMessage()
- func (x *Function) ProtoReflect() protoreflect.Message
- func (x *Function) Reset()
- func (x *Function) String() string
- type Line
- func (*Line) Descriptor() ([]byte, []int)
- func (x *Line) GetColumn() int64
- func (x *Line) GetFunctionIndex() int32
- func (x *Line) GetLine() int64
- func (*Line) ProtoMessage()
- func (x *Line) ProtoReflect() protoreflect.Message
- func (x *Line) Reset()
- func (x *Line) String() string
- type Link
- func (*Link) Descriptor() ([]byte, []int)
- func (x *Link) GetSpanId() []byte
- func (x *Link) GetTraceId() []byte
- func (*Link) ProtoMessage()
- func (x *Link) ProtoReflect() protoreflect.Message
- func (x *Link) Reset()
- func (x *Link) String() string
- type Location
- func (*Location) Descriptor() ([]byte, []int)
- func (x *Location) GetAddress() uint64
- func (x *Location) GetAttributeIndices() []int32
- func (x *Location) GetIsFolded() bool
- func (x *Location) GetLine() []*Line
- func (x *Location) GetMappingIndex() int32
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- type Mapping
- func (*Mapping) Descriptor() ([]byte, []int)
- func (x *Mapping) GetAttributeIndices() []int32
- func (x *Mapping) GetFileOffset() uint64
- func (x *Mapping) GetFilenameStrindex() int32
- func (x *Mapping) GetHasFilenames() bool
- func (x *Mapping) GetHasFunctions() bool
- func (x *Mapping) GetHasInlineFrames() bool
- func (x *Mapping) GetHasLineNumbers() bool
- func (x *Mapping) GetMemoryLimit() uint64
- func (x *Mapping) GetMemoryStart() uint64
- func (*Mapping) ProtoMessage()
- func (x *Mapping) ProtoReflect() protoreflect.Message
- func (x *Mapping) Reset()
- func (x *Mapping) String() string
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (x *Profile) GetAttributeIndices() []int32
- func (x *Profile) GetAttributeTable() []*v11.KeyValue
- func (x *Profile) GetAttributeUnits() []*AttributeUnit
- func (x *Profile) GetCommentStrindices() []int32
- func (x *Profile) GetDefaultSampleTypeStrindex() int32
- func (x *Profile) GetDroppedAttributesCount() uint32
- func (x *Profile) GetDurationNanos() int64
- func (x *Profile) GetFunctionTable() []*Function
- func (x *Profile) GetLinkTable() []*Link
- func (x *Profile) GetLocationIndices() []int32
- func (x *Profile) GetLocationTable() []*Location
- func (x *Profile) GetMappingTable() []*Mapping
- func (x *Profile) GetOriginalPayload() []byte
- func (x *Profile) GetOriginalPayloadFormat() string
- func (x *Profile) GetPeriod() int64
- func (x *Profile) GetPeriodType() *ValueType
- func (x *Profile) GetProfileId() []byte
- func (x *Profile) GetSample() []*Sample
- func (x *Profile) GetSampleType() []*ValueType
- func (x *Profile) GetStringTable() []string
- func (x *Profile) GetTimeNanos() int64
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfilesData
- func (*ProfilesData) Descriptor() ([]byte, []int)
- func (x *ProfilesData) GetResourceProfiles() []*ResourceProfiles
- func (*ProfilesData) ProtoMessage()
- func (x *ProfilesData) ProtoReflect() protoreflect.Message
- func (x *ProfilesData) Reset()
- func (x *ProfilesData) String() string
- type ResourceProfiles
- func (*ResourceProfiles) Descriptor() ([]byte, []int)
- func (x *ResourceProfiles) GetResource() *v1.Resource
- func (x *ResourceProfiles) GetSchemaUrl() string
- func (x *ResourceProfiles) GetScopeProfiles() []*ScopeProfiles
- func (*ResourceProfiles) ProtoMessage()
- func (x *ResourceProfiles) ProtoReflect() protoreflect.Message
- func (x *ResourceProfiles) Reset()
- func (x *ResourceProfiles) String() string
- type Sample
- func (*Sample) Descriptor() ([]byte, []int)
- func (x *Sample) GetAttributeIndices() []int32
- func (x *Sample) GetLinkIndex() int32
- func (x *Sample) GetLocationsLength() int32
- func (x *Sample) GetLocationsStartIndex() int32
- func (x *Sample) GetTimestampsUnixNano() []uint64
- func (x *Sample) GetValue() []int64
- func (*Sample) ProtoMessage()
- func (x *Sample) ProtoReflect() protoreflect.Message
- func (x *Sample) Reset()
- func (x *Sample) String() string
- type ScopeProfiles
- func (*ScopeProfiles) Descriptor() ([]byte, []int)
- func (x *ScopeProfiles) GetProfiles() []*Profile
- func (x *ScopeProfiles) GetSchemaUrl() string
- func (x *ScopeProfiles) GetScope() *v11.InstrumentationScope
- func (*ScopeProfiles) ProtoMessage()
- func (x *ScopeProfiles) ProtoReflect() protoreflect.Message
- func (x *ScopeProfiles) Reset()
- func (x *ScopeProfiles) String() string
- type ValueType
- func (*ValueType) Descriptor() ([]byte, []int)
- func (x *ValueType) GetAggregationTemporality() AggregationTemporality
- func (x *ValueType) GetTypeStrindex() int32
- func (x *ValueType) GetUnitStrindex() int32
- func (*ValueType) ProtoMessage()
- func (x *ValueType) ProtoReflect() protoreflect.Message
- func (x *ValueType) Reset()
- func (x *ValueType) String() string
Variables ¶
var ( AggregationTemporality_name = map[int32]string{ 0: "AGGREGATION_TEMPORALITY_UNSPECIFIED", 1: "AGGREGATION_TEMPORALITY_DELTA", 2: "AGGREGATION_TEMPORALITY_CUMULATIVE", } AggregationTemporality_value = map[string]int32{ "AGGREGATION_TEMPORALITY_UNSPECIFIED": 0, "AGGREGATION_TEMPORALITY_DELTA": 1, "AGGREGATION_TEMPORALITY_CUMULATIVE": 2, } )
Enum value maps for AggregationTemporality.
var File_opentelemetry_proto_profiles_v1development_profiles_proto protoreflect.FileDescriptor
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_1+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) Descriptor ¶
func (AggregationTemporality) Descriptor() protoreflect.EnumDescriptor
func (AggregationTemporality) Enum ¶
func (x AggregationTemporality) Enum() *AggregationTemporality
func (AggregationTemporality) EnumDescriptor ¶
func (AggregationTemporality) EnumDescriptor() ([]byte, []int)
Deprecated: Use AggregationTemporality.Descriptor instead.
func (AggregationTemporality) Number ¶
func (x AggregationTemporality) Number() protoreflect.EnumNumber
func (AggregationTemporality) String ¶
func (x AggregationTemporality) String() string
func (AggregationTemporality) Type ¶
func (AggregationTemporality) Type() protoreflect.EnumType
type AttributeUnit ¶
type AttributeUnit struct { // Index into string table. AttributeKeyStrindex int32 `protobuf:"varint,1,opt,name=attribute_key_strindex,json=attributeKeyStrindex,proto3" json:"attribute_key_strindex,omitempty"` // Index into string table. UnitStrindex int32 `protobuf:"varint,2,opt,name=unit_strindex,json=unitStrindex,proto3" json:"unit_strindex,omitempty"` // contains filtered or unexported fields }
Represents a mapping between Attribute Keys and Units.
func (*AttributeUnit) Descriptor ¶
func (*AttributeUnit) Descriptor() ([]byte, []int)
Deprecated: Use AttributeUnit.ProtoReflect.Descriptor instead.
func (*AttributeUnit) GetAttributeKeyStrindex ¶
func (x *AttributeUnit) GetAttributeKeyStrindex() int32
func (*AttributeUnit) GetUnitStrindex ¶
func (x *AttributeUnit) GetUnitStrindex() int32
func (*AttributeUnit) ProtoMessage ¶
func (*AttributeUnit) ProtoMessage()
func (*AttributeUnit) ProtoReflect ¶
func (x *AttributeUnit) ProtoReflect() protoreflect.Message
func (*AttributeUnit) Reset ¶
func (x *AttributeUnit) Reset()
func (*AttributeUnit) String ¶
func (x *AttributeUnit) String() string
type Function ¶
type Function struct { // Name of the function, in human-readable form if available. NameStrindex int32 `protobuf:"varint,1,opt,name=name_strindex,json=nameStrindex,proto3" json:"name_strindex,omitempty"` // Index into string table // Name of the function, as identified by the system. // For instance, it can be a C++ mangled name. SystemNameStrindex int32 `protobuf:"varint,2,opt,name=system_name_strindex,json=systemNameStrindex,proto3" json:"system_name_strindex,omitempty"` // Index into string table // Source file containing the function. FilenameStrindex int32 `protobuf:"varint,3,opt,name=filename_strindex,json=filenameStrindex,proto3" json:"filename_strindex,omitempty"` // Index into string table // Line number in source file. StartLine int64 `protobuf:"varint,4,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"` // contains filtered or unexported fields }
Describes a function, including its human-readable name, system name, source file, and starting line number in the source.
func (*Function) Descriptor ¶
Deprecated: Use Function.ProtoReflect.Descriptor instead.
func (*Function) GetFilenameStrindex ¶
func (*Function) GetNameStrindex ¶
func (*Function) GetStartLine ¶
func (*Function) GetSystemNameStrindex ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
func (*Function) Reset ¶
func (x *Function) Reset()
func (*Function) String ¶
type Line ¶
type Line struct { // Reference to function in Profile.function_table. FunctionIndex int32 `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"` // contains filtered or unexported fields }
Details a specific line in a source code, linked to a function.
func (*Line) Descriptor ¶
Deprecated: Use Line.ProtoReflect.Descriptor instead.
func (*Line) GetColumn ¶
func (*Line) GetFunctionIndex ¶
func (*Line) GetLine ¶
func (*Line) ProtoMessage ¶
func (*Line) ProtoMessage()
func (*Line) ProtoReflect ¶
func (x *Line) ProtoReflect() protoreflect.Message
func (*Line) Reset ¶
func (x *Line) Reset()
func (*Line) String ¶
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 []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // A unique identifier for the linked span. The ID is an 8-byte array. SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // contains filtered or unexported fields }
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 ¶
Deprecated: Use Link.ProtoReflect.Descriptor instead.
func (*Link) GetSpanId ¶
func (*Link) GetTraceId ¶
func (*Link) ProtoMessage ¶
func (*Link) ProtoMessage()
func (*Link) ProtoReflect ¶
func (x *Link) ProtoReflect() protoreflect.Message
func (*Link) Reset ¶
func (x *Link) Reset()
func (*Link) String ¶
type Location ¶
type Location struct { // Reference to mapping in Profile.mapping_table. // It can be unset if the mapping is unknown or not applicable for // this profile type. MappingIndex *int32 `protobuf:"varint,1,opt,name=mapping_index,json=mappingIndex,proto3,oneof" 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,2,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,3,rep,name=line,proto3" json:"line,omitempty"` // 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,4,opt,name=is_folded,json=isFolded,proto3" json:"is_folded,omitempty"` // References to attributes in Profile.attribute_table. [optional] AttributeIndices []int32 `protobuf:"varint,5,rep,packed,name=attribute_indices,json=attributeIndices,proto3" json:"attribute_indices,omitempty"` // contains filtered or unexported fields }
Describes function and line table debug information.
func (*Location) Descriptor ¶
Deprecated: Use Location.ProtoReflect.Descriptor instead.
func (*Location) GetAddress ¶
func (*Location) GetAttributeIndices ¶
func (*Location) GetIsFolded ¶
func (*Location) GetLine ¶
func (*Location) GetMappingIndex ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
func (*Location) Reset ¶
func (x *Location) Reset()
func (*Location) String ¶
type Mapping ¶
type Mapping struct { // Address at which the binary (or DLL) is loaded into memory. MemoryStart uint64 `protobuf:"varint,1,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,2,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,3,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]". FilenameStrindex int32 `protobuf:"varint,4,opt,name=filename_strindex,json=filenameStrindex,proto3" json:"filename_strindex,omitempty"` // Index into string table // References to attributes in Profile.attribute_table. [optional] AttributeIndices []int32 `protobuf:"varint,5,rep,packed,name=attribute_indices,json=attributeIndices,proto3" json:"attribute_indices,omitempty"` // The following fields indicate the resolution of symbolic info. HasFunctions bool `protobuf:"varint,6,opt,name=has_functions,json=hasFunctions,proto3" json:"has_functions,omitempty"` HasFilenames bool `protobuf:"varint,7,opt,name=has_filenames,json=hasFilenames,proto3" json:"has_filenames,omitempty"` HasLineNumbers bool `protobuf:"varint,8,opt,name=has_line_numbers,json=hasLineNumbers,proto3" json:"has_line_numbers,omitempty"` HasInlineFrames bool `protobuf:"varint,9,opt,name=has_inline_frames,json=hasInlineFrames,proto3" json:"has_inline_frames,omitempty"` // contains filtered or unexported fields }
Describes the mapping of a binary in memory, including its address range, file offset, and metadata like build ID
func (*Mapping) Descriptor ¶
Deprecated: Use Mapping.ProtoReflect.Descriptor instead.
func (*Mapping) GetAttributeIndices ¶
func (*Mapping) GetFileOffset ¶
func (*Mapping) GetFilenameStrindex ¶
func (*Mapping) GetHasFilenames ¶
func (*Mapping) GetHasFunctions ¶
func (*Mapping) GetHasInlineFrames ¶
func (*Mapping) GetHasLineNumbers ¶
func (*Mapping) GetMemoryLimit ¶
func (*Mapping) GetMemoryStart ¶
func (*Mapping) ProtoMessage ¶
func (*Mapping) ProtoMessage()
func (*Mapping) ProtoReflect ¶
func (x *Mapping) ProtoReflect() protoreflect.Message
func (*Mapping) Reset ¶
func (x *Mapping) Reset()
func (*Mapping) String ¶
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,omitempty"` // The set of samples recorded in this profile. Sample []*Sample `protobuf:"bytes,2,rep,name=sample,proto3" json:"sample,omitempty"` // Mapping from address ranges to the image/binary/library mapped // into that address range. mapping[0] will be the main binary. // If multiple binaries contribute to the Profile and no main // binary can be identified, mapping[0] has no special meaning. MappingTable []*Mapping `protobuf:"bytes,3,rep,name=mapping_table,json=mappingTable,proto3" json:"mapping_table,omitempty"` // Locations referenced by samples via location_indices. LocationTable []*Location `protobuf:"bytes,4,rep,name=location_table,json=locationTable,proto3" json:"location_table,omitempty"` // Array of locations referenced by samples. LocationIndices []int32 `protobuf:"varint,5,rep,packed,name=location_indices,json=locationIndices,proto3" json:"location_indices,omitempty"` // Functions referenced by locations. FunctionTable []*Function `protobuf:"bytes,6,rep,name=function_table,json=functionTable,proto3" json:"function_table,omitempty"` // Lookup table for attributes. AttributeTable []*v11.KeyValue `protobuf:"bytes,7,rep,name=attribute_table,json=attributeTable,proto3" json:"attribute_table,omitempty"` // Represents a mapping between Attribute Keys and Units. AttributeUnits []*AttributeUnit `protobuf:"bytes,8,rep,name=attribute_units,json=attributeUnits,proto3" json:"attribute_units,omitempty"` // Lookup table for links. LinkTable []*Link `protobuf:"bytes,9,rep,name=link_table,json=linkTable,proto3" json:"link_table,omitempty"` // A common table for strings referenced by various messages. // string_table[0] must always be "". StringTable []string `protobuf:"bytes,10,rep,name=string_table,json=stringTable,proto3" json:"string_table,omitempty"` // Time of collection (UTC) represented as nanoseconds past the epoch. TimeNanos int64 `protobuf:"varint,11,opt,name=time_nanos,json=timeNanos,proto3" json:"time_nanos,omitempty"` // Duration of the profile, if a duration makes sense. DurationNanos int64 `protobuf:"varint,12,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,13,opt,name=period_type,json=periodType,proto3" json:"period_type,omitempty"` // The number of events between sampled occurrences. Period int64 `protobuf:"varint,14,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. CommentStrindices []int32 `protobuf:"varint,15,rep,packed,name=comment_strindices,json=commentStrindices,proto3" json:"comment_strindices,omitempty"` // Indices into string table. // Index into the string table of the type of the preferred sample // value. If unset, clients should default to the last sample value. DefaultSampleTypeStrindex int32 `protobuf:"varint,16,opt,name=default_sample_type_strindex,json=defaultSampleTypeStrindex,proto3" json:"default_sample_type_strindex,omitempty"` // 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,17,opt,name=profile_id,json=profileId,proto3" json:"profile_id,omitempty"` // 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 `protobuf:"varint,19,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"` // Specifies format of the original payload. Common values are defined in semantic conventions. [required if original_payload is present] OriginalPayloadFormat string `protobuf:"bytes,20,opt,name=original_payload_format,json=originalPayloadFormat,proto3" json:"original_payload_format,omitempty"` // 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 then equivalent converted data should be populated in other fields // of this message as far as is practicable. OriginalPayload []byte `protobuf:"bytes,21,opt,name=original_payload,json=originalPayload,proto3" json:"original_payload,omitempty"` // References to attributes in attribute_table. [optional] // It 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). AttributeIndices []int32 `protobuf:"varint,22,rep,packed,name=attribute_indices,json=attributeIndices,proto3" json:"attribute_indices,omitempty"` // contains filtered or unexported fields }
Represents a complete profile, including sample types, samples, mappings to binaries, locations, functions, string table, and additional metadata. It modifies and annotates pprof Profile with OpenTelemetry specific fields.
Note that whilst fields in this message retain the name and field id from pprof in most cases for ease of understanding data migration, it is not intended that pprof:Profile and OpenTelemetry:Profile encoding be wire compatible.
func (*Profile) Descriptor ¶
Deprecated: Use Profile.ProtoReflect.Descriptor instead.
func (*Profile) GetAttributeIndices ¶
func (*Profile) GetAttributeTable ¶
func (*Profile) GetAttributeUnits ¶
func (x *Profile) GetAttributeUnits() []*AttributeUnit
func (*Profile) GetCommentStrindices ¶
func (*Profile) GetDefaultSampleTypeStrindex ¶
func (*Profile) GetDroppedAttributesCount ¶
func (*Profile) GetDurationNanos ¶
func (*Profile) GetFunctionTable ¶
func (*Profile) GetLinkTable ¶
func (*Profile) GetLocationIndices ¶
func (*Profile) GetLocationTable ¶
func (*Profile) GetMappingTable ¶
func (*Profile) GetOriginalPayload ¶
func (*Profile) GetOriginalPayloadFormat ¶
func (*Profile) GetPeriod ¶
func (*Profile) GetPeriodType ¶
func (*Profile) GetProfileId ¶
func (*Profile) GetSample ¶
func (*Profile) GetSampleType ¶
func (*Profile) GetStringTable ¶
func (*Profile) GetTimeNanos ¶
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶
func (x *Profile) ProtoReflect() protoreflect.Message
func (*Profile) Reset ¶
func (x *Profile) Reset()
func (*Profile) String ¶
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"` // contains filtered or unexported fields }
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)
Deprecated: Use ProfilesData.ProtoReflect.Descriptor instead.
func (*ProfilesData) GetResourceProfiles ¶
func (x *ProfilesData) GetResourceProfiles() []*ResourceProfiles
func (*ProfilesData) ProtoMessage ¶
func (*ProfilesData) ProtoMessage()
func (*ProfilesData) ProtoReflect ¶
func (x *ProfilesData) ProtoReflect() protoreflect.Message
func (*ProfilesData) Reset ¶
func (x *ProfilesData) Reset()
func (*ProfilesData) String ¶
func (x *ProfilesData) String() string
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,omitempty"` // 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. Notably, the last part of the URL path is the version number of the // schema: http[s]://server[:port]/path/<version>. 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"` // contains filtered or unexported fields }
A collection of ScopeProfiles from a Resource.
func (*ResourceProfiles) Descriptor ¶
func (*ResourceProfiles) Descriptor() ([]byte, []int)
Deprecated: Use ResourceProfiles.ProtoReflect.Descriptor instead.
func (*ResourceProfiles) GetResource ¶
func (x *ResourceProfiles) GetResource() *v1.Resource
func (*ResourceProfiles) GetSchemaUrl ¶
func (x *ResourceProfiles) GetSchemaUrl() string
func (*ResourceProfiles) GetScopeProfiles ¶
func (x *ResourceProfiles) GetScopeProfiles() []*ScopeProfiles
func (*ResourceProfiles) ProtoMessage ¶
func (*ResourceProfiles) ProtoMessage()
func (*ResourceProfiles) ProtoReflect ¶
func (x *ResourceProfiles) ProtoReflect() protoreflect.Message
func (*ResourceProfiles) Reset ¶
func (x *ResourceProfiles) Reset()
func (*ResourceProfiles) String ¶
func (x *ResourceProfiles) String() string
type Sample ¶
type Sample struct { // locations_start_index along with locations_length refers to to a slice of locations in Profile.location_indices. LocationsStartIndex int32 `protobuf:"varint,1,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_indices. // Supersedes location_index. LocationsLength int32 `protobuf:"varint,2,opt,name=locations_length,json=locationsLength,proto3" json:"locations_length,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,3,rep,packed,name=value,proto3" json:"value,omitempty"` // References to attributes in Profile.attribute_table. [optional] AttributeIndices []int32 `protobuf:"varint,4,rep,packed,name=attribute_indices,json=attributeIndices,proto3" json:"attribute_indices,omitempty"` // Reference to link in Profile.link_table. [optional] LinkIndex *int32 `protobuf:"varint,5,opt,name=link_index,json=linkIndex,proto3,oneof" json:"link_index,omitempty"` // Timestamps associated with Sample represented in nanoseconds. These timestamps are expected // to fall within the Profile's time range. [optional] TimestampsUnixNano []uint64 `protobuf:"varint,6,rep,packed,name=timestamps_unix_nano,json=timestampsUnixNano,proto3" json:"timestamps_unix_nano,omitempty"` // contains filtered or unexported fields }
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 ¶
Deprecated: Use Sample.ProtoReflect.Descriptor instead.
func (*Sample) GetAttributeIndices ¶
func (*Sample) GetLinkIndex ¶
func (*Sample) GetLocationsLength ¶
func (*Sample) GetLocationsStartIndex ¶
func (*Sample) GetTimestampsUnixNano ¶
func (*Sample) GetValue ¶
func (*Sample) ProtoMessage ¶
func (*Sample) ProtoMessage()
func (*Sample) ProtoReflect ¶
func (x *Sample) ProtoReflect() protoreflect.Message
func (*Sample) Reset ¶
func (x *Sample) Reset()
func (*Sample) String ¶
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,omitempty"` // A list of Profiles that originate from an instrumentation scope. Profiles []*Profile `protobuf:"bytes,2,rep,name=profiles,proto3" json:"profiles,omitempty"` // The Schema URL, if known. This is the identifier of the Schema that the profile data // is recorded in. Notably, the last part of the URL path is the version number of the // schema: http[s]://server[:port]/path/<version>. 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"` // contains filtered or unexported fields }
A collection of Profiles produced by an InstrumentationScope.
func (*ScopeProfiles) Descriptor ¶
func (*ScopeProfiles) Descriptor() ([]byte, []int)
Deprecated: Use ScopeProfiles.ProtoReflect.Descriptor instead.
func (*ScopeProfiles) GetProfiles ¶
func (x *ScopeProfiles) GetProfiles() []*Profile
func (*ScopeProfiles) GetSchemaUrl ¶
func (x *ScopeProfiles) GetSchemaUrl() string
func (*ScopeProfiles) GetScope ¶
func (x *ScopeProfiles) GetScope() *v11.InstrumentationScope
func (*ScopeProfiles) ProtoMessage ¶
func (*ScopeProfiles) ProtoMessage()
func (*ScopeProfiles) ProtoReflect ¶
func (x *ScopeProfiles) ProtoReflect() protoreflect.Message
func (*ScopeProfiles) Reset ¶
func (x *ScopeProfiles) Reset()
func (*ScopeProfiles) String ¶
func (x *ScopeProfiles) String() string
type ValueType ¶
type ValueType struct { TypeStrindex int32 `protobuf:"varint,1,opt,name=type_strindex,json=typeStrindex,proto3" json:"type_strindex,omitempty"` // Index into string table. UnitStrindex int32 `protobuf:"varint,2,opt,name=unit_strindex,json=unitStrindex,proto3" json:"unit_strindex,omitempty"` // Index into string table. AggregationTemporality AggregationTemporality `protobuf:"varint,3,opt,name=aggregation_temporality,json=aggregationTemporality,proto3,enum=opentelemetry.proto.profiles.v1development.AggregationTemporality" json:"aggregation_temporality,omitempty"` // contains filtered or unexported fields }
ValueType describes the type and units of a value, with an optional aggregation temporality.
func (*ValueType) Descriptor ¶
Deprecated: Use ValueType.ProtoReflect.Descriptor instead.
func (*ValueType) GetAggregationTemporality ¶
func (x *ValueType) GetAggregationTemporality() AggregationTemporality
func (*ValueType) GetTypeStrindex ¶
func (*ValueType) GetUnitStrindex ¶
func (*ValueType) ProtoMessage ¶
func (*ValueType) ProtoMessage()
func (*ValueType) ProtoReflect ¶
func (x *ValueType) ProtoReflect() protoreflect.Message
func (*ValueType) Reset ¶
func (x *ValueType) Reset()
func (*ValueType) String ¶
Source Files ¶
profiles.pb.go
- Version
- v1.5.0 (latest)
- Published
- Jan 6, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 week ago –
Tools for package owners.