protoc

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TracerType_name = map[int32]string{
		0: "Java",
		1: "Database",
		2: "Redis",
		3: "Memcached",
		4: "Mongo",
		5: "External",
		6: "MQP",
		7: "MQC",
	}
	TracerType_value = map[string]int32{
		"Java":      0,
		"Database":  1,
		"Redis":     2,
		"Memcached": 3,
		"Mongo":     4,
		"External":  5,
		"MQP":       6,
		"MQC":       7,
	}
)

Enum value maps for TracerType.

View Source
var (
	HttpMethod_name = map[int32]string{
		0: "UNKNOWN",
		1: "GET",
		2: "POST",
		3: "PUT",
		4: "DELETE",
		5: "HEAD",
		6: "CONNECT",
		7: "OPTIONS",
		8: "TRACE",
		9: "PATCH",
	}
	HttpMethod_value = map[string]int32{
		"UNKNOWN": 0,
		"GET":     1,
		"POST":    2,
		"PUT":     3,
		"DELETE":  4,
		"HEAD":    5,
		"CONNECT": 6,
		"OPTIONS": 7,
		"TRACE":   8,
		"PATCH":   9,
	}
)

Enum value maps for HttpMethod.

View Source
var (
	UserInfoOriginType_name = map[int32]string{
		0: "SELF",
		1: "SERVER",
		2: "APP",
		3: "BROWSER",
		4: "NETWORK",
	}
	UserInfoOriginType_value = map[string]int32{
		"SELF":    0,
		"SERVER":  1,
		"APP":     2,
		"BROWSER": 3,
		"NETWORK": 4,
	}
)

Enum value maps for UserInfoOriginType.

View Source
var File_protoc_trace_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ActionTrace

type ActionTrace struct {
	Time       int64        `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
	Tid        string       `protobuf:"bytes,2,opt,name=tid,proto3" json:"tid,omitempty"`
	Rid        string       `protobuf:"bytes,3,opt,name=rid,proto3" json:"rid,omitempty"`
	Refid      string       `protobuf:"bytes,4,opt,name=refid,proto3" json:"refid,omitempty"`
	Duration   int64        `protobuf:"varint,5,opt,name=duration,proto3" json:"duration,omitempty"`
	Tmd5       string       `protobuf:"bytes,6,opt,name=tmd5,proto3" json:"tmd5,omitempty"`
	Action     string       `protobuf:"bytes,7,opt,name=action,proto3" json:"action,omitempty"`
	Cross      string       `protobuf:"bytes,9,opt,name=cross,proto3" json:"cross,omitempty"`
	UnableBack bool         `protobuf:"varint,10,opt,name=unableBack,proto3" json:"unableBack,omitempty"`
	User       *UserInfo    `protobuf:"bytes,12,opt,name=user,proto3" json:"user,omitempty"`
	Detail     *TraceDetail `protobuf:"bytes,13,opt,name=detail,proto3" json:"detail,omitempty"`
	Ip         string       `protobuf:"bytes,14,opt,name=ip,proto3" json:"ip,omitempty"`
	Method     HttpMethod   `protobuf:"varint,15,opt,name=method,proto3,enum=protoc.HttpMethod" json:"method,omitempty"`
	Status     int32        `protobuf:"varint,16,opt,name=status,proto3" json:"status,omitempty"`
	Url        string       `protobuf:"bytes,17,opt,name=url,proto3" json:"url,omitempty"`
	NoSample   bool         `protobuf:"varint,18,opt,name=noSample,proto3" json:"noSample,omitempty"` // false 采样 true 非采样
	// contains filtered or unexported fields
}

func (*ActionTrace) Descriptor deprecated

func (*ActionTrace) Descriptor() ([]byte, []int)

Deprecated: Use ActionTrace.ProtoReflect.Descriptor instead.

func (*ActionTrace) GetAction

func (x *ActionTrace) GetAction() string

func (*ActionTrace) GetCross

func (x *ActionTrace) GetCross() string

func (*ActionTrace) GetDetail

func (x *ActionTrace) GetDetail() *TraceDetail

func (*ActionTrace) GetDuration

func (x *ActionTrace) GetDuration() int64

func (*ActionTrace) GetIp

func (x *ActionTrace) GetIp() string

func (*ActionTrace) GetMethod

func (x *ActionTrace) GetMethod() HttpMethod

func (*ActionTrace) GetNoSample

func (x *ActionTrace) GetNoSample() bool

func (*ActionTrace) GetRefid

func (x *ActionTrace) GetRefid() string

func (*ActionTrace) GetRid

func (x *ActionTrace) GetRid() string

func (*ActionTrace) GetStatus

func (x *ActionTrace) GetStatus() int32

func (*ActionTrace) GetTid

func (x *ActionTrace) GetTid() string

func (*ActionTrace) GetTime

func (x *ActionTrace) GetTime() int64

func (*ActionTrace) GetTmd5

func (x *ActionTrace) GetTmd5() string

func (*ActionTrace) GetUnableBack

func (x *ActionTrace) GetUnableBack() bool

func (*ActionTrace) GetUrl

func (x *ActionTrace) GetUrl() string

func (*ActionTrace) GetUser

func (x *ActionTrace) GetUser() *UserInfo

func (*ActionTrace) ProtoMessage

func (*ActionTrace) ProtoMessage()

func (*ActionTrace) ProtoReflect added in v1.3.0

func (x *ActionTrace) ProtoReflect() protoreflect.Message

func (*ActionTrace) Reset

func (x *ActionTrace) Reset()

func (*ActionTrace) String

func (x *ActionTrace) String() string

type ActionTraces

type ActionTraces struct {
	Traces []*ActionTrace `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
	// contains filtered or unexported fields
}

