Documentation ¶
Index ¶
- Variables
- func RegisterStreamExporterServer(s grpc.ServiceRegistrar, srv StreamExporterServer)
- func RegisterUnaryExporterServer(s grpc.ServiceRegistrar, srv UnaryExporterServer)
- type AnyValue
- func (*AnyValue) Descriptor() ([]byte, []int)deprecated
- func (x *AnyValue) GetBoolValue() bool
- func (x *AnyValue) GetExoticValue() *ExoticValue
- func (x *AnyValue) GetIntValue() int64
- func (x *AnyValue) GetStringValue() string
- func (x *AnyValue) GetType() ValueType
- func (*AnyValue) ProtoMessage()
- func (x *AnyValue) ProtoReflect() protoreflect.Message
- func (x *AnyValue) Reset()
- func (x *AnyValue) String() string
- type AttributeKeyValue
- func (*AttributeKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *AttributeKeyValue) GetKey() string
- func (x *AttributeKeyValue) GetValue() *AnyValue
- func (*AttributeKeyValue) ProtoMessage()
- func (x *AttributeKeyValue) ProtoReflect() protoreflect.Message
- func (x *AttributeKeyValue) Reset()
- func (x *AttributeKeyValue) String() string
- type Capabilities
- func (Capabilities) Descriptor() protoreflect.EnumDescriptor
- func (x Capabilities) Enum() *Capabilities
- func (Capabilities) EnumDescriptor() ([]byte, []int)deprecated
- func (x Capabilities) Number() protoreflect.EnumNumber
- func (x Capabilities) String() string
- func (Capabilities) Type() protoreflect.EnumType
- type CompressionMethod
- func (CompressionMethod) Descriptor() protoreflect.EnumDescriptor
- func (x CompressionMethod) Enum() *CompressionMethod
- func (CompressionMethod) EnumDescriptor() ([]byte, []int)deprecated
- func (x CompressionMethod) Number() protoreflect.EnumNumber
- func (x CompressionMethod) String() string
- func (CompressionMethod) Type() protoreflect.EnumType
- type DoubleDataPoint
- func (*DoubleDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *DoubleDataPoint) GetLabels() []*StringKeyValue
- func (x *DoubleDataPoint) GetStartTimeUnixNano() uint64
- func (x *DoubleDataPoint) GetTimeUnixNano() uint64
- func (x *DoubleDataPoint) GetValue() float64
- func (*DoubleDataPoint) ProtoMessage()
- func (x *DoubleDataPoint) ProtoReflect() protoreflect.Message
- func (x *DoubleDataPoint) Reset()
- func (x *DoubleDataPoint) String() string
- type ExoticValue
- func (*ExoticValue) Descriptor() ([]byte, []int)deprecated
- func (x *ExoticValue) GetArrayValues() []*AnyValue
- func (x *ExoticValue) GetDoubleValue() float64
- func (x *ExoticValue) GetKvlistValues() []*AttributeKeyValue
- func (*ExoticValue) ProtoMessage()
- func (x *ExoticValue) ProtoReflect() protoreflect.Message
- func (x *ExoticValue) Reset()
- func (x *ExoticValue) String() string
- type ExportLogsServiceRequest
- func (*ExportLogsServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExportLogsServiceRequest) GetResourceLogs() []*ResourceLogs
- func (*ExportLogsServiceRequest) ProtoMessage()
- func (x *ExportLogsServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ExportLogsServiceRequest) Reset()
- func (x *ExportLogsServiceRequest) String() string
- type ExportLogsServiceResponse
- type ExportResponse
- func (*ExportResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExportResponse) GetId() uint64
- func (x *ExportResponse) GetResultCode() ExportResponse_ResultCode
- func (*ExportResponse) ProtoMessage()
- func (x *ExportResponse) ProtoReflect() protoreflect.Message
- func (x *ExportResponse) Reset()
- func (x *ExportResponse) String() string
- type ExportResponse_ResultCode
- func (ExportResponse_ResultCode) Descriptor() protoreflect.EnumDescriptor
- func (x ExportResponse_ResultCode) Enum() *ExportResponse_ResultCode
- func (ExportResponse_ResultCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ExportResponse_ResultCode) Number() protoreflect.EnumNumber
- func (x ExportResponse_ResultCode) String() string
- func (ExportResponse_ResultCode) Type() protoreflect.EnumType
- type Generator
- func (g *Generator) GenerateLogBatch(logsPerBatch int, attrsPerLog int) core.ExportRequest
- func (g *Generator) GenerateMetricBatch(metricsPerBatch int, valuesPerTimeseries int, int64 bool, histogram bool, ...) core.ExportRequest
- func (g *Generator) GenerateSpanBatch(spansPerBatch int, attrsPerSpan int, timedEventsPerSpan int) core.ExportRequest
- type HistogramDataPoint
- func (*HistogramDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *HistogramDataPoint) GetBuckets() []*HistogramDataPoint_Bucket
- func (x *HistogramDataPoint) GetCount() uint64
- func (x *HistogramDataPoint) GetExplicitBounds() []float64
- func (x *HistogramDataPoint) GetLabels() []*StringKeyValue
- func (x *HistogramDataPoint) GetStartTimeUnixNano() uint64
- func (x *HistogramDataPoint) GetSum() float64
- func (x *HistogramDataPoint) GetTimeUnixNano() uint64
- func (*HistogramDataPoint) ProtoMessage()
- func (x *HistogramDataPoint) ProtoReflect() protoreflect.Message
- func (x *HistogramDataPoint) Reset()
- func (x *HistogramDataPoint) String() string
- type HistogramDataPoint_Bucket
- func (*HistogramDataPoint_Bucket) Descriptor() ([]byte, []int)deprecated
- func (x *HistogramDataPoint_Bucket) GetCount() uint64
- func (x *HistogramDataPoint_Bucket) GetExemplar() *HistogramDataPoint_Bucket_Exemplar
- func (*HistogramDataPoint_Bucket) ProtoMessage()
- func (x *HistogramDataPoint_Bucket) ProtoReflect() protoreflect.Message
- func (x *HistogramDataPoint_Bucket) Reset()
- func (x *HistogramDataPoint_Bucket) String() string
- type HistogramDataPoint_Bucket_Exemplar
- func (*HistogramDataPoint_Bucket_Exemplar) Descriptor() ([]byte, []int)deprecated
- func (x *HistogramDataPoint_Bucket_Exemplar) GetAttachments() []*StringKeyValue
- func (x *HistogramDataPoint_Bucket_Exemplar) GetTimeUnixNano() uint64
- func (x *HistogramDataPoint_Bucket_Exemplar) GetValue() float64
- func (*HistogramDataPoint_Bucket_Exemplar) ProtoMessage()
- func (x *HistogramDataPoint_Bucket_Exemplar) ProtoReflect() protoreflect.Message
- func (x *HistogramDataPoint_Bucket_Exemplar) Reset()
- func (x *HistogramDataPoint_Bucket_Exemplar) String() string
- type InstrumentationLibrary
- func (*InstrumentationLibrary) Descriptor() ([]byte, []int)deprecated
- func (x *InstrumentationLibrary) GetName() string
- func (x *InstrumentationLibrary) GetVersion() string
- func (*InstrumentationLibrary) ProtoMessage()
- func (x *InstrumentationLibrary) ProtoReflect() protoreflect.Message
- func (x *InstrumentationLibrary) Reset()
- func (x *InstrumentationLibrary) String() string
- type InstrumentationLibraryMetrics
- func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *InstrumentationLibrary
- func (x *InstrumentationLibraryMetrics) GetMetrics() []*Metric
- func (*InstrumentationLibraryMetrics) ProtoMessage()
- func (x *InstrumentationLibraryMetrics) ProtoReflect() protoreflect.Message
- func (x *InstrumentationLibraryMetrics) Reset()
- func (x *InstrumentationLibraryMetrics) String() string
- type InstrumentationLibrarySpans
- func (*InstrumentationLibrarySpans) Descriptor() ([]byte, []int)deprecated
- func (x *InstrumentationLibrarySpans) GetInstrumentationLibrary() *InstrumentationLibrary
- func (x *InstrumentationLibrarySpans) GetSpans() []*Span
- func (*InstrumentationLibrarySpans) ProtoMessage()
- func (x *InstrumentationLibrarySpans) ProtoReflect() protoreflect.Message
- func (x *InstrumentationLibrarySpans) Reset()
- func (x *InstrumentationLibrarySpans) String() string
- type Int64DataPoint
- func (*Int64DataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *Int64DataPoint) GetLabels() []*StringKeyValue
- func (x *Int64DataPoint) GetStartTimeUnixNano() uint64
- func (x *Int64DataPoint) GetTimeUnixNano() uint64
- func (x *Int64DataPoint) GetValue() int64
- func (*Int64DataPoint) ProtoMessage()
- func (x *Int64DataPoint) ProtoReflect() protoreflect.Message
- func (x *Int64DataPoint) Reset()
- func (x *Int64DataPoint) String() string
- type LogRecord
- func (*LogRecord) Descriptor() ([]byte, []int)deprecated
- func (x *LogRecord) GetAttributes() []*AttributeKeyValue
- func (x *LogRecord) GetBody() *AttributeKeyValue
- func (x *LogRecord) GetDroppedAttributesCount() uint32
- func (x *LogRecord) GetFlags() uint32
- func (x *LogRecord) GetSeverityNumber() SeverityNumber
- func (x *LogRecord) GetSeverityText() string
- func (x *LogRecord) GetShortName() string
- func (x *LogRecord) GetSpanId() []byte
- func (x *LogRecord) GetTimeUnixnano() uint64
- func (x *LogRecord) GetTraceId() []byte
- func (*LogRecord) ProtoMessage()
- func (x *LogRecord) ProtoReflect() protoreflect.Message
- func (x *LogRecord) Reset()
- func (x *LogRecord) String() string
- type LogRecordFlags
- func (LogRecordFlags) Descriptor() protoreflect.EnumDescriptor
- func (x LogRecordFlags) Enum() *LogRecordFlags
- func (LogRecordFlags) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogRecordFlags) Number() protoreflect.EnumNumber
- func (x LogRecordFlags) String() string
- func (LogRecordFlags) Type() protoreflect.EnumType
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetDoubleDataPoints() []*DoubleDataPoint
- func (x *Metric) GetHistogramDataPoints() []*HistogramDataPoint
- func (x *Metric) GetInt64DataPoints() []*Int64DataPoint
- func (x *Metric) GetMetricDescriptor() *MetricDescriptor
- func (x *Metric) GetSummaryDataPoints() []*SummaryDataPoint
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- type MetricDescriptor
- func (*MetricDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *MetricDescriptor) GetDescription() string
- func (x *MetricDescriptor) GetLabels() []*StringKeyValue
- func (x *MetricDescriptor) GetName() string
- func (x *MetricDescriptor) GetType() MetricDescriptor_Type
- func (x *MetricDescriptor) GetUnit() string
- func (*MetricDescriptor) ProtoMessage()
- func (x *MetricDescriptor) ProtoReflect() protoreflect.Message
- func (x *MetricDescriptor) Reset()
- func (x *MetricDescriptor) String() string
- type MetricDescriptor_Type
- func (MetricDescriptor_Type) Descriptor() protoreflect.EnumDescriptor
- func (x MetricDescriptor_Type) Enum() *MetricDescriptor_Type
- func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetricDescriptor_Type) Number() protoreflect.EnumNumber
- func (x MetricDescriptor_Type) String() string
- func (MetricDescriptor_Type) Type() protoreflect.EnumType
- type MetricExportRequest
- func (*MetricExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MetricExportRequest) GetId() uint64
- func (x *MetricExportRequest) GetResourceMetrics() []*ResourceMetrics
- func (*MetricExportRequest) ProtoMessage()
- func (x *MetricExportRequest) ProtoReflect() protoreflect.Message
- func (x *MetricExportRequest) Reset()
- func (x *MetricExportRequest) String() string
- type MetricPrepared
- func (*MetricPrepared) Descriptor() ([]byte, []int)deprecated
- func (x *MetricPrepared) GetDoubleDataPoints() []*DoubleDataPoint
- func (x *MetricPrepared) GetHistogramDataPoints() []*HistogramDataPoint
- func (x *MetricPrepared) GetInt64DataPoints() []*Int64DataPoint
- func (x *MetricPrepared) GetMetricDescriptor() []byte
- func (x *MetricPrepared) GetSummaryDataPoints() []*SummaryDataPoint
- func (*MetricPrepared) ProtoMessage()
- func (x *MetricPrepared) ProtoReflect() protoreflect.Message
- func (x *MetricPrepared) Reset()
- func (x *MetricPrepared) String() string
- type RequestBody
- func (*RequestBody) Descriptor() ([]byte, []int)deprecated
- func (x *RequestBody) GetExport() *TraceExportRequest
- func (x *RequestBody) GetRequestType() RequestType
- func (*RequestBody) ProtoMessage()
- func (x *RequestBody) ProtoReflect() protoreflect.Message
- func (x *RequestBody) Reset()
- func (x *RequestBody) String() string
- type RequestHeader
- func (*RequestHeader) Descriptor() ([]byte, []int)deprecated
- func (x *RequestHeader) GetCompression() CompressionMethod
- func (x *RequestHeader) GetCompressionLevel() int32
- func (*RequestHeader) ProtoMessage()
- func (x *RequestHeader) ProtoReflect() protoreflect.Message
- func (x *RequestHeader) Reset()
- func (x *RequestHeader) String() string
- type RequestType
- func (RequestType) Descriptor() protoreflect.EnumDescriptor
- func (x RequestType) Enum() *RequestType
- func (RequestType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RequestType) Number() protoreflect.EnumNumber
- func (x RequestType) String() string
- func (RequestType) Type() protoreflect.EnumType
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetAttributes() []*AttributeKeyValue
- func (x *Resource) GetDroppedAttributesCount() uint32
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type ResourceLogs
- func (*ResourceLogs) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceLogs) GetLogs() []*LogRecord
- func (x *ResourceLogs) GetResource() *Resource
- func (*ResourceLogs) ProtoMessage()
- func (x *ResourceLogs) ProtoReflect() protoreflect.Message
- func (x *ResourceLogs) Reset()
- func (x *ResourceLogs) String() string
- type ResourceMetrics
- func (*ResourceMetrics) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
- func (x *ResourceMetrics) GetResource() *Resource
- func (*ResourceMetrics) ProtoMessage()
- func (x *ResourceMetrics) ProtoReflect() protoreflect.Message
- func (x *ResourceMetrics) Reset()
- func (x *ResourceMetrics) String() string
- type ResourceMetricsPrepared
- func (*ResourceMetricsPrepared) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceMetricsPrepared) GetMetrics() []*MetricPrepared
- func (x *ResourceMetricsPrepared) GetResource() *Resource
- func (*ResourceMetricsPrepared) ProtoMessage()
- func (x *ResourceMetricsPrepared) ProtoReflect() protoreflect.Message
- func (x *ResourceMetricsPrepared) Reset()
- func (x *ResourceMetricsPrepared) String() string
- type ResourceSpans
- func (*ResourceSpans) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceSpans) GetInstrumentationLibrarySpans() []*InstrumentationLibrarySpans
- func (x *ResourceSpans) GetResource() *Resource
- func (*ResourceSpans) ProtoMessage()
- func (x *ResourceSpans) ProtoReflect() protoreflect.Message
- func (x *ResourceSpans) Reset()
- func (x *ResourceSpans) String() string
- type ResourceSpansPrepared
- func (*ResourceSpansPrepared) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceSpansPrepared) GetResource() []byte
- func (x *ResourceSpansPrepared) GetSpans() []*SpanPrepared
- func (*ResourceSpansPrepared) ProtoMessage()
- func (x *ResourceSpansPrepared) ProtoReflect() protoreflect.Message
- func (x *ResourceSpansPrepared) Reset()
- func (x *ResourceSpansPrepared) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetExport() *ExportResponse
- func (x *Response) GetResponseType() RequestType
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type SeverityNumber
- func (SeverityNumber) Descriptor() protoreflect.EnumDescriptor
- func (x SeverityNumber) Enum() *SeverityNumber
- func (SeverityNumber) EnumDescriptor() ([]byte, []int)deprecated
- func (x SeverityNumber) Number() protoreflect.EnumNumber
- func (x SeverityNumber) String() string
- func (SeverityNumber) Type() protoreflect.EnumType
- type Span
- func (*Span) Descriptor() ([]byte, []int)deprecated
- func (x *Span) GetAttributes() []*AttributeKeyValue
- func (x *Span) GetDroppedAttributesCount() uint32
- func (x *Span) GetDroppedEventsCount() uint32
- func (x *Span) GetDroppedLinksCount() uint32
- func (x *Span) GetEndTimeUnixNano() uint64
- func (x *Span) GetEvents() []*Span_Event
- func (x *Span) GetKind() Span_SpanKind
- func (x *Span) GetLinks() []*Span_Link
- func (x *Span) GetName() string
- func (x *Span) GetParentSpanId() []byte
- func (x *Span) GetSpanId() []byte
- func (x *Span) GetStartTimeUnixNano() uint64
- func (x *Span) GetStatus() *Status
- func (x *Span) GetTraceId() []byte
- func (x *Span) GetTraceState() string
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) String() string
- type SpanPrepared
- func (*SpanPrepared) Descriptor() ([]byte, []int)deprecated
- func (x *SpanPrepared) GetAttributes() [][]byte
- func (x *SpanPrepared) GetDroppedAttributesCount() uint32
- func (x *SpanPrepared) GetDroppedEventsCount() uint32
- func (x *SpanPrepared) GetDroppedLinksCount() uint32
- func (x *SpanPrepared) GetEndTimeUnixnano() uint64
- func (x *SpanPrepared) GetEvents() [][]byte
- func (x *SpanPrepared) GetKind() SpanPrepared_SpanKind
- func (x *SpanPrepared) GetLinks() [][]byte
- func (x *SpanPrepared) GetLocalChildSpanCount() int32
- func (x *SpanPrepared) GetName() string
- func (x *SpanPrepared) GetParentSpanId() []byte
- func (x *SpanPrepared) GetSpanId() []byte
- func (x *SpanPrepared) GetStartTimeUnixnano() uint64
- func (x *SpanPrepared) GetStatus() *Status
- func (x *SpanPrepared) GetTraceId() []byte
- func (x *SpanPrepared) GetTracestate() string
- func (*SpanPrepared) ProtoMessage()
- func (x *SpanPrepared) ProtoReflect() protoreflect.Message
- func (x *SpanPrepared) Reset()
- func (x *SpanPrepared) String() string
- type SpanPrepared_SpanKind
- func (SpanPrepared_SpanKind) Descriptor() protoreflect.EnumDescriptor
- func (x SpanPrepared_SpanKind) Enum() *SpanPrepared_SpanKind
- func (SpanPrepared_SpanKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x SpanPrepared_SpanKind) Number() protoreflect.EnumNumber
- func (x SpanPrepared_SpanKind) String() string
- func (SpanPrepared_SpanKind) Type() protoreflect.EnumType
- type Span_Event
- func (*Span_Event) Descriptor() ([]byte, []int)deprecated
- func (x *Span_Event) GetAttributes() []*AttributeKeyValue
- func (x *Span_Event) GetDroppedAttributesCount() uint32
- func (x *Span_Event) GetName() string
- func (x *Span_Event) GetTimeUnixNano() uint64
- func (*Span_Event) ProtoMessage()
- func (x *Span_Event) ProtoReflect() protoreflect.Message
- func (x *Span_Event) Reset()
- func (x *Span_Event) String() string
- type Span_Link
- func (*Span_Link) Descriptor() ([]byte, []int)deprecated
- func (x *Span_Link) GetAttributes() []*AttributeKeyValue
- func (x *Span_Link) GetDroppedAttributesCount() uint32
- func (x *Span_Link) GetSpanId() []byte
- func (x *Span_Link) GetTraceId() []byte
- func (x *Span_Link) GetTraceState() string
- func (*Span_Link) ProtoMessage()
- func (x *Span_Link) ProtoReflect() protoreflect.Message
- func (x *Span_Link) Reset()
- func (x *Span_Link) String() string
- type Span_SpanKind
- func (Span_SpanKind) Descriptor() protoreflect.EnumDescriptor
- func (x Span_SpanKind) Enum() *Span_SpanKind
- func (Span_SpanKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Span_SpanKind) Number() protoreflect.EnumNumber
- func (x Span_SpanKind) String() string
- func (Span_SpanKind) Type() protoreflect.EnumType
- type Status
- type Status_StatusCode
- func (Status_StatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x Status_StatusCode) Enum() *Status_StatusCode
- func (Status_StatusCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Status_StatusCode) Number() protoreflect.EnumNumber
- func (x Status_StatusCode) String() string
- func (Status_StatusCode) Type() protoreflect.EnumType
- type StreamExporterClient
- type StreamExporterServer
- type StreamExporter_ExportTracesClient
- type StreamExporter_ExportTracesServer
- type StringKeyValue
- func (*StringKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *StringKeyValue) GetKey() string
- func (x *StringKeyValue) GetValue() string
- func (*StringKeyValue) ProtoMessage()
- func (x *StringKeyValue) ProtoReflect() protoreflect.Message
- func (x *StringKeyValue) Reset()
- func (x *StringKeyValue) String() string
- type SummaryDataPoint
- func (*SummaryDataPoint) Descriptor() ([]byte, []int)deprecated
- func (x *SummaryDataPoint) GetCount() uint64
- func (x *SummaryDataPoint) GetLabels() []*StringKeyValue
- func (x *SummaryDataPoint) GetPercentileValues() []*SummaryDataPoint_ValueAtPercentile
- func (x *SummaryDataPoint) GetStartTimeUnixNano() uint64
- func (x *SummaryDataPoint) GetSum() float64
- func (x *SummaryDataPoint) GetTimeUnixNano() uint64
- func (*SummaryDataPoint) ProtoMessage()
- func (x *SummaryDataPoint) ProtoReflect() protoreflect.Message
- func (x *SummaryDataPoint) Reset()
- func (x *SummaryDataPoint) String() string
- type SummaryDataPoint_ValueAtPercentile
- func (*SummaryDataPoint_ValueAtPercentile) Descriptor() ([]byte, []int)deprecated
- func (x *SummaryDataPoint_ValueAtPercentile) GetPercentile() float64
- func (x *SummaryDataPoint_ValueAtPercentile) GetValue() float64
- func (*SummaryDataPoint_ValueAtPercentile) ProtoMessage()
- func (x *SummaryDataPoint_ValueAtPercentile) ProtoReflect() protoreflect.Message
- func (x *SummaryDataPoint_ValueAtPercentile) Reset()
- func (x *SummaryDataPoint_ValueAtPercentile) String() string
- type TraceExportRequest
- func (*TraceExportRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TraceExportRequest) GetId() uint64
- func (x *TraceExportRequest) GetResourceSpans() []*ResourceSpans
- func (*TraceExportRequest) ProtoMessage()
- func (x *TraceExportRequest) ProtoReflect() protoreflect.Message
- func (x *TraceExportRequest) Reset()
- func (x *TraceExportRequest) String() string
- type TraceExportRequestPrepared
- func (*TraceExportRequestPrepared) Descriptor() ([]byte, []int)deprecated
- func (x *TraceExportRequestPrepared) GetId() uint64
- func (x *TraceExportRequestPrepared) GetResourceSpans() []*ResourceSpansPrepared
- func (*TraceExportRequestPrepared) ProtoMessage()
- func (x *TraceExportRequestPrepared) ProtoReflect() protoreflect.Message
- func (x *TraceExportRequestPrepared) Reset()
- func (x *TraceExportRequestPrepared) String() string
- type UnaryExporterClient
- type UnaryExporterServer
- type UnimplementedStreamExporterServer
- type UnimplementedUnaryExporterServer
- type UnsafeStreamExporterServer
- type UnsafeUnaryExporterServer
- type ValueType
Constants ¶
This section is empty.
Variables ¶
var ( ValueType_name = map[int32]string{ 0: "STRING", 1: "INT", 2: "BOOL", 3: "DOUBLE", 4: "ARRAY", 5: "KVLIST", 6: "NULL", } ValueType_value = map[string]int32{ "STRING": 0, "INT": 1, "BOOL": 2, "DOUBLE": 3, "ARRAY": 4, "KVLIST": 5, "NULL": 6, } )
Enum value maps for ValueType.
var ( Capabilities_name = map[int32]string{ 0: "SKIP", 1: "ZLIB_COMPRESSION", 2: "LZ4_COMPRESSION", } Capabilities_value = map[string]int32{ "SKIP": 0, "ZLIB_COMPRESSION": 1, "LZ4_COMPRESSION": 2, } )
Enum value maps for Capabilities.
var ( CompressionMethod_name = map[int32]string{ 0: "NONE", 1: "LZ4", 2: "ZLIB", } CompressionMethod_value = map[string]int32{ "NONE": 0, "LZ4": 1, "ZLIB": 2, } )
Enum value maps for CompressionMethod.
var ( RequestType_name = map[int32]string{ 0: "_", 1: "TraceExport", } RequestType_value = map[string]int32{ "_": 0, "TraceExport": 1, } )
Enum value maps for RequestType.
var ( ExportResponse_ResultCode_name = map[int32]string{ 0: "Success", 1: "FailedNoneRetryable", 2: "FailedRetryable", } ExportResponse_ResultCode_value = map[string]int32{ "Success": 0, "FailedNoneRetryable": 1, "FailedRetryable": 2, } )
Enum value maps for ExportResponse_ResultCode.
var ( SeverityNumber_name = map[int32]string{ 0: "UNDEFINED_SEVERITY_NUMBER", 1: "TRACE", 2: "TRACE2", 3: "TRACE3", 4: "TRACE4", 5: "DEBUG", 6: "DEBUG2", 7: "DEBUG3", 8: "DEBUG4", 9: "INFO", 10: "INFO2", 11: "INFO3", 12: "INFO4", 13: "WARN", 14: "WARN2", 15: "WARN3", 16: "WARN4", 17: "ERROR", 18: "ERROR2", 19: "ERROR3", 20: "ERROR4", 21: "FATAL", 22: "FATAL2", 23: "FATAL3", 24: "FATAL4", } SeverityNumber_value = map[string]int32{ "UNDEFINED_SEVERITY_NUMBER": 0, "TRACE": 1, "TRACE2": 2, "TRACE3": 3, "TRACE4": 4, "DEBUG": 5, "DEBUG2": 6, "DEBUG3": 7, "DEBUG4": 8, "INFO": 9, "INFO2": 10, "INFO3": 11, "INFO4": 12, "WARN": 13, "WARN2": 14, "WARN3": 15, "WARN4": 16, "ERROR": 17, "ERROR2": 18, "ERROR3": 19, "ERROR4": 20, "FATAL": 21, "FATAL2": 22, "FATAL3": 23, "FATAL4": 24, } )
Enum value maps for SeverityNumber.
var ( LogRecordFlags_name = map[int32]string{ 0: "UNDEFINED_LOG_RECORD_FLAG", 255: "TRACE_FLAGS_MASK", } LogRecordFlags_value = map[string]int32{ "UNDEFINED_LOG_RECORD_FLAG": 0, "TRACE_FLAGS_MASK": 255, } )
Enum value maps for LogRecordFlags.
var ( MetricDescriptor_Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "GAUGE_INT64", 2: "GAUGE_DOUBLE", 3: "GAUGE_HISTOGRAM", 4: "COUNTER_INT64", 5: "COUNTER_DOUBLE", 6: "CUMULATIVE_HISTOGRAM", 7: "SUMMARY", } MetricDescriptor_Type_value = map[string]int32{ "UNSPECIFIED": 0, "GAUGE_INT64": 1, "GAUGE_DOUBLE": 2, "GAUGE_HISTOGRAM": 3, "COUNTER_INT64": 4, "COUNTER_DOUBLE": 5, "CUMULATIVE_HISTOGRAM": 6, "SUMMARY": 7, } )
Enum value maps for MetricDescriptor_Type.
var ( Span_SpanKind_name = map[int32]string{ 0: "SPAN_KIND_UNSPECIFIED", 1: "INTERNAL", 2: "SERVER", 3: "CLIENT", 4: "PRODUCER", 5: "CONSUMER", } Span_SpanKind_value = map[string]int32{ "SPAN_KIND_UNSPECIFIED": 0, "INTERNAL": 1, "SERVER": 2, "CLIENT": 3, "PRODUCER": 4, "CONSUMER": 5, } )
Enum value maps for Span_SpanKind.
var ( Status_StatusCode_name = map[int32]string{ 0: "Ok", 1: "Cancelled", 2: "UnknownError", 3: "InvalidArgument", 4: "DeadlineExceeded", 5: "NotFound", 6: "AlreadyExists", 7: "PermissionDenied", 8: "ResourceExhausted", 9: "FailedPrecondition", 10: "Aborted", 11: "OutOfRange", 12: "Unimplemented", 13: "InternalError", 14: "Unavailable", 15: "DataLoss", 16: "Unauthenticated", } Status_StatusCode_value = map[string]int32{ "Ok": 0, "Cancelled": 1, "UnknownError": 2, "InvalidArgument": 3, "DeadlineExceeded": 4, "NotFound": 5, "AlreadyExists": 6, "PermissionDenied": 7, "ResourceExhausted": 8, "FailedPrecondition": 9, "Aborted": 10, "OutOfRange": 11, "Unimplemented": 12, "InternalError": 13, "Unavailable": 14, "DataLoss": 15, "Unauthenticated": 16, } )
Enum value maps for Status_StatusCode.
var ( SpanPrepared_SpanKind_name = map[int32]string{ 0: "SPAN_KIND_UNSPECIFIED", 1: "INTERNAL", 2: "SERVER", 3: "CLIENT", 4: "PRODUCER", 5: "CONSUMER", } SpanPrepared_SpanKind_value = map[string]int32{ "SPAN_KIND_UNSPECIFIED": 0, "INTERNAL": 1, "SERVER": 2, "CLIENT": 3, "PRODUCER": 4, "CONSUMER": 5, } )
Enum value maps for SpanPrepared_SpanKind.
var File_common_proto protoreflect.FileDescriptor
var File_exchange_proto protoreflect.FileDescriptor
var File_grpc_proto protoreflect.FileDescriptor
var File_logs_proto protoreflect.FileDescriptor
var File_logs_service_proto protoreflect.FileDescriptor
var File_metric_data_proto protoreflect.FileDescriptor
var File_telemetry_data_proto protoreflect.FileDescriptor
var StreamExporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "baseline2.StreamExporter", HandlerType: (*StreamExporterServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "ExportTraces", Handler: _StreamExporter_ExportTraces_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "grpc.proto", }
StreamExporter_ServiceDesc is the grpc.ServiceDesc for StreamExporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UnaryExporter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "baseline2.UnaryExporter", HandlerType: (*UnaryExporterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ExportTraces", Handler: _UnaryExporter_ExportTraces_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpc.proto", }
UnaryExporter_ServiceDesc is the grpc.ServiceDesc for UnaryExporter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStreamExporterServer ¶
func RegisterStreamExporterServer(s grpc.ServiceRegistrar, srv StreamExporterServer)
func RegisterUnaryExporterServer ¶
func RegisterUnaryExporterServer(s grpc.ServiceRegistrar, srv UnaryExporterServer)
Types ¶
type AnyValue ¶
type AnyValue struct { // type of the value. Type ValueType `protobuf:"varint,1,opt,name=type,proto3,enum=baseline2.ValueType" json:"type,omitempty"` // This is used when type=BOOL. // (Performance note: keep `bool_value` immediately after `type` for more compact // representation due to struct field alignment rules in Go). BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"` // This is used when type=STRING. StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"` // This is used when type=INT. IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3" json:"int_value,omitempty"` // This field is set only if `type` is DOUBLE, ARRAY or KVLIST. ExoticValue *ExoticValue `protobuf:"bytes,5,opt,name=exotic_value,json=exoticValue,proto3" json:"exotic_value,omitempty"` // contains filtered or unexported fields }
AnyValue is used to represent any type of attribute value. AnyValue may contain a primitive value such as a string or integer or it may contain an arbitrary nested object containing arrays, key-value lists and and primitives. AnyValue can represent any data that JSON can represent.
func (*AnyValue) Descriptor
deprecated
func (*AnyValue) GetBoolValue ¶
func (*AnyValue) GetExoticValue ¶
func (x *AnyValue) GetExoticValue() *ExoticValue
func (*AnyValue) GetIntValue ¶
func (*AnyValue) GetStringValue ¶
func (*AnyValue) ProtoMessage ¶
func (*AnyValue) ProtoMessage()
func (*AnyValue) ProtoReflect ¶
func (x *AnyValue) ProtoReflect() protoreflect.Message
type AttributeKeyValue ¶
type AttributeKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *AnyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
AttributeKeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.
func (*AttributeKeyValue) Descriptor
deprecated
func (*AttributeKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use AttributeKeyValue.ProtoReflect.Descriptor instead.
func (*AttributeKeyValue) GetKey ¶
func (x *AttributeKeyValue) GetKey() string
func (*AttributeKeyValue) GetValue ¶
func (x *AttributeKeyValue) GetValue() *AnyValue
func (*AttributeKeyValue) ProtoMessage ¶
func (*AttributeKeyValue) ProtoMessage()
func (*AttributeKeyValue) ProtoReflect ¶
func (x *AttributeKeyValue) ProtoReflect() protoreflect.Message
func (*AttributeKeyValue) Reset ¶
func (x *AttributeKeyValue) Reset()
func (*AttributeKeyValue) String ¶
func (x *AttributeKeyValue) String() string
type Capabilities ¶
type Capabilities int32
const ( Capabilities_SKIP Capabilities = 0 Capabilities_ZLIB_COMPRESSION Capabilities = 1 // bit 0 of capabilities Capabilities_LZ4_COMPRESSION Capabilities = 2 // bit 1 of capabilities )
func (Capabilities) Descriptor ¶
func (Capabilities) Descriptor() protoreflect.EnumDescriptor
func (Capabilities) Enum ¶
func (x Capabilities) Enum() *Capabilities
func (Capabilities) EnumDescriptor
deprecated
func (Capabilities) EnumDescriptor() ([]byte, []int)
Deprecated: Use Capabilities.Descriptor instead.
func (Capabilities) Number ¶
func (x Capabilities) Number() protoreflect.EnumNumber
func (Capabilities) String ¶
func (x Capabilities) String() string
func (Capabilities) Type ¶
func (Capabilities) Type() protoreflect.EnumType
type CompressionMethod ¶
type CompressionMethod int32
const ( CompressionMethod_NONE CompressionMethod = 0 CompressionMethod_LZ4 CompressionMethod = 1 CompressionMethod_ZLIB CompressionMethod = 2 )
func (CompressionMethod) Descriptor ¶
func (CompressionMethod) Descriptor() protoreflect.EnumDescriptor
func (CompressionMethod) Enum ¶
func (x CompressionMethod) Enum() *CompressionMethod
func (CompressionMethod) EnumDescriptor
deprecated
func (CompressionMethod) EnumDescriptor() ([]byte, []int)
Deprecated: Use CompressionMethod.Descriptor instead.
func (CompressionMethod) Number ¶
func (x CompressionMethod) Number() protoreflect.EnumNumber
func (CompressionMethod) String ¶
func (x CompressionMethod) String() string
func (CompressionMethod) Type ¶
func (CompressionMethod) Type() protoreflect.EnumType
type DoubleDataPoint ¶
type DoubleDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
DoubleDataPoint is a single data point in a timeseries that describes the time-varying value of a double metric.
func (*DoubleDataPoint) Descriptor
deprecated
func (*DoubleDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use DoubleDataPoint.ProtoReflect.Descriptor instead.
func (*DoubleDataPoint) GetLabels ¶
func (x *DoubleDataPoint) GetLabels() []*StringKeyValue
func (*DoubleDataPoint) GetStartTimeUnixNano ¶
func (x *DoubleDataPoint) GetStartTimeUnixNano() uint64
func (*DoubleDataPoint) GetTimeUnixNano ¶
func (x *DoubleDataPoint) GetTimeUnixNano() uint64
func (*DoubleDataPoint) GetValue ¶
func (x *DoubleDataPoint) GetValue() float64
func (*DoubleDataPoint) ProtoMessage ¶
func (*DoubleDataPoint) ProtoMessage()
func (*DoubleDataPoint) ProtoReflect ¶
func (x *DoubleDataPoint) ProtoReflect() protoreflect.Message
func (*DoubleDataPoint) Reset ¶
func (x *DoubleDataPoint) Reset()
func (*DoubleDataPoint) String ¶
func (x *DoubleDataPoint) String() string
type ExoticValue ¶
type ExoticValue struct { // This is used when type=DOUBLE. DoubleValue float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` // This is used when type=ARRAY. The array may be empty (contain 0 elements). ArrayValues []*AnyValue `protobuf:"bytes,2,rep,name=array_values,json=arrayValues,proto3" json:"array_values,omitempty"` // This is used when type=KVLIST. The list may be empty (contain 0 elements). KvlistValues []*AttributeKeyValue `protobuf:"bytes,3,rep,name=kvlist_values,json=kvlistValues,proto3" json:"kvlist_values,omitempty"` // contains filtered or unexported fields }
ExoticValue is used to represent rarely used value types.
func (*ExoticValue) Descriptor
deprecated
func (*ExoticValue) Descriptor() ([]byte, []int)
Deprecated: Use ExoticValue.ProtoReflect.Descriptor instead.
func (*ExoticValue) GetArrayValues ¶
func (x *ExoticValue) GetArrayValues() []*AnyValue
func (*ExoticValue) GetDoubleValue ¶
func (x *ExoticValue) GetDoubleValue() float64
func (*ExoticValue) GetKvlistValues ¶
func (x *ExoticValue) GetKvlistValues() []*AttributeKeyValue
func (*ExoticValue) ProtoMessage ¶
func (*ExoticValue) ProtoMessage()
func (*ExoticValue) ProtoReflect ¶
func (x *ExoticValue) ProtoReflect() protoreflect.Message
func (*ExoticValue) Reset ¶
func (x *ExoticValue) Reset()
func (*ExoticValue) String ¶
func (x *ExoticValue) String() string
type ExportLogsServiceRequest ¶
type ExportLogsServiceRequest struct { // An array of ResourceSpans. // For data coming from a single resource this array will typically contain one // element. Intermediary nodes (such as OpenTelemetry Collector) that receive // data from multiple origins typically batch the data before forwarding further and // in that case this array will contain multiple elements. ResourceLogs []*ResourceLogs `protobuf:"bytes,1,rep,name=resource_logs,json=resourceLogs,proto3" json:"resource_logs,omitempty"` // contains filtered or unexported fields }
func (*ExportLogsServiceRequest) Descriptor
deprecated
func (*ExportLogsServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExportLogsServiceRequest.ProtoReflect.Descriptor instead.
func (*ExportLogsServiceRequest) GetResourceLogs ¶
func (x *ExportLogsServiceRequest) GetResourceLogs() []*ResourceLogs
func (*ExportLogsServiceRequest) ProtoMessage ¶
func (*ExportLogsServiceRequest) ProtoMessage()
func (*ExportLogsServiceRequest) ProtoReflect ¶
func (x *ExportLogsServiceRequest) ProtoReflect() protoreflect.Message
func (*ExportLogsServiceRequest) Reset ¶
func (x *ExportLogsServiceRequest) Reset()
func (*ExportLogsServiceRequest) String ¶
func (x *ExportLogsServiceRequest) String() string
type ExportLogsServiceResponse ¶
type ExportLogsServiceResponse struct {
// contains filtered or unexported fields
}
func (*ExportLogsServiceResponse) Descriptor
deprecated
func (*ExportLogsServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportLogsServiceResponse.ProtoReflect.Descriptor instead.
func (*ExportLogsServiceResponse) ProtoMessage ¶
func (*ExportLogsServiceResponse) ProtoMessage()
func (*ExportLogsServiceResponse) ProtoReflect ¶
func (x *ExportLogsServiceResponse) ProtoReflect() protoreflect.Message
func (*ExportLogsServiceResponse) Reset ¶
func (x *ExportLogsServiceResponse) Reset()
func (*ExportLogsServiceResponse) String ¶
func (x *ExportLogsServiceResponse) String() string
type ExportResponse ¶
type ExportResponse struct { // ID of a response that the server acknowledges. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ResultCode ExportResponse_ResultCode `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
A response to ExportRequest.
func (*ExportResponse) Descriptor
deprecated
func (*ExportResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExportResponse.ProtoReflect.Descriptor instead.
func (*ExportResponse) GetId ¶
func (x *ExportResponse) GetId() uint64
func (*ExportResponse) GetResultCode ¶
func (x *ExportResponse) GetResultCode() ExportResponse_ResultCode
func (*ExportResponse) ProtoMessage ¶
func (*ExportResponse) ProtoMessage()
func (*ExportResponse) ProtoReflect ¶
func (x *ExportResponse) ProtoReflect() protoreflect.Message
func (*ExportResponse) Reset ¶
func (x *ExportResponse) Reset()
func (*ExportResponse) String ¶
func (x *ExportResponse) String() string
type ExportResponse_ResultCode ¶
type ExportResponse_ResultCode int32
const ( // Telemetry data is successfully processed by the server. ExportResponse_Success ExportResponse_ResultCode = 0 // processing of telemetry data failed. The client MUST NOT retry // sending the same telemetry data. The telemetry data MUST be dropped. // This for example can happen when the request contains bad data and // cannot be deserialized or otherwise processed by the server. ExportResponse_FailedNoneRetryable ExportResponse_ResultCode = 1 // Processing of telemetry data failed. The client SHOULD record the // error and MAY retry exporting the same data after some time. This // for example can happen when the server is overloaded. ExportResponse_FailedRetryable ExportResponse_ResultCode = 2 )
func (ExportResponse_ResultCode) Descriptor ¶
func (ExportResponse_ResultCode) Descriptor() protoreflect.EnumDescriptor
func (ExportResponse_ResultCode) Enum ¶
func (x ExportResponse_ResultCode) Enum() *ExportResponse_ResultCode
func (ExportResponse_ResultCode) EnumDescriptor
deprecated
func (ExportResponse_ResultCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ExportResponse_ResultCode.Descriptor instead.
func (ExportResponse_ResultCode) Number ¶
func (x ExportResponse_ResultCode) Number() protoreflect.EnumNumber
func (ExportResponse_ResultCode) String ¶
func (x ExportResponse_ResultCode) String() string
func (ExportResponse_ResultCode) Type ¶
func (ExportResponse_ResultCode) Type() protoreflect.EnumType
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator allows to generate a ExportRequest.
func NewGenerator ¶
func NewGenerator() *Generator
func (*Generator) GenerateLogBatch ¶
func (g *Generator) GenerateLogBatch(logsPerBatch int, attrsPerLog int) core.ExportRequest
func (*Generator) GenerateMetricBatch ¶
func (*Generator) GenerateSpanBatch ¶
type HistogramDataPoint ¶
type HistogramDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. // Note: this field is always unspecified and ignored if MetricDescriptor.type==GAUGE_HISTOGRAM. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // count is the number of values in the population. Must be non-negative. This value // must be equal to the sum of the "count" fields in buckets if a histogram is provided. Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in buckets if // a histogram is provided. Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // buckets is an optional field contains the values of histogram for each bucket. // // The sum of the values in the buckets "count" field must equal the value in the count field. // // The number of elements in buckets array must be by one greater than the // number of elements in bucket_bounds array. // // Note: if HistogramDataPoint.bucket_options defines bucket bounds then this field // must also be present and number of elements in this field must be equal to the // number of buckets defined by bucket_options. Buckets []*HistogramDataPoint_Bucket `protobuf:"bytes,6,rep,name=buckets,proto3" json:"buckets,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // // This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket // at index i are: // // [0, bounds[i]) for i == 0 // [bounds[i-1], bounds[i]) for 0 < i < N-1 // [bounds[i], +infinity) for i == N-1 // The values in bounds array must be strictly increasing and > 0. // // Note: only [a, b) intervals are currently supported for each bucket. If we decides // to also support (a, b] intervals we should add support for these by defining a boolean // value which decides what type of intervals to use. ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` // contains filtered or unexported fields }
HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a set of buckets.
func (*HistogramDataPoint) Descriptor
deprecated
func (*HistogramDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use HistogramDataPoint.ProtoReflect.Descriptor instead.
func (*HistogramDataPoint) GetBuckets ¶
func (x *HistogramDataPoint) GetBuckets() []*HistogramDataPoint_Bucket
func (*HistogramDataPoint) GetCount ¶
func (x *HistogramDataPoint) GetCount() uint64
func (*HistogramDataPoint) GetExplicitBounds ¶
func (x *HistogramDataPoint) GetExplicitBounds() []float64
func (*HistogramDataPoint) GetLabels ¶
func (x *HistogramDataPoint) GetLabels() []*StringKeyValue
func (*HistogramDataPoint) GetStartTimeUnixNano ¶
func (x *HistogramDataPoint) GetStartTimeUnixNano() uint64
func (*HistogramDataPoint) GetSum ¶
func (x *HistogramDataPoint) GetSum() float64
func (*HistogramDataPoint) GetTimeUnixNano ¶
func (x *HistogramDataPoint) GetTimeUnixNano() uint64
func (*HistogramDataPoint) ProtoMessage ¶
func (*HistogramDataPoint) ProtoMessage()
func (*HistogramDataPoint) ProtoReflect ¶
func (x *HistogramDataPoint) ProtoReflect() protoreflect.Message
func (*HistogramDataPoint) Reset ¶
func (x *HistogramDataPoint) Reset()
func (*HistogramDataPoint) String ¶
func (x *HistogramDataPoint) String() string
type HistogramDataPoint_Bucket ¶
type HistogramDataPoint_Bucket struct { // The number of values in each bucket of the histogram, as described by // bucket_options. Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // exemplar is an optional representative value of the bucket. Exemplar *HistogramDataPoint_Bucket_Exemplar `protobuf:"bytes,2,opt,name=exemplar,proto3" json:"exemplar,omitempty"` // contains filtered or unexported fields }
Bucket contains values for a bucket.
func (*HistogramDataPoint_Bucket) Descriptor
deprecated
func (*HistogramDataPoint_Bucket) Descriptor() ([]byte, []int)
Deprecated: Use HistogramDataPoint_Bucket.ProtoReflect.Descriptor instead.
func (*HistogramDataPoint_Bucket) GetCount ¶
func (x *HistogramDataPoint_Bucket) GetCount() uint64
func (*HistogramDataPoint_Bucket) GetExemplar ¶
func (x *HistogramDataPoint_Bucket) GetExemplar() *HistogramDataPoint_Bucket_Exemplar
func (*HistogramDataPoint_Bucket) ProtoMessage ¶
func (*HistogramDataPoint_Bucket) ProtoMessage()
func (*HistogramDataPoint_Bucket) ProtoReflect ¶
func (x *HistogramDataPoint_Bucket) ProtoReflect() protoreflect.Message
func (*HistogramDataPoint_Bucket) Reset ¶
func (x *HistogramDataPoint_Bucket) Reset()
func (*HistogramDataPoint_Bucket) String ¶
func (x *HistogramDataPoint_Bucket) String() string
type HistogramDataPoint_Bucket_Exemplar ¶
type HistogramDataPoint_Bucket_Exemplar struct { // Value of the exemplar point. It determines which bucket the exemplar belongs to. // If bucket_options define bounds for this bucket then this value must be within // the defined bounds. Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // time_unix_nano is the moment when this exemplar was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // exemplar_attachments are contextual information about the example value. // Keys in this list must be unique. Attachments []*StringKeyValue `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
Exemplars are example points that may be used to annotate aggregated Histogram values. They are metadata that gives information about a particular value added to a Histogram bucket.
func (*HistogramDataPoint_Bucket_Exemplar) Descriptor
deprecated
func (*HistogramDataPoint_Bucket_Exemplar) Descriptor() ([]byte, []int)
Deprecated: Use HistogramDataPoint_Bucket_Exemplar.ProtoReflect.Descriptor instead.
func (*HistogramDataPoint_Bucket_Exemplar) GetAttachments ¶
func (x *HistogramDataPoint_Bucket_Exemplar) GetAttachments() []*StringKeyValue
func (*HistogramDataPoint_Bucket_Exemplar) GetTimeUnixNano ¶
func (x *HistogramDataPoint_Bucket_Exemplar) GetTimeUnixNano() uint64
func (*HistogramDataPoint_Bucket_Exemplar) GetValue ¶
func (x *HistogramDataPoint_Bucket_Exemplar) GetValue() float64
func (*HistogramDataPoint_Bucket_Exemplar) ProtoMessage ¶
func (*HistogramDataPoint_Bucket_Exemplar) ProtoMessage()
func (*HistogramDataPoint_Bucket_Exemplar) ProtoReflect ¶
func (x *HistogramDataPoint_Bucket_Exemplar) ProtoReflect() protoreflect.Message
func (*HistogramDataPoint_Bucket_Exemplar) Reset ¶
func (x *HistogramDataPoint_Bucket_Exemplar) Reset()
func (*HistogramDataPoint_Bucket_Exemplar) String ¶
func (x *HistogramDataPoint_Bucket_Exemplar) String() string
type InstrumentationLibrary ¶
type InstrumentationLibrary struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.
func (*InstrumentationLibrary) Descriptor
deprecated
func (*InstrumentationLibrary) Descriptor() ([]byte, []int)
Deprecated: Use InstrumentationLibrary.ProtoReflect.Descriptor instead.
func (*InstrumentationLibrary) GetName ¶
func (x *InstrumentationLibrary) GetName() string
func (*InstrumentationLibrary) GetVersion ¶
func (x *InstrumentationLibrary) GetVersion() string
func (*InstrumentationLibrary) ProtoMessage ¶
func (*InstrumentationLibrary) ProtoMessage()
func (*InstrumentationLibrary) ProtoReflect ¶
func (x *InstrumentationLibrary) ProtoReflect() protoreflect.Message
func (*InstrumentationLibrary) Reset ¶
func (x *InstrumentationLibrary) Reset()
func (*InstrumentationLibrary) String ¶
func (x *InstrumentationLibrary) String() string
type InstrumentationLibraryMetrics ¶
type InstrumentationLibraryMetrics struct { // The instrumentation library information for the metrics in this message. // If this field is not set then no library info is known. InstrumentationLibrary *InstrumentationLibrary `` /* 127-byte string literal not displayed */ // A list of metrics that originate from an instrumentation library. Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
A collection of Metrics produced by an InstrumentationLibrary.
func (*InstrumentationLibraryMetrics) Descriptor
deprecated
func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int)
Deprecated: Use InstrumentationLibraryMetrics.ProtoReflect.Descriptor instead.
func (*InstrumentationLibraryMetrics) GetInstrumentationLibrary ¶
func (x *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *InstrumentationLibrary
func (*InstrumentationLibraryMetrics) GetMetrics ¶
func (x *InstrumentationLibraryMetrics) GetMetrics() []*Metric
func (*InstrumentationLibraryMetrics) ProtoMessage ¶
func (*InstrumentationLibraryMetrics) ProtoMessage()
func (*InstrumentationLibraryMetrics) ProtoReflect ¶
func (x *InstrumentationLibraryMetrics) ProtoReflect() protoreflect.Message
func (*InstrumentationLibraryMetrics) Reset ¶
func (x *InstrumentationLibraryMetrics) Reset()
func (*InstrumentationLibraryMetrics) String ¶
func (x *InstrumentationLibraryMetrics) String() string
type InstrumentationLibrarySpans ¶
type InstrumentationLibrarySpans struct { // The instrumentation library information for the spans in this message. // If this field is not set then no library info is known. InstrumentationLibrary *InstrumentationLibrary `` /* 127-byte string literal not displayed */ // A list of Spans that originate from an instrumentation library. Spans []*Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
A collection of Spans produced by an InstrumentationLibrary.
func (*InstrumentationLibrarySpans) Descriptor
deprecated
func (*InstrumentationLibrarySpans) Descriptor() ([]byte, []int)
Deprecated: Use InstrumentationLibrarySpans.ProtoReflect.Descriptor instead.
func (*InstrumentationLibrarySpans) GetInstrumentationLibrary ¶
func (x *InstrumentationLibrarySpans) GetInstrumentationLibrary() *InstrumentationLibrary
func (*InstrumentationLibrarySpans) GetSpans ¶
func (x *InstrumentationLibrarySpans) GetSpans() []*Span
func (*InstrumentationLibrarySpans) ProtoMessage ¶
func (*InstrumentationLibrarySpans) ProtoMessage()
func (*InstrumentationLibrarySpans) ProtoReflect ¶
func (x *InstrumentationLibrarySpans) ProtoReflect() protoreflect.Message
func (*InstrumentationLibrarySpans) Reset ¶
func (x *InstrumentationLibrarySpans) Reset()
func (*InstrumentationLibrarySpans) String ¶
func (x *InstrumentationLibrarySpans) String() string
type Int64DataPoint ¶
type Int64DataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Int64DataPoint is a single data point in a timeseries that describes the time-varying values of a int64 metric.
func GenInt64Timeseries ¶
func GenInt64Timeseries(startTime time.Time, offset int, valuesPerTimeseries int) []*Int64DataPoint
func (*Int64DataPoint) Descriptor
deprecated
func (*Int64DataPoint) Descriptor() ([]byte, []int)
Deprecated: Use Int64DataPoint.ProtoReflect.Descriptor instead.
func (*Int64DataPoint) GetLabels ¶
func (x *Int64DataPoint) GetLabels() []*StringKeyValue
func (*Int64DataPoint) GetStartTimeUnixNano ¶
func (x *Int64DataPoint) GetStartTimeUnixNano() uint64
func (*Int64DataPoint) GetTimeUnixNano ¶
func (x *Int64DataPoint) GetTimeUnixNano() uint64
func (*Int64DataPoint) GetValue ¶
func (x *Int64DataPoint) GetValue() int64
func (*Int64DataPoint) ProtoMessage ¶
func (*Int64DataPoint) ProtoMessage()
func (*Int64DataPoint) ProtoReflect ¶
func (x *Int64DataPoint) ProtoReflect() protoreflect.Message
func (*Int64DataPoint) Reset ¶
func (x *Int64DataPoint) Reset()
func (*Int64DataPoint) String ¶
func (x *Int64DataPoint) String() string
type LogRecord ¶
type LogRecord struct { // time_unix_nano is the time when the event occurred. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // Value of 0 indicates unknown or missing timestamp. TimeUnixnano uint64 `protobuf:"fixed64,1,opt,name=time_unixnano,json=timeUnixnano,proto3" json:"time_unixnano,omitempty"` // A unique identifier for a trace. All logs from the same trace share // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes // is considered invalid. Can be set for logs that are part of request processing // and have an assigned trace id. Optional. TraceId []byte `protobuf:"bytes,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // A unique identifier for a span within a trace, assigned when the span // is created. The ID is an 8-byte array. An ID with all zeroes is considered // invalid. Can be set for logs that are part of a particular processing span. // If span_id is present trace_id SHOULD be also present. Optional. SpanId []byte `protobuf:"bytes,3,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // Optional flags, a bit field. 8 least significant bits are the trace flags as // defined in W3C Trace Context specification. 24 most significant bits are reserved // and must be set to 0. Readers that must not assume that 24 most significant bits // will be zero and must correctly mask the bits when reading 8-bit trace flag (use // flags & TRACE_FLAGS_MASK). Optional. Flags uint32 `protobuf:"fixed32,4,opt,name=flags,proto3" json:"flags,omitempty"` // Numerical value of the severity, normalized to values described in // https://github.com/open-telemetry/oteps/pull/97. Optional. SeverityNumber SeverityNumber `` /* 134-byte string literal not displayed */ // The severity text (also known as log level). The original string representation as // it is known at the source. Optional. SeverityText string `protobuf:"bytes,6,opt,name=severity_text,json=severityText,proto3" json:"severity_text,omitempty"` // Short event identifier that does not contain varying parts. ShortName describes // what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 // characters. Not guaranteed to be unique in any way. Optional. ShortName string `protobuf:"bytes,7,opt,name=short_name,json=shortName,proto3" json:"short_name,omitempty"` // A value containing the body of the log record. Can be for example a human-readable // string message (including multi-line) describing the event in a free form or it can // be a structured data composed of arrays and maps of other values. Optional. Body *AttributeKeyValue `protobuf:"bytes,8,opt,name=body,proto3" json:"body,omitempty"` // Additional attributes that describe the specific event occurrence. Optional. Attributes []*AttributeKeyValue `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,omitempty"` DroppedAttributesCount uint32 `` /* 131-byte string literal not displayed */ // contains filtered or unexported fields }
A log record according to OpenTelemetry Log Data Model: https://github.com/open-telemetry/oteps/pull/97
func (*LogRecord) Descriptor
deprecated
func (*LogRecord) GetAttributes ¶
func (x *LogRecord) GetAttributes() []*AttributeKeyValue
func (*LogRecord) GetBody ¶
func (x *LogRecord) GetBody() *AttributeKeyValue
func (*LogRecord) GetDroppedAttributesCount ¶
func (*LogRecord) GetSeverityNumber ¶
func (x *LogRecord) GetSeverityNumber() SeverityNumber
func (*LogRecord) GetSeverityText ¶
func (*LogRecord) GetShortName ¶
func (*LogRecord) GetTimeUnixnano ¶
func (*LogRecord) GetTraceId ¶
func (*LogRecord) ProtoMessage ¶
func (*LogRecord) ProtoMessage()
func (*LogRecord) ProtoReflect ¶
func (x *LogRecord) ProtoReflect() protoreflect.Message
type LogRecordFlags ¶
type LogRecordFlags int32
Masks for LogRecord.flags field.
const ( LogRecordFlags_UNDEFINED_LOG_RECORD_FLAG LogRecordFlags = 0 LogRecordFlags_TRACE_FLAGS_MASK LogRecordFlags = 255 )
func (LogRecordFlags) Descriptor ¶
func (LogRecordFlags) Descriptor() protoreflect.EnumDescriptor
func (LogRecordFlags) Enum ¶
func (x LogRecordFlags) Enum() *LogRecordFlags
func (LogRecordFlags) EnumDescriptor
deprecated
func (LogRecordFlags) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogRecordFlags.Descriptor instead.
func (LogRecordFlags) Number ¶
func (x LogRecordFlags) Number() protoreflect.EnumNumber
func (LogRecordFlags) String ¶
func (x LogRecordFlags) String() string
func (LogRecordFlags) Type ¶
func (LogRecordFlags) Type() protoreflect.EnumType
type Metric ¶
type Metric struct { // metric_descriptor describes the Metric. MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"` // Data is a list of one or more DataPoints for a single metric. Only one of the // following fields is used for the data, depending on the type of the metric defined // by MetricDescriptor.type field. Int64DataPoints []*Int64DataPoint `protobuf:"bytes,2,rep,name=int64_data_points,json=int64DataPoints,proto3" json:"int64_data_points,omitempty"` DoubleDataPoints []*DoubleDataPoint `protobuf:"bytes,3,rep,name=double_data_points,json=doubleDataPoints,proto3" json:"double_data_points,omitempty"` HistogramDataPoints []*HistogramDataPoint `protobuf:"bytes,4,rep,name=histogram_data_points,json=histogramDataPoints,proto3" json:"histogram_data_points,omitempty"` SummaryDataPoints []*SummaryDataPoint `protobuf:"bytes,5,rep,name=summary_data_points,json=summaryDataPoints,proto3" json:"summary_data_points,omitempty"` // contains filtered or unexported fields }
Defines a Metric which has one or more timeseries.
The data model and relation between entities is shown in the diagram below.
- Metric is composed of a MetricDescriptor and a list of data points. - MetricDescriptor contains a list of label keys (shown horizontally). - Data is a list of DataPoints (shown vertically). - DataPoint contains a list of label values and a value.
Metric +----------+ +------------------------+ |descriptor|-------->| MetricDescriptor | | | |+-----+-----+ +-----+ | | | ||label|label|...|label| | | data|--+ ||key1 |key2 | |keyN | | +----------+ | |+-----+-----+ +-----+ | | +------------------------+ | | +---------------------------+ | |DataPoint 1 | v |+------+------+ +------+ | +-----+ ||label |label |...|label | | | 1 |-->||value1|value2|...|valueN| | +-----+ |+------+------+ +------+ | | . | |+-----+ | | . | ||value| | | . | |+-----+ | | . | +---------------------------+ | . | . | . | . | . | . | . | +---------------------------+ | . | |DataPoint M | +-----+ |+------+------+ +------+ | | M |-->||label |label |...|label | | +-----+ ||value1|value2|...|valueN| | |+------+------+ +------+ | |+-----+ | ||value| | |+-----+ | +---------------------------+
----------------------------------------------------------------------- DataPoint is a value of specific type corresponding to a given moment in time. Each DataPoint is timestamped.
DataPoint is strongly typed: each DataPoint type has a specific Protobuf message depending on the value type of the metric and thus there are currently 4 DataPoint messages, which correspond to the types of metric values.
func (*Metric) Descriptor
deprecated
func (*Metric) GetDoubleDataPoints ¶
func (x *Metric) GetDoubleDataPoints() []*DoubleDataPoint
func (*Metric) GetHistogramDataPoints ¶
func (x *Metric) GetHistogramDataPoints() []*HistogramDataPoint
func (*Metric) GetInt64DataPoints ¶
func (x *Metric) GetInt64DataPoints() []*Int64DataPoint
func (*Metric) GetMetricDescriptor ¶
func (x *Metric) GetMetricDescriptor() *MetricDescriptor
func (*Metric) GetSummaryDataPoints ¶
func (x *Metric) GetSummaryDataPoints() []*SummaryDataPoint
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type MetricDescriptor ¶
type MetricDescriptor struct { // name of the metric, including its DNS name prefix. It must be unique. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // description of the metric, which can be used in documentation. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // unit in which the metric value is reported. Follows the format // described by http://unitsofmeasure.org/ucum.html. Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=baseline2.MetricDescriptor_Type" json:"type,omitempty"` // The set of labels associated with the metric descriptor. Labels in this list apply to // all data points. Labels []*StringKeyValue `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` // contains filtered or unexported fields }
Defines a metric type and its schema.
func GenMetricDescriptor ¶
func GenMetricDescriptor(i int) *MetricDescriptor
func (*MetricDescriptor) Descriptor
deprecated
func (*MetricDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use MetricDescriptor.ProtoReflect.Descriptor instead.
func (*MetricDescriptor) GetDescription ¶
func (x *MetricDescriptor) GetDescription() string
func (*MetricDescriptor) GetLabels ¶
func (x *MetricDescriptor) GetLabels() []*StringKeyValue
func (*MetricDescriptor) GetName ¶
func (x *MetricDescriptor) GetName() string
func (*MetricDescriptor) GetType ¶
func (x *MetricDescriptor) GetType() MetricDescriptor_Type
func (*MetricDescriptor) GetUnit ¶
func (x *MetricDescriptor) GetUnit() string
func (*MetricDescriptor) ProtoMessage ¶
func (*MetricDescriptor) ProtoMessage()
func (*MetricDescriptor) ProtoReflect ¶
func (x *MetricDescriptor) ProtoReflect() protoreflect.Message
func (*MetricDescriptor) Reset ¶
func (x *MetricDescriptor) Reset()
func (*MetricDescriptor) String ¶
func (x *MetricDescriptor) String() string
type MetricDescriptor_Type ¶
type MetricDescriptor_Type int32
Type of the metric. It describes how the data is reported.
A gauge is an instantaneous measurement of a value.
A counter/cumulative measurement is a value accumulated over a time interval. In a time series, cumulative measurements should have the same start time, increasing values, until an event resets the cumulative value to zero and sets a new start time for the subsequent points.
const ( // Do not use this default value. MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0 // Integer gauge. The value can go both up and down over time. // Corresponding values are stored in Int64DataPoint. MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1 // Floating point gauge. The value can go both up and down over time. // Corresponding values are stored in DoubleDataPoint. MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2 // Histogram gauge measurement. // Used in scenarios like a snapshot of time that current items in a queue // have spent there. // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram can go both up and down over time. Recorded values are always >= 0. MetricDescriptor_GAUGE_HISTOGRAM MetricDescriptor_Type = 3 // Integer counter measurement. The value cannot decrease; if value is reset then // start_time_unix_nano should also be reset. // Corresponding values are stored in Int64DataPoint. MetricDescriptor_COUNTER_INT64 MetricDescriptor_Type = 4 // Floating point counter measurement. The value cannot decrease, if // resets then the start_time_unix_nano should also be reset. // Recorded values are always >= 0. // Corresponding values are stored in DoubleDataPoint. MetricDescriptor_COUNTER_DOUBLE MetricDescriptor_Type = 5 // Histogram cumulative measurement. // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram cannot decrease; if values are reset then start_time_unix_nano // should also be reset to the new start timestamp. MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 6 // Summary value. Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it // also provides a total count of observations and a sum of all observed // values, it calculates configurable percentiles over a sliding time // window. // Corresponding values are stored in SummaryDataPoint. MetricDescriptor_SUMMARY MetricDescriptor_Type = 7 )
func (MetricDescriptor_Type) Descriptor ¶
func (MetricDescriptor_Type) Descriptor() protoreflect.EnumDescriptor
func (MetricDescriptor_Type) Enum ¶
func (x MetricDescriptor_Type) Enum() *MetricDescriptor_Type
func (MetricDescriptor_Type) EnumDescriptor
deprecated
func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricDescriptor_Type.Descriptor instead.
func (MetricDescriptor_Type) Number ¶
func (x MetricDescriptor_Type) Number() protoreflect.EnumNumber
func (MetricDescriptor_Type) String ¶
func (x MetricDescriptor_Type) String() string
func (MetricDescriptor_Type) Type ¶
func (MetricDescriptor_Type) Type() protoreflect.EnumType
type MetricExportRequest ¶
type MetricExportRequest struct { // Unique sequential ID generated by the client. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Telemetry data. An array of ResourceMetrics. ResourceMetrics []*ResourceMetrics `protobuf:"bytes,2,rep,name=resourceMetrics,proto3" json:"resourceMetrics,omitempty"` // contains filtered or unexported fields }
A request from client to server containing metric data to export.
func (*MetricExportRequest) Descriptor
deprecated
func (*MetricExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use MetricExportRequest.ProtoReflect.Descriptor instead.
func (*MetricExportRequest) GetId ¶
func (x *MetricExportRequest) GetId() uint64
func (*MetricExportRequest) GetResourceMetrics ¶
func (x *MetricExportRequest) GetResourceMetrics() []*ResourceMetrics
func (*MetricExportRequest) ProtoMessage ¶
func (*MetricExportRequest) ProtoMessage()
func (*MetricExportRequest) ProtoReflect ¶
func (x *MetricExportRequest) ProtoReflect() protoreflect.Message
func (*MetricExportRequest) Reset ¶
func (x *MetricExportRequest) Reset()
func (*MetricExportRequest) String ¶
func (x *MetricExportRequest) String() string
type MetricPrepared ¶
type MetricPrepared struct { // metric_descriptor is byte array representation of MetricDescriptor encoded // in ProtoBuf format using proto.Marshal(). MetricDescriptor []byte `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"` // data is a list of one or more TimeSeries for a single metric, where each timeseries has // one or more points. Only one of the following fields is used for the data, depending on // the type of the metric defined by MetricDescriptor.type field. Int64DataPoints []*Int64DataPoint `protobuf:"bytes,2,rep,name=int64_data_points,json=int64DataPoints,proto3" json:"int64_data_points,omitempty"` DoubleDataPoints []*DoubleDataPoint `protobuf:"bytes,3,rep,name=double_data_points,json=doubleDataPoints,proto3" json:"double_data_points,omitempty"` HistogramDataPoints []*HistogramDataPoint `protobuf:"bytes,4,rep,name=histogram_data_points,json=histogramDataPoints,proto3" json:"histogram_data_points,omitempty"` SummaryDataPoints []*SummaryDataPoint `protobuf:"bytes,5,rep,name=summary_data_points,json=summaryDataPoints,proto3" json:"summary_data_points,omitempty"` // contains filtered or unexported fields }
MetricPrepared is the prepared version of Metric.
MetricPrepared is byte-level compatible with Metric. A byte-array encoding of MetricPrepared can be decoded as Metric and vice-versa. This allows senders that need to continuously create and encode instances of Metric with unchanging MetricDescriptor and Resource values to prepare and encode metric_descriptor and resource fields once and then create instances MetricPrepared messages where only timeseries data changes.
func (*MetricPrepared) Descriptor
deprecated
func (*MetricPrepared) Descriptor() ([]byte, []int)
Deprecated: Use MetricPrepared.ProtoReflect.Descriptor instead.
func (*MetricPrepared) GetDoubleDataPoints ¶
func (x *MetricPrepared) GetDoubleDataPoints() []*DoubleDataPoint
func (*MetricPrepared) GetHistogramDataPoints ¶
func (x *MetricPrepared) GetHistogramDataPoints() []*HistogramDataPoint
func (*MetricPrepared) GetInt64DataPoints ¶
func (x *MetricPrepared) GetInt64DataPoints() []*Int64DataPoint
func (*MetricPrepared) GetMetricDescriptor ¶
func (x *MetricPrepared) GetMetricDescriptor() []byte
func (*MetricPrepared) GetSummaryDataPoints ¶
func (x *MetricPrepared) GetSummaryDataPoints() []*SummaryDataPoint
func (*MetricPrepared) ProtoMessage ¶
func (*MetricPrepared) ProtoMessage()
func (*MetricPrepared) ProtoReflect ¶
func (x *MetricPrepared) ProtoReflect() protoreflect.Message
func (*MetricPrepared) Reset ¶
func (x *MetricPrepared) Reset()
func (*MetricPrepared) String ¶
func (x *MetricPrepared) String() string
type RequestBody ¶
type RequestBody struct { RequestType RequestType `protobuf:"varint,1,opt,name=request_type,json=requestType,proto3,enum=baseline2.RequestType" json:"request_type,omitempty"` Export *TraceExportRequest `protobuf:"bytes,2,opt,name=export,proto3" json:"export,omitempty"` // contains filtered or unexported fields }
RequestBody is used by transports that unlike gRPC don't have built-in message type multiplexing such as WebSocket.
func (*RequestBody) Descriptor
deprecated
func (*RequestBody) Descriptor() ([]byte, []int)
Deprecated: Use RequestBody.ProtoReflect.Descriptor instead.
func (*RequestBody) GetExport ¶
func (x *RequestBody) GetExport() *TraceExportRequest
func (*RequestBody) GetRequestType ¶
func (x *RequestBody) GetRequestType() RequestType
func (*RequestBody) ProtoMessage ¶
func (*RequestBody) ProtoMessage()
func (*RequestBody) ProtoReflect ¶
func (x *RequestBody) ProtoReflect() protoreflect.Message
func (*RequestBody) Reset ¶
func (x *RequestBody) Reset()
func (*RequestBody) String ¶
func (x *RequestBody) String() string
type RequestHeader ¶
type RequestHeader struct { // Compression method used for body. Compression CompressionMethod `protobuf:"varint,1,opt,name=compression,proto3,enum=baseline2.CompressionMethod" json:"compression,omitempty"` // Compression level as defined by the compression method. CompressionLevel int32 `protobuf:"varint,2,opt,name=compression_level,json=compressionLevel,proto3" json:"compression_level,omitempty"` // contains filtered or unexported fields }
RequestHeader is used by transports that unlike gRPC don't have built-in request compression such as WebSocket. Request body typically follows the header.
func (*RequestHeader) Descriptor
deprecated
func (*RequestHeader) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.
func (*RequestHeader) GetCompression ¶
func (x *RequestHeader) GetCompression() CompressionMethod
func (*RequestHeader) GetCompressionLevel ¶
func (x *RequestHeader) GetCompressionLevel() int32
func (*RequestHeader) ProtoMessage ¶
func (*RequestHeader) ProtoMessage()
func (*RequestHeader) ProtoReflect ¶
func (x *RequestHeader) ProtoReflect() protoreflect.Message
func (*RequestHeader) Reset ¶
func (x *RequestHeader) Reset()
func (*RequestHeader) String ¶
func (x *RequestHeader) String() string
type RequestType ¶
type RequestType int32
const ( RequestType__ RequestType = 0 RequestType_TraceExport RequestType = 1 )
func (RequestType) Descriptor ¶
func (RequestType) Descriptor() protoreflect.EnumDescriptor
func (RequestType) Enum ¶
func (x RequestType) Enum() *RequestType
func (RequestType) EnumDescriptor
deprecated
func (RequestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RequestType.Descriptor instead.
func (RequestType) Number ¶
func (x RequestType) Number() protoreflect.EnumNumber
func (RequestType) String ¶
func (x RequestType) String() string
func (RequestType) Type ¶
func (RequestType) Type() protoreflect.EnumType
type Resource ¶
type Resource struct { // Set of labels that describe the resource. Attributes []*AttributeKeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` // dropped_attributes_count is the number of dropped attributes. If the value is 0, then // no attributes were dropped. DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
Resource information.
func GenResource ¶
func GenResource() *Resource
func (*Resource) Descriptor
deprecated
func (*Resource) GetAttributes ¶
func (x *Resource) GetAttributes() []*AttributeKeyValue
func (*Resource) GetDroppedAttributesCount ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceLogs ¶
type ResourceLogs struct { // The resource for the spans in this message. // If this field is not set then no resource info is known. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // A list of log records. Logs []*LogRecord `protobuf:"bytes,2,rep,name=logs,proto3" json:"logs,omitempty"` // contains filtered or unexported fields }
A collection of logs from a Resource.
func (*ResourceLogs) Descriptor
deprecated
func (*ResourceLogs) Descriptor() ([]byte, []int)
Deprecated: Use ResourceLogs.ProtoReflect.Descriptor instead.
func (*ResourceLogs) GetLogs ¶
func (x *ResourceLogs) GetLogs() []*LogRecord
func (*ResourceLogs) GetResource ¶
func (x *ResourceLogs) GetResource() *Resource
func (*ResourceLogs) ProtoMessage ¶
func (*ResourceLogs) ProtoMessage()
func (*ResourceLogs) ProtoReflect ¶
func (x *ResourceLogs) ProtoReflect() protoreflect.Message
func (*ResourceLogs) Reset ¶
func (x *ResourceLogs) Reset()
func (*ResourceLogs) String ¶
func (x *ResourceLogs) String() string
type ResourceMetrics ¶
type ResourceMetrics struct { // The resource for the metrics in this message. // If this field is not set then no resource info is known. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // A list of metrics that originate from a resource. InstrumentationLibraryMetrics []*InstrumentationLibraryMetrics `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
A collection of InstrumentationLibraryMetrics from a Resource.
func (*ResourceMetrics) Descriptor
deprecated
func (*ResourceMetrics) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetrics.ProtoReflect.Descriptor instead.
func (*ResourceMetrics) GetInstrumentationLibraryMetrics ¶
func (x *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics
func (*ResourceMetrics) GetResource ¶
func (x *ResourceMetrics) GetResource() *Resource
func (*ResourceMetrics) ProtoMessage ¶
func (*ResourceMetrics) ProtoMessage()
func (*ResourceMetrics) ProtoReflect ¶
func (x *ResourceMetrics) ProtoReflect() protoreflect.Message
func (*ResourceMetrics) Reset ¶
func (x *ResourceMetrics) Reset()
func (*ResourceMetrics) String ¶
func (x *ResourceMetrics) String() string
type ResourceMetricsPrepared ¶
type ResourceMetricsPrepared struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Metrics []*MetricPrepared `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
A list of prepared metrics from a Resource.
func (*ResourceMetricsPrepared) Descriptor
deprecated
func (*ResourceMetricsPrepared) Descriptor() ([]byte, []int)
Deprecated: Use ResourceMetricsPrepared.ProtoReflect.Descriptor instead.
func (*ResourceMetricsPrepared) GetMetrics ¶
func (x *ResourceMetricsPrepared) GetMetrics() []*MetricPrepared
func (*ResourceMetricsPrepared) GetResource ¶
func (x *ResourceMetricsPrepared) GetResource() *Resource
func (*ResourceMetricsPrepared) ProtoMessage ¶
func (*ResourceMetricsPrepared) ProtoMessage()
func (*ResourceMetricsPrepared) ProtoReflect ¶
func (x *ResourceMetricsPrepared) ProtoReflect() protoreflect.Message
func (*ResourceMetricsPrepared) Reset ¶
func (x *ResourceMetricsPrepared) Reset()
func (*ResourceMetricsPrepared) String ¶
func (x *ResourceMetricsPrepared) String() string
type ResourceSpans ¶
type ResourceSpans struct { // The resource for the spans in this message. // If this field is not set then no resource info is known. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // A list of InstrumentationLibrarySpans that originate from a resource. InstrumentationLibrarySpans []*InstrumentationLibrarySpans `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
A collection of InstrumentationLibrarySpans from a Resource.
func (*ResourceSpans) Descriptor
deprecated
func (*ResourceSpans) Descriptor() ([]byte, []int)
Deprecated: Use ResourceSpans.ProtoReflect.Descriptor instead.
func (*ResourceSpans) GetInstrumentationLibrarySpans ¶
func (x *ResourceSpans) GetInstrumentationLibrarySpans() []*InstrumentationLibrarySpans
func (*ResourceSpans) GetResource ¶
func (x *ResourceSpans) GetResource() *Resource
func (*ResourceSpans) ProtoMessage ¶
func (*ResourceSpans) ProtoMessage()
func (*ResourceSpans) ProtoReflect ¶
func (x *ResourceSpans) ProtoReflect() protoreflect.Message
func (*ResourceSpans) Reset ¶
func (x *ResourceSpans) Reset()
func (*ResourceSpans) String ¶
func (x *ResourceSpans) String() string
type ResourceSpansPrepared ¶
type ResourceSpansPrepared struct { Resource []byte `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Spans []*SpanPrepared `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
A collection of spans from a Resource.
func (*ResourceSpansPrepared) Descriptor
deprecated
func (*ResourceSpansPrepared) Descriptor() ([]byte, []int)
Deprecated: Use ResourceSpansPrepared.ProtoReflect.Descriptor instead.
func (*ResourceSpansPrepared) GetResource ¶
func (x *ResourceSpansPrepared) GetResource() []byte
func (*ResourceSpansPrepared) GetSpans ¶
func (x *ResourceSpansPrepared) GetSpans() []*SpanPrepared
func (*ResourceSpansPrepared) ProtoMessage ¶
func (*ResourceSpansPrepared) ProtoMessage()
func (*ResourceSpansPrepared) ProtoReflect ¶
func (x *ResourceSpansPrepared) ProtoReflect() protoreflect.Message
func (*ResourceSpansPrepared) Reset ¶
func (x *ResourceSpansPrepared) Reset()
func (*ResourceSpansPrepared) String ¶
func (x *ResourceSpansPrepared) String() string
type Response ¶
type Response struct { ResponseType RequestType `protobuf:"varint,1,opt,name=response_type,json=responseType,proto3,enum=baseline2.RequestType" json:"response_type,omitempty"` Export *ExportResponse `protobuf:"bytes,2,opt,name=export,proto3" json:"export,omitempty"` // contains filtered or unexported fields }
Response is used by transports that unlike gRPC don't have built-in message type multiplexing such as WebSocket.
func (*Response) Descriptor
deprecated
func (*Response) GetExport ¶
func (x *Response) GetExport() *ExportResponse
func (*Response) GetResponseType ¶
func (x *Response) GetResponseType() RequestType
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type SeverityNumber ¶
type SeverityNumber int32
Possible values for LogRecord.SeverityNumber.
const ( SeverityNumber_UNDEFINED_SEVERITY_NUMBER SeverityNumber = 0 SeverityNumber_TRACE SeverityNumber = 1 SeverityNumber_TRACE2 SeverityNumber = 2 SeverityNumber_TRACE3 SeverityNumber = 3 SeverityNumber_TRACE4 SeverityNumber = 4 SeverityNumber_DEBUG SeverityNumber = 5 SeverityNumber_DEBUG2 SeverityNumber = 6 SeverityNumber_DEBUG3 SeverityNumber = 7 SeverityNumber_DEBUG4 SeverityNumber = 8 SeverityNumber_INFO SeverityNumber = 9 SeverityNumber_INFO2 SeverityNumber = 10 SeverityNumber_INFO3 SeverityNumber = 11 SeverityNumber_INFO4 SeverityNumber = 12 SeverityNumber_WARN SeverityNumber = 13 SeverityNumber_WARN2 SeverityNumber = 14 SeverityNumber_WARN3 SeverityNumber = 15 SeverityNumber_WARN4 SeverityNumber = 16 SeverityNumber_ERROR SeverityNumber = 17 SeverityNumber_ERROR2 SeverityNumber = 18 SeverityNumber_ERROR3 SeverityNumber = 19 SeverityNumber_ERROR4 SeverityNumber = 20 SeverityNumber_FATAL SeverityNumber = 21 SeverityNumber_FATAL2 SeverityNumber = 22 SeverityNumber_FATAL3 SeverityNumber = 23 SeverityNumber_FATAL4 SeverityNumber = 24 )
func (SeverityNumber) Descriptor ¶
func (SeverityNumber) Descriptor() protoreflect.EnumDescriptor
func (SeverityNumber) Enum ¶
func (x SeverityNumber) Enum() *SeverityNumber
func (SeverityNumber) EnumDescriptor
deprecated
func (SeverityNumber) EnumDescriptor() ([]byte, []int)
Deprecated: Use SeverityNumber.Descriptor instead.
func (SeverityNumber) Number ¶
func (x SeverityNumber) Number() protoreflect.EnumNumber
func (SeverityNumber) String ¶
func (x SeverityNumber) String() string
func (SeverityNumber) Type ¶
func (SeverityNumber) Type() protoreflect.EnumType
type Span ¶
type Span struct { // A unique identifier for a trace. All spans from the same trace share // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes // is considered invalid. // // This field is semantically required. Receiver should generate new // random trace_id if empty or invalid trace_id was received. // // This field is required. TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // A unique identifier for a span within a trace, assigned when the span // is created. The ID is an 8-byte array. An ID with all zeroes is considered // invalid. // // This field is semantically required. Receiver should generate new // random span_id if empty or invalid span_id was received. // // This field is required. SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // trace_state conveys information about request position in multiple distributed tracing graphs. // It is a trace_state in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header // See also https://github.com/w3c/distributed-tracing for more details about this field. TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"` // The `span_id` of this span's parent span. If this is a root span, then this // field must be empty. The ID is an 8-byte array. ParentSpanId []byte `protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // A description of the span's operation. // // For example, the name can be a qualified method name or a file name // and a line number where the operation is called. A best practice is to use // the same display name at the same call point in an application. // This makes it easier to correlate spans in different traces. // // This field is semantically required to be set to non-empty string. // When null or empty string received - receiver may use string "name" // as a replacement. There might be smarted algorithms implemented by // receiver to fix the empty span name. // // This field is required. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // Distinguishes between spans generated in a particular context. For example, // two spans with the same name may be distinguished using `CLIENT` (caller) // and `SERVER` (callee) to identify queueing latency associated with the span. Kind Span_SpanKind `protobuf:"varint,6,opt,name=kind,proto3,enum=baseline2.Span_SpanKind" json:"kind,omitempty"` // start_time_unix_nano is the start time of the span. On the client side, this is the time // kept by the local machine where the span execution starts. On the server side, this // is the time when the server's application handler starts running. // 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,7,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 span. On the client side, this is the time // kept by the local machine where the span execution ends. On the server side, this // is the time when the server application handler stops running. // 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,8,opt,name=end_time_unix_nano,json=endTimeUnixNano,proto3" json:"end_time_unix_nano,omitempty"` // attributes is a collection of key/value pairs. The value can be a string, // an integer, a double or the Boolean values `true` or `false`. 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 Attributes []*AttributeKeyValue `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,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 `` /* 131-byte string literal not displayed */ // events is a collection of Event items. Events []*Span_Event `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"` // dropped_events_count is the number of dropped events. If the value is 0, then no // events were dropped. DroppedEventsCount uint32 `protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"` // links is a collection of Links, which are references from this span to a span // in the same or different trace. Links []*Span_Link `protobuf:"bytes,13,rep,name=links,proto3" json:"links,omitempty"` // dropped_links_count is the number of dropped links after the maximum size was // enforced. If this value is 0, then no links were dropped. DroppedLinksCount uint32 `protobuf:"varint,14,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"` // An optional final status for this span. Semantically when Status // wasn't set it is means span ended without errors and assume // Status.Ok (code = 0). Status *Status `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
Span represents a single operation within a trace. Spans can be nested to form a trace tree. Spans may also be linked to other spans from the same or different trace and form graphs. Often, a trace contains a root span that describes the end-to-end latency, and one or more subspans for its sub-operations. A trace can also contain multiple root spans, or none at all. Spans do not need to be contiguous - there may be gaps or overlaps between spans in a trace.
The next available field id is 17.
func (*Span) Descriptor
deprecated
func (*Span) GetAttributes ¶
func (x *Span) GetAttributes() []*AttributeKeyValue
func (*Span) GetDroppedAttributesCount ¶
func (*Span) GetDroppedEventsCount ¶
func (*Span) GetDroppedLinksCount ¶
func (*Span) GetEndTimeUnixNano ¶
func (*Span) GetEvents ¶
func (x *Span) GetEvents() []*Span_Event
func (*Span) GetKind ¶
func (x *Span) GetKind() Span_SpanKind
func (*Span) GetParentSpanId ¶
func (*Span) GetStartTimeUnixNano ¶
func (*Span) GetTraceId ¶
func (*Span) GetTraceState ¶
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) ProtoReflect ¶
func (x *Span) ProtoReflect() protoreflect.Message
type SpanPrepared ¶
type SpanPrepared struct { // A unique identifier for a trace. All spans from the same trace share // the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes // is considered invalid. // // This field is semantically required. Receiver should generate new // random trace_id if empty or invalid trace_id was received. // // This field is required. TraceId []byte `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` // A unique identifier for a span within a trace, assigned when the span // is created. The ID is an 8-byte array. An ID with all zeroes is considered // invalid. // // This field is semantically required. Receiver should generate new // random span_id if empty or invalid span_id was received. // // This field is required. SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` // tracestate conveys information about request position in multiple distributed tracing graphs. // It is a tracestate in w3c-trace-context format: https://www.w3.org/TR/trace-context/#tracestate-header // See also https://github.com/w3c/distributed-tracing for more details about this field. Tracestate string `protobuf:"bytes,3,opt,name=tracestate,proto3" json:"tracestate,omitempty"` // The `span_id` of this span's parent span. If this is a root span, then this // field must be empty. The ID is an 8-byte array. ParentSpanId []byte `protobuf:"bytes,4,opt,name=parent_span_id,json=parentSpanId,proto3" json:"parent_span_id,omitempty"` // A description of the span's operation. // // For example, the name can be a qualified method name or a file name // and a line number where the operation is called. A best practice is to use // the same display name at the same call point in an application. // This makes it easier to correlate spans in different traces. // // This field is semantically required to be set to non-empty string. // When null or empty string received - receiver may use string "name" // as a replacement. There might be smarted algorithms implemented by // receiver to fix the empty span name. // // This field is required. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // Distinguishes between spans generated in a particular context. For example, // two spans with the same name may be distinguished using `CLIENT` (caller) // and `SERVER` (callee) to identify queueing latency associated with the span. Kind SpanPrepared_SpanKind `protobuf:"varint,6,opt,name=kind,proto3,enum=baseline2.SpanPrepared_SpanKind" json:"kind,omitempty"` // start_time_unixnano is the start time of the span. On the client side, this is the time // kept by the local machine where the span execution starts. On the server side, this // is the time when the server's application handler starts running. // 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,7,opt,name=start_time_unixnano,json=startTimeUnixnano,proto3" json:"start_time_unixnano,omitempty"` // end_time_unixnano is the end time of the span. On the client side, this is the time // kept by the local machine where the span execution ends. On the server side, this // is the time when the server application handler stops running. // 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,8,opt,name=end_time_unixnano,json=endTimeUnixnano,proto3" json:"end_time_unixnano,omitempty"` // attributes is a collection of key/value pairs. The value can be a string, // an integer, a double or the Boolean values `true` or `false`. 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 Attributes [][]byte `protobuf:"bytes,9,rep,name=attributes,proto3" json:"attributes,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 `` /* 131-byte string literal not displayed */ // events is a collection of Event items. Events [][]byte `protobuf:"bytes,11,rep,name=events,proto3" json:"events,omitempty"` // dropped_events_count is the number of dropped events. If the value is 0, then no // events were dropped. DroppedEventsCount uint32 `protobuf:"varint,12,opt,name=dropped_events_count,json=droppedEventsCount,proto3" json:"dropped_events_count,omitempty"` // links is a collection of Links, which are references from this span to a span // in the same or different trace. Links [][]byte `protobuf:"bytes,13,rep,name=links,proto3" json:"links,omitempty"` // dropped_links_count is the number of dropped links after the maximum size was // enforced. If this value is 0, then no links were dropped. DroppedLinksCount uint32 `protobuf:"varint,14,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"` // An optional final status for this span. Semantically when Status // wasn't set it is means span ended without errors and assume // Status.Ok (code = 0). Status *Status `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"` // An optional number of local child spans that were generated while this span // was active. Value of -1 indicates that the number of local child spans is unknown. // If local_child_span_count>=0, allows an implementation to detect missing child spans. LocalChildSpanCount int32 `protobuf:"fixed32,16,opt,name=local_child_span_count,json=localChildSpanCount,proto3" json:"local_child_span_count,omitempty"` // contains filtered or unexported fields }
func (*SpanPrepared) Descriptor
deprecated
func (*SpanPrepared) Descriptor() ([]byte, []int)
Deprecated: Use SpanPrepared.ProtoReflect.Descriptor instead.
func (*SpanPrepared) GetAttributes ¶
func (x *SpanPrepared) GetAttributes() [][]byte
func (*SpanPrepared) GetDroppedAttributesCount ¶
func (x *SpanPrepared) GetDroppedAttributesCount() uint32
func (*SpanPrepared) GetDroppedEventsCount ¶
func (x *SpanPrepared) GetDroppedEventsCount() uint32
func (*SpanPrepared) GetDroppedLinksCount ¶
func (x *SpanPrepared) GetDroppedLinksCount() uint32
func (*SpanPrepared) GetEndTimeUnixnano ¶
func (x *SpanPrepared) GetEndTimeUnixnano() uint64
func (*SpanPrepared) GetEvents ¶
func (x *SpanPrepared) GetEvents() [][]byte
func (*SpanPrepared) GetKind ¶
func (x *SpanPrepared) GetKind() SpanPrepared_SpanKind
func (*SpanPrepared) GetLinks ¶
func (x *SpanPrepared) GetLinks() [][]byte
func (*SpanPrepared) GetLocalChildSpanCount ¶
func (x *SpanPrepared) GetLocalChildSpanCount() int32
func (*SpanPrepared) GetName ¶
func (x *SpanPrepared) GetName() string
func (*SpanPrepared) GetParentSpanId ¶
func (x *SpanPrepared) GetParentSpanId() []byte
func (*SpanPrepared) GetSpanId ¶
func (x *SpanPrepared) GetSpanId() []byte
func (*SpanPrepared) GetStartTimeUnixnano ¶
func (x *SpanPrepared) GetStartTimeUnixnano() uint64
func (*SpanPrepared) GetStatus ¶
func (x *SpanPrepared) GetStatus() *Status
func (*SpanPrepared) GetTraceId ¶
func (x *SpanPrepared) GetTraceId() []byte
func (*SpanPrepared) GetTracestate ¶
func (x *SpanPrepared) GetTracestate() string
func (*SpanPrepared) ProtoMessage ¶
func (*SpanPrepared) ProtoMessage()
func (*SpanPrepared) ProtoReflect ¶
func (x *SpanPrepared) ProtoReflect() protoreflect.Message
func (*SpanPrepared) Reset ¶
func (x *SpanPrepared) Reset()
func (*SpanPrepared) String ¶
func (x *SpanPrepared) String() string
type SpanPrepared_SpanKind ¶
type SpanPrepared_SpanKind int32
SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
const ( // Unspecified. Do NOT use as default. // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED. SpanPrepared_SPAN_KIND_UNSPECIFIED SpanPrepared_SpanKind = 0 // Indicates that the span represents an internal operation within an application, // as opposed to an operations happening at the boundaries. Default value. SpanPrepared_INTERNAL SpanPrepared_SpanKind = 1 // Indicates that the span covers server-side handling of an RPC or other // remote network request. SpanPrepared_SERVER SpanPrepared_SpanKind = 2 // Indicates that the span describes a request to some remote service. SpanPrepared_CLIENT SpanPrepared_SpanKind = 3 // Indicates that the span describes a producer sending a message to a broker. // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship // between producer and consumer spans. A PRODUCER span ends when the message was accepted // by the broker while the logical processing of the message might span a much longer time. SpanPrepared_PRODUCER SpanPrepared_SpanKind = 4 // Indicates that the span describes consumer receiving a message from a broker. // Like the PRODUCER kind, there is often no direct critical path latency relationship // between producer and consumer spans. SpanPrepared_CONSUMER SpanPrepared_SpanKind = 5 )
func (SpanPrepared_SpanKind) Descriptor ¶
func (SpanPrepared_SpanKind) Descriptor() protoreflect.EnumDescriptor
func (SpanPrepared_SpanKind) Enum ¶
func (x SpanPrepared_SpanKind) Enum() *SpanPrepared_SpanKind
func (SpanPrepared_SpanKind) EnumDescriptor
deprecated
func (SpanPrepared_SpanKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use SpanPrepared_SpanKind.Descriptor instead.
func (SpanPrepared_SpanKind) Number ¶
func (x SpanPrepared_SpanKind) Number() protoreflect.EnumNumber
func (SpanPrepared_SpanKind) String ¶
func (x SpanPrepared_SpanKind) String() string
func (SpanPrepared_SpanKind) Type ¶
func (SpanPrepared_SpanKind) Type() protoreflect.EnumType
type Span_Event ¶
type Span_Event struct { // time_unix_nano is the time the event occurred. TimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // name of the event. // This field is semantically required to be set to non-empty string. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // attributes is a collection of attribute key/value pairs on the event. Attributes []*AttributeKeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` // dropped_attributes_count is the number of dropped attributes. If the value is 0, // then no attributes were dropped. DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
Event is a time-stamped annotation of the span, consisting of user-supplied text description and key-value pairs.
func (*Span_Event) Descriptor
deprecated
func (*Span_Event) Descriptor() ([]byte, []int)
Deprecated: Use Span_Event.ProtoReflect.Descriptor instead.
func (*Span_Event) GetAttributes ¶
func (x *Span_Event) GetAttributes() []*AttributeKeyValue
func (*Span_Event) GetDroppedAttributesCount ¶
func (x *Span_Event) GetDroppedAttributesCount() uint32
func (*Span_Event) GetName ¶
func (x *Span_Event) GetName() string
func (*Span_Event) GetTimeUnixNano ¶
func (x *Span_Event) GetTimeUnixNano() uint64
func (*Span_Event) ProtoMessage ¶
func (*Span_Event) ProtoMessage()
func (*Span_Event) ProtoReflect ¶
func (x *Span_Event) ProtoReflect() protoreflect.Message
func (*Span_Event) Reset ¶
func (x *Span_Event) Reset()
func (*Span_Event) String ¶
func (x *Span_Event) String() string
type Span_Link ¶
type Span_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"` // The trace_state associated with the link. TraceState string `protobuf:"bytes,3,opt,name=trace_state,json=traceState,proto3" json:"trace_state,omitempty"` // attributes is a collection of attribute key/value pairs on the link. Attributes []*AttributeKeyValue `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"` // dropped_attributes_count is the number of dropped attributes. If the value is 0, // then no attributes were dropped. DroppedAttributesCount uint32 `` /* 130-byte string literal not displayed */ // contains filtered or unexported fields }
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
func (*Span_Link) Descriptor
deprecated
func (*Span_Link) GetAttributes ¶
func (x *Span_Link) GetAttributes() []*AttributeKeyValue
func (*Span_Link) GetDroppedAttributesCount ¶
func (*Span_Link) GetTraceId ¶
func (*Span_Link) GetTraceState ¶
func (*Span_Link) ProtoMessage ¶
func (*Span_Link) ProtoMessage()
func (*Span_Link) ProtoReflect ¶
func (x *Span_Link) ProtoReflect() protoreflect.Message
type Span_SpanKind ¶
type Span_SpanKind int32
SpanKind is the type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.
const ( // Unspecified. Do NOT use as default. // Implementations MAY assume SpanKind to be INTERNAL when receiving UNSPECIFIED. Span_SPAN_KIND_UNSPECIFIED Span_SpanKind = 0 // Indicates that the span represents an internal operation within an application, // as opposed to an operations happening at the boundaries. Default value. Span_INTERNAL Span_SpanKind = 1 // Indicates that the span covers server-side handling of an RPC or other // remote network request. Span_SERVER Span_SpanKind = 2 // Indicates that the span describes a request to some remote service. Span_CLIENT Span_SpanKind = 3 // Indicates that the span describes a producer sending a message to a broker. // Unlike CLIENT and SERVER, there is often no direct critical path latency relationship // between producer and consumer spans. A PRODUCER span ends when the message was accepted // by the broker while the logical processing of the message might span a much longer time. Span_PRODUCER Span_SpanKind = 4 // Indicates that the span describes consumer receiving a message from a broker. // Like the PRODUCER kind, there is often no direct critical path latency relationship // between producer and consumer spans. Span_CONSUMER Span_SpanKind = 5 )
func (Span_SpanKind) Descriptor ¶
func (Span_SpanKind) Descriptor() protoreflect.EnumDescriptor
func (Span_SpanKind) Enum ¶
func (x Span_SpanKind) Enum() *Span_SpanKind
func (Span_SpanKind) EnumDescriptor
deprecated
func (Span_SpanKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Span_SpanKind.Descriptor instead.
func (Span_SpanKind) Number ¶
func (x Span_SpanKind) Number() protoreflect.EnumNumber
func (Span_SpanKind) String ¶
func (x Span_SpanKind) String() string
func (Span_SpanKind) Type ¶
func (Span_SpanKind) Type() protoreflect.EnumType
type Status ¶
type Status struct { // The status code. This is optional field. It is safe to assume 0 (OK) // when not set. Code Status_StatusCode `protobuf:"varint,1,opt,name=code,proto3,enum=baseline2.Status_StatusCode" json:"code,omitempty"` // A developer-facing human readable error message. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs.
func (*Status) Descriptor
deprecated
func (*Status) GetCode ¶
func (x *Status) GetCode() Status_StatusCode
func (*Status) GetMessage ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
type Status_StatusCode ¶
type Status_StatusCode int32
StatusCode mirrors the codes defined at https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/api-tracing.md#statuscanonicalcode
const ( Status_Ok Status_StatusCode = 0 Status_Cancelled Status_StatusCode = 1 Status_UnknownError Status_StatusCode = 2 Status_InvalidArgument Status_StatusCode = 3 Status_DeadlineExceeded Status_StatusCode = 4 Status_NotFound Status_StatusCode = 5 Status_AlreadyExists Status_StatusCode = 6 Status_PermissionDenied Status_StatusCode = 7 Status_ResourceExhausted Status_StatusCode = 8 Status_FailedPrecondition Status_StatusCode = 9 Status_Aborted Status_StatusCode = 10 Status_OutOfRange Status_StatusCode = 11 Status_Unimplemented Status_StatusCode = 12 Status_InternalError Status_StatusCode = 13 Status_DataLoss Status_StatusCode = 15 Status_Unauthenticated Status_StatusCode = 16 )
func (Status_StatusCode) Descriptor ¶
func (Status_StatusCode) Descriptor() protoreflect.EnumDescriptor
func (Status_StatusCode) Enum ¶
func (x Status_StatusCode) Enum() *Status_StatusCode
func (Status_StatusCode) EnumDescriptor
deprecated
func (Status_StatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use Status_StatusCode.Descriptor instead.
func (Status_StatusCode) Number ¶
func (x Status_StatusCode) Number() protoreflect.EnumNumber
func (Status_StatusCode) String ¶
func (x Status_StatusCode) String() string
func (Status_StatusCode) Type ¶
func (Status_StatusCode) Type() protoreflect.EnumType
type StreamExporterClient ¶
type StreamExporterClient interface {
ExportTraces(ctx context.Context, opts ...grpc.CallOption) (StreamExporter_ExportTracesClient, error)
}
StreamExporterClient is the client API for StreamExporter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStreamExporterClient ¶
func NewStreamExporterClient(cc grpc.ClientConnInterface) StreamExporterClient
type StreamExporterServer ¶
type StreamExporterServer interface { ExportTraces(StreamExporter_ExportTracesServer) error // contains filtered or unexported methods }
StreamExporterServer is the server API for StreamExporter service. All implementations must embed UnimplementedStreamExporterServer for forward compatibility
type StreamExporter_ExportTracesClient ¶
type StreamExporter_ExportTracesClient interface { Send(*TraceExportRequest) error Recv() (*ExportResponse, error) grpc.ClientStream }
type StreamExporter_ExportTracesServer ¶
type StreamExporter_ExportTracesServer interface { Send(*ExportResponse) error Recv() (*TraceExportRequest, error) grpc.ServerStream }
type StringKeyValue ¶
type StringKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of AttributeKeyValue that only supports string values.
func (*StringKeyValue) Descriptor
deprecated
func (*StringKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use StringKeyValue.ProtoReflect.Descriptor instead.
func (*StringKeyValue) GetKey ¶
func (x *StringKeyValue) GetKey() string
func (*StringKeyValue) GetValue ¶
func (x *StringKeyValue) GetValue() string
func (*StringKeyValue) ProtoMessage ¶
func (*StringKeyValue) ProtoMessage()
func (*StringKeyValue) ProtoReflect ¶
func (x *StringKeyValue) ProtoReflect() protoreflect.Message
func (*StringKeyValue) Reset ¶
func (x *StringKeyValue) Reset()
func (*StringKeyValue) String ¶
func (x *StringKeyValue) String() string
type SummaryDataPoint ¶
type SummaryDataPoint struct { // The set of labels that uniquely identify this timeseries. Labels []*StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // The total number of recorded values since start_time. Optional since // some systems don't expose this. Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // The total sum of recorded values since start_time. Optional since some // systems don't expose this. If count is zero then this field must be zero. Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // A list of values at different percentiles of the distribution calculated // from the current snapshot. The percentiles must be strictly increasing. PercentileValues []*SummaryDataPoint_ValueAtPercentile `protobuf:"bytes,6,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"` // contains filtered or unexported fields }
SummaryDataPoint is a single data point in a timeseries that describes the time-varying values of a Summary metric.
func (*SummaryDataPoint) Descriptor
deprecated
func (*SummaryDataPoint) Descriptor() ([]byte, []int)
Deprecated: Use SummaryDataPoint.ProtoReflect.Descriptor instead.
func (*SummaryDataPoint) GetCount ¶
func (x *SummaryDataPoint) GetCount() uint64
func (*SummaryDataPoint) GetLabels ¶
func (x *SummaryDataPoint) GetLabels() []*StringKeyValue
func (*SummaryDataPoint) GetPercentileValues ¶
func (x *SummaryDataPoint) GetPercentileValues() []*SummaryDataPoint_ValueAtPercentile
func (*SummaryDataPoint) GetStartTimeUnixNano ¶
func (x *SummaryDataPoint) GetStartTimeUnixNano() uint64
func (*SummaryDataPoint) GetSum ¶
func (x *SummaryDataPoint) GetSum() float64
func (*SummaryDataPoint) GetTimeUnixNano ¶
func (x *SummaryDataPoint) GetTimeUnixNano() uint64
func (*SummaryDataPoint) ProtoMessage ¶
func (*SummaryDataPoint) ProtoMessage()
func (*SummaryDataPoint) ProtoReflect ¶
func (x *SummaryDataPoint) ProtoReflect() protoreflect.Message
func (*SummaryDataPoint) Reset ¶
func (x *SummaryDataPoint) Reset()
func (*SummaryDataPoint) String ¶
func (x *SummaryDataPoint) String() string
type SummaryDataPoint_ValueAtPercentile ¶
type SummaryDataPoint_ValueAtPercentile struct { // The percentile of a distribution. Must be in the interval // [0.0, 100.0]. Percentile float64 `protobuf:"fixed64,1,opt,name=percentile,proto3" json:"percentile,omitempty"` // The value at the given percentile of a distribution. Value float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Represents the value at a given percentile of a distribution.
To record Min and Max values following conventions are used: - The 100th percentile is equivalent to the maximum value observed. - The 0th percentile is equivalent to the minimum value observed.
See the following issue for more context: https://github.com/open-telemetry/opentelemetry-proto/issues/125
func (*SummaryDataPoint_ValueAtPercentile) Descriptor
deprecated
func (*SummaryDataPoint_ValueAtPercentile) Descriptor() ([]byte, []int)
Deprecated: Use SummaryDataPoint_ValueAtPercentile.ProtoReflect.Descriptor instead.
func (*SummaryDataPoint_ValueAtPercentile) GetPercentile ¶
func (x *SummaryDataPoint_ValueAtPercentile) GetPercentile() float64
func (*SummaryDataPoint_ValueAtPercentile) GetValue ¶
func (x *SummaryDataPoint_ValueAtPercentile) GetValue() float64
func (*SummaryDataPoint_ValueAtPercentile) ProtoMessage ¶
func (*SummaryDataPoint_ValueAtPercentile) ProtoMessage()
func (*SummaryDataPoint_ValueAtPercentile) ProtoReflect ¶
func (x *SummaryDataPoint_ValueAtPercentile) ProtoReflect() protoreflect.Message
func (*SummaryDataPoint_ValueAtPercentile) Reset ¶
func (x *SummaryDataPoint_ValueAtPercentile) Reset()
func (*SummaryDataPoint_ValueAtPercentile) String ¶
func (x *SummaryDataPoint_ValueAtPercentile) String() string
type TraceExportRequest ¶
type TraceExportRequest struct { // Unique sequential ID generated by the client. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Telemetry data. An array of ResourceSpans. ResourceSpans []*ResourceSpans `protobuf:"bytes,2,rep,name=resourceSpans,proto3" json:"resourceSpans,omitempty"` // contains filtered or unexported fields }
A request from client to server containing trace data to export.
func (*TraceExportRequest) Descriptor
deprecated
func (*TraceExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use TraceExportRequest.ProtoReflect.Descriptor instead.
func (*TraceExportRequest) GetId ¶
func (x *TraceExportRequest) GetId() uint64
func (*TraceExportRequest) GetResourceSpans ¶
func (x *TraceExportRequest) GetResourceSpans() []*ResourceSpans
func (*TraceExportRequest) ProtoMessage ¶
func (*TraceExportRequest) ProtoMessage()
func (*TraceExportRequest) ProtoReflect ¶
func (x *TraceExportRequest) ProtoReflect() protoreflect.Message
func (*TraceExportRequest) Reset ¶
func (x *TraceExportRequest) Reset()
func (*TraceExportRequest) String ¶
func (x *TraceExportRequest) String() string
type TraceExportRequestPrepared ¶
type TraceExportRequestPrepared struct { // Unique sequential ID generated by the client. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Telemetry data. An array of ResourceSpans. ResourceSpans []*ResourceSpansPrepared `protobuf:"bytes,2,rep,name=resourceSpans,proto3" json:"resourceSpans,omitempty"` // contains filtered or unexported fields }
A request from client to server containing trace data to export.
func (*TraceExportRequestPrepared) Descriptor
deprecated
func (*TraceExportRequestPrepared) Descriptor() ([]byte, []int)
Deprecated: Use TraceExportRequestPrepared.ProtoReflect.Descriptor instead.
func (*TraceExportRequestPrepared) GetId ¶
func (x *TraceExportRequestPrepared) GetId() uint64
func (*TraceExportRequestPrepared) GetResourceSpans ¶
func (x *TraceExportRequestPrepared) GetResourceSpans() []*ResourceSpansPrepared
func (*TraceExportRequestPrepared) ProtoMessage ¶
func (*TraceExportRequestPrepared) ProtoMessage()
func (*TraceExportRequestPrepared) ProtoReflect ¶
func (x *TraceExportRequestPrepared) ProtoReflect() protoreflect.Message
func (*TraceExportRequestPrepared) Reset ¶
func (x *TraceExportRequestPrepared) Reset()
func (*TraceExportRequestPrepared) String ¶
func (x *TraceExportRequestPrepared) String() string
type UnaryExporterClient ¶
type UnaryExporterClient interface {
ExportTraces(ctx context.Context, in *TraceExportRequest, opts ...grpc.CallOption) (*ExportResponse, error)
}
UnaryExporterClient is the client API for UnaryExporter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUnaryExporterClient ¶
func NewUnaryExporterClient(cc grpc.ClientConnInterface) UnaryExporterClient
type UnaryExporterServer ¶
type UnaryExporterServer interface { ExportTraces(context.Context, *TraceExportRequest) (*ExportResponse, error) // contains filtered or unexported methods }
UnaryExporterServer is the server API for UnaryExporter service. All implementations must embed UnimplementedUnaryExporterServer for forward compatibility
type UnimplementedStreamExporterServer ¶
type UnimplementedStreamExporterServer struct { }
UnimplementedStreamExporterServer must be embedded to have forward compatible implementations.
func (UnimplementedStreamExporterServer) ExportTraces ¶
func (UnimplementedStreamExporterServer) ExportTraces(StreamExporter_ExportTracesServer) error
type UnimplementedUnaryExporterServer ¶
type UnimplementedUnaryExporterServer struct { }
UnimplementedUnaryExporterServer must be embedded to have forward compatible implementations.
func (UnimplementedUnaryExporterServer) ExportTraces ¶
func (UnimplementedUnaryExporterServer) ExportTraces(context.Context, *TraceExportRequest) (*ExportResponse, error)
type UnsafeStreamExporterServer ¶
type UnsafeStreamExporterServer interface {
// contains filtered or unexported methods
}
UnsafeStreamExporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StreamExporterServer will result in compilation errors.
type UnsafeUnaryExporterServer ¶
type UnsafeUnaryExporterServer interface {
// contains filtered or unexported methods
}
UnsafeUnaryExporterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UnaryExporterServer will result in compilation errors.
type ValueType ¶
type ValueType int32
ValueType is the enumeration of possible types that a value can have.
const ( // String is in `AnyValue.string_value`. Strings are the most common value types and // we using 0 value for enum results in omission of the type from the wire (and hence // more compact representation). ValueType_STRING ValueType = 0 // 64-bit int is in `AnyValue.int_value`. ValueType_INT ValueType = 1 // Boolean field is in `AnyValue.bool_value`. ValueType_BOOL ValueType = 2 // 64-bit float. ValueType_DOUBLE ValueType = 3 // Array of values is in `ExoticValue.array_values` field. ValueType_ARRAY ValueType = 4 // Key-value list is in `ExoticValue.kvlist_values` field. ValueType_KVLIST ValueType = 5 // Spec requires that "null values within arrays MUST be preserved as-is". Use this // type to represent null values. All other fields in AnyValue are not set. ValueType_NULL ValueType = 6 )
func (ValueType) Descriptor ¶
func (ValueType) Descriptor() protoreflect.EnumDescriptor
func (ValueType) EnumDescriptor
deprecated
func (ValueType) Number ¶
func (x ValueType) Number() protoreflect.EnumNumber
func (ValueType) Type ¶
func (ValueType) Type() protoreflect.EnumType