Documentation
¶
Index ¶
- Variables
- type ExpectedSpan
- type Span
- type SpanProto
- func (*SpanProto) Descriptor() ([]byte, []int)deprecated
- func (x *SpanProto) GetAttributes() map[string]*structpb.Value
- func (x *SpanProto) GetDuration() *durationpb.Duration
- func (x *SpanProto) GetEndTime() *timestamppb.Timestamp
- func (x *SpanProto) GetOperationName() string
- func (x *SpanProto) GetParentId() string
- func (x *SpanProto) GetServiceName() string
- func (x *SpanProto) GetSpanId() string
- func (x *SpanProto) GetSpanKind() string
- func (x *SpanProto) GetSpanStatus() string
- func (x *SpanProto) GetStartTime() *timestamppb.Timestamp
- func (*SpanProto) ProtoMessage()
- func (x *SpanProto) ProtoReflect() protoreflect.Message
- func (x *SpanProto) Reset()
- func (x *SpanProto) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_span_span_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ExpectedSpan ¶
type ExpectedSpan struct {
ServiceName string
OperationName *string
SpanKind *string
SpanStatus *string
// contains filtered or unexported fields
}
func NewExpectedSpan ¶
func NewExpectedSpan( dto *parser.ExpectedSpanDTO, ) *ExpectedSpan
func (*ExpectedSpan) String ¶
func (e *ExpectedSpan) String() string
type Span ¶
type Span struct {
SpanId string
ParentId string
ServiceName string
OperationName string
SpanKind string
SpanStatus string
StartTime time.Time
EndTime time.Time
Duration time.Duration
Attributes map[string]any
}
type SpanProto ¶
type SpanProto struct {
SpanId string `protobuf:"bytes,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
ParentId string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
OperationName string `protobuf:"bytes,4,opt,name=operation_name,json=operationName,proto3" json:"operation_name,omitempty"`
SpanKind string `protobuf:"bytes,5,opt,name=span_kind,json=spanKind,proto3" json:"span_kind,omitempty"`
SpanStatus string `protobuf:"bytes,6,opt,name=span_status,json=spanStatus,proto3" json:"span_status,omitempty"`
StartTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
EndTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
Duration *durationpb.Duration `protobuf:"bytes,9,opt,name=duration,proto3" json:"duration,omitempty"`
Attributes map[string]*structpb.Value `` /* 148-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*SpanProto) Descriptor
deprecated
func (*SpanProto) GetDuration ¶
func (x *SpanProto) GetDuration() *durationpb.Duration
func (*SpanProto) GetEndTime ¶
func (x *SpanProto) GetEndTime() *timestamppb.Timestamp
func (*SpanProto) GetOperationName ¶
func (*SpanProto) GetParentId ¶
func (*SpanProto) GetServiceName ¶
func (*SpanProto) GetSpanKind ¶
func (*SpanProto) GetSpanStatus ¶
func (*SpanProto) GetStartTime ¶
func (x *SpanProto) GetStartTime() *timestamppb.Timestamp
func (*SpanProto) ProtoMessage ¶
func (*SpanProto) ProtoMessage()
func (*SpanProto) ProtoReflect ¶
func (x *SpanProto) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.