func (*ActionTraces) Descriptor deprecated

func (*ActionTraces) Descriptor() ([]byte, []int)

Deprecated: Use ActionTraces.ProtoReflect.Descriptor instead.

func (*ActionTraces) GetTraces

func (x *ActionTraces) GetTraces() []*ActionTrace

func (*ActionTraces) ProtoMessage

func (*ActionTraces) ProtoMessage()

func (*ActionTraces) ProtoReflect added in v1.3.0

func (x *ActionTraces) ProtoReflect() protoreflect.Message

func (*ActionTraces) Reset

func (x *ActionTraces) Reset()

func (*ActionTraces) String

func (x *ActionTraces) String() string

type HttpMethod

type HttpMethod int32
const (
	HttpMethod_UNKNOWN HttpMethod = 0
	HttpMethod_GET     HttpMethod = 1
	HttpMethod_POST    HttpMethod = 2
	HttpMethod_PUT     HttpMethod = 3
	HttpMethod_DELETE  HttpMethod = 4
	HttpMethod_HEAD    HttpMethod = 5
	HttpMethod_CONNECT HttpMethod = 6
	HttpMethod_OPTIONS HttpMethod = 7
	HttpMethod_TRACE   HttpMethod = 8
	HttpMethod_PATCH   HttpMethod = 9
)

func (HttpMethod) Descriptor added in v1.3.0

func (HttpMethod) Descriptor() protoreflect.EnumDescriptor

func (HttpMethod) Enum added in v1.3.0

func (x HttpMethod) Enum() *HttpMethod

func (HttpMethod) EnumDescriptor deprecated

