Documentation ¶
Index ¶
- type Annotation
- type Attribute
- type Attributes
- type BoolAttribute
- type Bucket
- type BucketOptions
- type BucketOptionsExplicit
- type DistributionValue
- type DoubleAttribute
- type DoubleValue
- type Exemplar
- type ExportMetricsServiceRequest
- type ExportTraceServiceRequest
- type Int64Value
- type IntAttribute
- type LabelKey
- type LabelValue
- type Language
- type LibraryInfo
- type Link
- type LinkType
- type Links
- type MessageEvent
- type MessageEventType
- type Metric
- type MetricDescriptor
- type MetricDescriptor_Type
- type Module
- type Node
- type Point
- type PointDistributionValue
- type PointDoubleValue
- type PointInt64Value
- type PointSummaryValue
- type PointValue
- type ProcessIdentifier
- type Resource
- type ServiceInfo
- type Snapshot
- type SnapshotValueAtPercentile
- type Span
- type SpanKind
- type StackFrame
- type StackFrames
- type StackTrace
- type Status
- type StringAttribute
- type SummaryValue
- type TimeEvent
- type TimeEventValue
- type TimeEvents
- type TimeSeries
- type Timestamp
- type TraceState
- type TraceStateEntry
- type TruncatableString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { Description *TruncatableString `json:"description,omitempty"` Attributes *Attributes `json:"attributes,omitempty"` }
type Attributes ¶
type BoolAttribute ¶
type BoolAttribute struct {
BoolValue bool `json:"boolValue,omitempty"`
}
type BucketOptions ¶
type BucketOptions interface {
// contains filtered or unexported methods
}
type BucketOptionsExplicit ¶
type BucketOptionsExplicit struct {
Bounds []float64 `json:"bounds,omitempty"`
}
func (*BucketOptionsExplicit) MarshalJSON ¶
func (be *BucketOptionsExplicit) MarshalJSON() ([]byte, error)
MarshalJSON creates JSON formatted the same way as jsonpb so that the OpenCensus service can correctly determine the underlying value type. This custom MarshalJSON exists because, by default BucketOptionsExplicit is JSON marshalled as:
{"bounds":[1,2,3]}
but it should be marshalled as:
{"explicit":{"bounds":[1,2,3]}}
type DistributionValue ¶
type DistributionValue struct { Count int64 `json:"count,omitempty"` Sum float64 `json:"sum,omitempty"` SumOfSquaredDeviation float64 `json:"sum_of_squared_deviation,omitempty"` BucketOptions BucketOptions `json:"bucket_options,omitempty"` Buckets []*Bucket `json:"buckets,omitempty"` }
type DoubleAttribute ¶
type DoubleAttribute struct {
DoubleValue float64 `json:"doubleValue,omitempty"`
}
type DoubleValue ¶
type DoubleValue struct {
Value float64 `json:"value,omitempty"`
}
type Int64Value ¶
type Int64Value struct {
Value int64 `json:"value,omitempty"`
}
type IntAttribute ¶
type IntAttribute struct {
IntValue int64 `json:"intValue,omitempty"`
}
type LabelValue ¶
type LibraryInfo ¶
type Link ¶
type Link struct { TraceID []byte `json:"trace_id,omitempty"` SpanID []byte `json:"span_id,omitempty"` Type LinkType `json:"type,omitempty"` Attributes *Attributes `json:"attributes,omitempty"` TraceState *TraceState `json:"tracestate,omitempty"` }
type MessageEvent ¶
type MessageEvent struct { Type MessageEventType `json:"type,omitempty"` ID uint64 `json:"id,omitempty"` UncompressedSize uint64 `json:"uncompressed_size,omitempty"` CompressedSize uint64 `json:"compressed_size,omitempty"` }
type MessageEventType ¶
type MessageEventType int32
const ( UnspecifiedMessageEvent MessageEventType = iota SentMessageEvent ReceivedMessageEvent )
type Metric ¶
type Metric struct { MetricDescriptor *MetricDescriptor `json:"metric_descriptor,omitempty"` Timeseries []*TimeSeries `json:"timeseries,omitempty"` Resource *Resource `json:"resource,omitempty"` }
type MetricDescriptor ¶
type MetricDescriptor struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Unit string `json:"unit,omitempty"` Type MetricDescriptor_Type `json:"type,omitempty"` LabelKeys []*LabelKey `json:"label_keys,omitempty"` }
type MetricDescriptor_Type ¶
type MetricDescriptor_Type int32
const ( MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0 MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1 MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2 MetricDescriptor_GAUGE_DISTRIBUTION MetricDescriptor_Type = 3 MetricDescriptor_CUMULATIVE_INT64 MetricDescriptor_Type = 4 MetricDescriptor_CUMULATIVE_DOUBLE MetricDescriptor_Type = 5 MetricDescriptor_CUMULATIVE_DISTRIBUTION MetricDescriptor_Type = 6 MetricDescriptor_SUMMARY MetricDescriptor_Type = 7 )
type Module ¶
type Module struct { Module *TruncatableString `json:"module,omitempty"` BuildID *TruncatableString `json:"build_id,omitempty"` }
type Node ¶
type Node struct { Identifier *ProcessIdentifier `json:"identifier,omitempty"` LibraryInfo *LibraryInfo `json:"library_info,omitempty"` ServiceInfo *ServiceInfo `json:"service_info,omitempty"` Attributes map[string]string `json:"attributes,omitempty"` }
type Point ¶
type Point struct { Timestamp *Timestamp `json:"timestamp,omitempty"` Value PointValue `json:"value,omitempty"` }
func (*Point) MarshalJSON ¶
MarshalJSON creates JSON formatted the same way as jsonpb so that the OpenCensus service can correctly determine the underlying value type. This custom MarshalJSON exists because, by default *Point is JSON marshalled as:
{"value": {"int64Value": 1}}
but it should be marshalled as:
{"int64Value": 1}
type PointDistributionValue ¶
type PointDistributionValue struct {
DistributionValue *DistributionValue `json:"distributionValue,omitempty"`
}
type PointDoubleValue ¶
type PointDoubleValue struct {
DoubleValue float64 `json:"doubleValue,omitempty"`
}
type PointInt64Value ¶
type PointInt64Value struct {
Int64Value int64 `json:"int64Value,omitempty"`
}
type PointSummaryValue ¶
type PointSummaryValue struct {
SummaryValue *SummaryValue `json:"summaryValue,omitempty"`
}
type PointValue ¶
type PointValue interface {
// contains filtered or unexported methods
}
type ProcessIdentifier ¶
type ServiceInfo ¶
type ServiceInfo struct {
Name string `json:"name,omitempty"`
}
type Snapshot ¶
type Snapshot struct { Count *Int64Value `json:"count,omitempty"` Sum *DoubleValue `json:"sum,omitempty"` PercentileValues []*SnapshotValueAtPercentile `json:"percentile_values,omitempty"` }
type Span ¶
type Span struct { TraceID []byte `json:"trace_id,omitempty"` SpanID []byte `json:"span_id,omitempty"` TraceState *TraceState `json:"tracestate,omitempty"` ParentSpanID []byte `json:"parent_span_id,omitempty"` Name *TruncatableString `json:"name,omitempty"` Kind SpanKind `json:"kind,omitempty"` StartTime Timestamp `json:"start_time,omitempty"` EndTime Timestamp `json:"end_time,omitempty"` Attributes *Attributes `json:"attributes,omitempty"` StackTrace *StackTrace `json:"stack_trace,omitempty"` TimeEvents *TimeEvents `json:"time_events,omitempty"` Links *Links `json:"links,omitempty"` Status *Status `json:"status,omitempty"` Resource *Resource `json:"resource,omitempty"` SameProcessAsParentSpan bool `json:"same_process_as_parent_span,omitempty"` ChildSpanCount bool `json:"child_span_count,omitempty"` }
type StackFrame ¶
type StackFrame struct { FunctionName *TruncatableString `json:"function_name,omitempty"` OriginalFunctionName *TruncatableString `json:"original_function_name,omitempty"` FileName *TruncatableString `json:"file_name,omitempty"` LineNumber int64 `json:"line_number,omitempty"` ColumnNumber int64 `json:"column_number,omitempty"` LoadModule *Module `json:"load_module,omitempty"` SourceVersion *TruncatableString `json:"source_version,omitempty"` }
type StackFrames ¶
type StackFrames struct { Frame []*StackFrame `json:"frame,omitempty"` DroppedFramesCount int32 `json:"dropped_frames_count,omitempty"` }
type StackTrace ¶
type StackTrace struct { StackFrames *StackFrames `json:"stack_frames,omitempty"` StackTraceHashID uint64 `json:"stack_trace_hash_id,omitempty"` }
type StringAttribute ¶
type StringAttribute struct {
StringValue *TruncatableString `json:"stringValue,omitempty"`
}
type SummaryValue ¶
type SummaryValue struct { Count *Int64Value `json:"count,omitempty"` Sum *DoubleValue `json:"sum,omitempty"` Snapshot *Snapshot `json:"snapshot,omitempty"` }
type TimeEvent ¶
type TimeEvent struct { Time Timestamp `json:"time,omitempty"` MessageEvent *MessageEvent `json:"messageEvent,omitempty"` Annotation *Annotation `json:"annotation,omitempty"` }
type TimeEventValue ¶
type TimeEventValue interface {
// contains filtered or unexported methods
}
type TimeEvents ¶
type TimeSeries ¶
type TimeSeries struct { StartTimestamp *Timestamp `json:"start_timestamp,omitempty"` LabelValues []*LabelValue `json:"label_values,omitempty"` Points []*Point `json:"points,omitempty"` }
type TraceState ¶
type TraceState struct {
Entries []*TraceStateEntry `json:"entries,omitempty"`
}
type TraceStateEntry ¶
type TruncatableString ¶
Click to show internal directories.
Click to hide internal directories.