func (HttpMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use HttpMethod.Descriptor instead.

func (HttpMethod) Number added in v1.3.0

func (x HttpMethod) Number() protoreflect.EnumNumber

func (HttpMethod) String

func (x HttpMethod) String() string

func (HttpMethod) Type added in v1.3.0

type TraceDetail

type TraceDetail struct {

	// query string
	QueryStringParameters string            `protobuf:"bytes,1,opt,name=queryStringParameters,proto3" json:"queryStringParameters,omitempty"`
	Custom                map[string]string `` /* 153-byte string literal not displayed */
	Tracers               []*TracerItem     `protobuf:"bytes,3,rep,name=tracers,proto3" json:"tracers,omitempty"`
	Health                map[string]string `` /* 153-byte string literal not displayed */
	// For custom point cuts
	Posts          map[string]string `` /* 151-byte string literal not displayed */
	RequestHeader  map[string]string `` /* 167-byte string literal not displayed */
	ResponseHeader map[string]string `` /* 169-byte string literal not displayed */
	Session        map[string]string `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TraceDetail) Descriptor deprecated

func (*TraceDetail) Descriptor() ([]byte, []int)

Deprecated: Use TraceDetail.ProtoReflect.Descriptor instead.

func (*TraceDetail) GetCustom

func (x *TraceDetail) GetCustom() map[string]string

func (*TraceDetail) GetHealth

func (x *TraceDetail) GetHealth() map[string]string

func (*TraceDetail) GetPosts

func (x *TraceDetail) GetPosts() map[string]string

func (*TraceDetail) GetQueryStringParameters

func (x *TraceDetail) GetQueryStringParameters() string

func (*TraceDetail) GetRequestHeader

func (x *TraceDetail) GetRequestHeader() map[string]string

func (*TraceDetail) GetResponseHeader

func (x *TraceDetail) GetResponseHeader() map[string]string

func (*TraceDetail) GetSession

func (x *TraceDetail) GetSession() map[string]string

func (*TraceDetail) GetTracers

func (x *TraceDetail) GetTracers() []*TracerItem

func (*TraceDetail) ProtoMessage

func (*TraceDetail) ProtoMessage()

func (*TraceDetail) ProtoReflect added in v1.3.0

func (x *TraceDetail) ProtoReflect() protoreflect.Message

func (*TraceDetail) Reset

func (x *TraceDetail) Reset()

func (*TraceDetail) String

func (x *TraceDetail) String() string

type TracerException

type TracerException struct {
	Name  string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Msg   string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Stack []string `protobuf:"bytes,3,rep,name=stack,proto3" json:"stack,omitempty"`
	Error bool     `protobuf:"varint,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*TracerException) Descriptor deprecated

func (*TracerException) Descriptor() ([]byte, []int)

Deprecated: Use TracerException.ProtoReflect.Descriptor instead.

func (*TracerException) GetError

func (x *TracerException) GetError() bool

func (*TracerException) GetMsg

func (x *TracerException) GetMsg() string

func (*TracerException) GetName

func (x *TracerException) GetName() string

func (*TracerException) GetStack

func (x *TracerException) GetStack() []string

func (*TracerException) ProtoMessage

func (*TracerException) ProtoMessage()

func (*TracerException) ProtoReflect added in v1.3.0

func (x *TracerException) ProtoReflect() protoreflect.Message

func (*TracerException) Reset

func (x *TracerException) Reset()

func (*TracerException) String

func (x *TracerException) String() string

type TracerItem

type TracerItem struct {
	TracerId       int32              `protobuf:"varint,1,opt,name=tracerId,proto3" json:"tracerId,omitempty"`
	ParentTracerId int32              `protobuf:"varint,2,opt,name=parentTracerId,proto3" json:"parentTracerId,omitempty"`
	Start          int64              `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End            int64              `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	Metric         string             `protobuf:"bytes,5,opt,name=metric,proto3" json:"metric,omitempty"`
	Clazz          string             `protobuf:"bytes,6,opt,name=clazz,proto3" json:"clazz,omitempty"`
	Method         string             `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	Type           TracerType         `protobuf:"varint,8,opt,name=type,proto3,enum=protoc.TracerType" json:"type,omitempty"`
	Params         *TracerParams      `protobuf:"bytes,9,opt,name=params,proto3" json:"params,omitempty"`
	Datas          map[string]string  `` /* 152-byte string literal not displayed */
	Backtrace      []string           `protobuf:"bytes,11,rep,name=backtrace,proto3" json:"backtrace,omitempty"`
	Exception      []*TracerException `protobuf:"bytes,12,rep,name=exception,proto3" json:"exception,omitempty"`
	// contains filtered or unexported fields
}

func (*TracerItem) Descriptor deprecated

func (*TracerItem) Descriptor() ([]byte, []int)

Deprecated: Use TracerItem.ProtoReflect.Descriptor instead.

func (*TracerItem) GetBacktrace

func (x *TracerItem) GetBacktrace() []string

func (*TracerItem) GetClazz

func (x *TracerItem) GetClazz() string

func (*TracerItem) GetDatas

func (x *TracerItem) GetDatas() map[string]string

func (*TracerItem) GetEnd

func (x *TracerItem) GetEnd() int64

func (*TracerItem) GetException

func (x *TracerItem) GetException() []*TracerException

func (*TracerItem) GetMethod

func (x *TracerItem) GetMethod() string

func (*TracerItem) GetMetric

func (x *TracerItem) GetMetric() string

func (*TracerItem) GetParams

func (x *TracerItem) GetParams() *TracerParams

func (*TracerItem) GetParentTracerId

func (x *TracerItem) GetParentTracerId() int32

func (*TracerItem) GetStart

func (x *TracerItem) GetStart() int64

func (*TracerItem) GetTracerId

func (x *TracerItem) GetTracerId() int32

func (*TracerItem) GetType

func (x *TracerItem) GetType() TracerType

func (*TracerItem) ProtoMessage

func (*TracerItem) ProtoMessage()

func (*TracerItem) ProtoReflect added in v1.3.0

func (x *TracerItem) ProtoReflect() protoreflect.Message

func (*TracerItem) Reset

func (x *TracerItem) Reset()

func (*TracerItem) String

func (x *TracerItem) String() string

type TracerParams

type TracerParams struct {
	Vendor       string `protobuf:"bytes,1,opt,name=vendor,proto3" json:"vendor,omitempty"`
	Protocol     string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	Instance     string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
	Operation    string `protobuf:"bytes,4,opt,name=operation,proto3" json:"operation,omitempty"`
	Key          string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"`
	Bytes        int32  `protobuf:"varint,6,opt,name=bytes,proto3" json:"bytes,omitempty"`
	ExternalId   string `protobuf:"bytes,7,opt,name=externalId,proto3" json:"externalId,omitempty"`
	TxData       string `protobuf:"bytes,8,opt,name=txData,proto3" json:"txData,omitempty"`
	AsyncWait    bool   `protobuf:"varint,9,opt,name=asyncWait,proto3" json:"asyncWait,omitempty"`
	AsyncContext string `protobuf:"bytes,10,opt,name=asyncContext,proto3" json:"asyncContext,omitempty"`
	HandleRows   int32  `protobuf:"varint,11,opt,name=handleRows,proto3" json:"handleRows,omitempty"`
	StatusCode   int32  `protobuf:"varint,15,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	// contains filtered or unexported fields
}

func (*TracerParams) Descriptor deprecated

func (*TracerParams) Descriptor() ([]byte, []int)

Deprecated: Use TracerParams.ProtoReflect.Descriptor instead.

func (*TracerParams) GetAsyncContext

func (x *TracerParams) GetAsyncContext() string

func (*TracerParams) GetAsyncWait

func (x *TracerParams) GetAsyncWait() bool

func (*TracerParams) GetBytes

func (x *TracerParams) GetBytes() int32

func (*TracerParams) GetExternalId

func (x *TracerParams) GetExternalId() string

func (*TracerParams) GetHandleRows

func (x *TracerParams) GetHandleRows() int32

func (*TracerParams) GetInstance

func (x *TracerParams) GetInstance() string

func (*TracerParams) GetKey

func (x *TracerParams) GetKey() string

func (*TracerParams) GetOperation

func (x *TracerParams) GetOperation() string

func (*TracerParams) GetProtocol

func (x *TracerParams) GetProtocol() string

func (*TracerParams) GetStatusCode added in v1.3.0

func (x *TracerParams) GetStatusCode() int32

func (*TracerParams) GetTxData

func (x *TracerParams) GetTxData() string

func (*TracerParams) GetVendor

func (x *TracerParams) GetVendor() string

func (*TracerParams) ProtoMessage

func (*TracerParams) ProtoMessage()

func (*TracerParams) ProtoReflect added in v1.3.0

func (x *TracerParams) ProtoReflect() protoreflect.Message

func (*TracerParams) Reset

func (x *TracerParams) Reset()

func (*TracerParams) String

func (x *TracerParams) String() string

type TracerType

type TracerType int32
const (
	TracerType_Java      TracerType = 0
	TracerType_Database  TracerType = 1
	TracerType_Redis     TracerType = 2
	TracerType_Memcached TracerType = 3
	TracerType_Mongo     TracerType = 4
	TracerType_External  TracerType = 5
	TracerType_MQP       TracerType = 6
	TracerType_MQC       TracerType = 7
)

func (TracerType) Descriptor added in v1.3.0

func (TracerType) Descriptor() protoreflect.EnumDescriptor

func (TracerType) Enum added in v1.3.0

func (x TracerType) Enum() *TracerType

func (TracerType) EnumDescriptor deprecated

func (TracerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TracerType.Descriptor instead.

func (TracerType) Number added in v1.3.0

func (x TracerType) Number() protoreflect.EnumNumber

func (TracerType) String

func (x TracerType) String() string

func (TracerType) Type added in v1.3.0

type UserInfo

type UserInfo struct {
	Origin UserInfoOriginType `protobuf:"varint,1,opt,name=origin,proto3,enum=protoc.UserInfoOriginType" json:"origin,omitempty"`
	Value  string             `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Error  string             `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

func (*UserInfo) Descriptor() ([]byte, []int)

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetError

func (x *UserInfo) GetError() string

func (*UserInfo) GetOrigin

func (x *UserInfo) GetOrigin() UserInfoOriginType

func (*UserInfo) GetValue

func (x *UserInfo) GetValue() string

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect added in v1.3.0

func (x *UserInfo) ProtoReflect() protoreflect.Message

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

type UserInfoOriginType

type UserInfoOriginType int32
const (
	UserInfoOriginType_SELF    UserInfoOriginType = 0
	UserInfoOriginType_SERVER  UserInfoOriginType = 1
	UserInfoOriginType_APP     UserInfoOriginType = 2
	UserInfoOriginType_BROWSER UserInfoOriginType = 3
	UserInfoOriginType_NETWORK UserInfoOriginType = 4
)

func (UserInfoOriginType) Descriptor added in v1.3.0

func (UserInfoOriginType) Enum added in v1.3.0

func (UserInfoOriginType) EnumDescriptor deprecated

func (UserInfoOriginType) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserInfoOriginType.Descriptor instead.

func (UserInfoOriginType) Number added in v1.3.0

func (UserInfoOriginType) String

func (x UserInfoOriginType) String() string

func (UserInfoOriginType) Type added in v1.3.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL