parser

package
v0.0.0-...-05f6ae7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeHttpMethod        = "http.method"         // 1.x
	AttributeHttpRequestMethod = "http.request.method" // 2.x

	AttributeHttpUrl = "http.url" // 1.x
	AttributeUrlFull = "url.full" // 2.x
)
View Source
const (
	AttributeMessageDest     = "messaging.destination"
	AttributeMessageDestName = "messaging.destination.name"
)
View Source
const (
	Unknown = "unknown"

	AttributeNetPeerName   = "net.peer.name"  // 1.x
	AttributeNetPeerPort   = "net.peer.port"  // 1.x
	AttributeServerAddress = "server.address" // 2.x
	AttributeServerPort    = "server.port"    // 2.x

	AttributeNetSockPeerAddr    = "net.sock.peer.addr"   // 1.x
	AttributeNetSockPeerPort    = "net.sock.peer.port"   // 1.x
	AttributeNetworkPeerAddress = "network.peer.address" // 2.x
	AttributeNetworkPeerPort    = "network.peer.port"    // 2.x

)

Variables

View Source
var (
	NodeName = getNodeName()
	NodeIp   = getNodeIp()
)

Functions

func BuildExternalKey

func BuildExternalKey(keyValue *cache.ReusedKeyValue, pid string, containerId string, serviceName string, name string, peer string, system string, isError bool) string

buildExternalKey Http/Rpc Red指标

func BuildServerKey

func BuildServerKey(keyValue *cache.ReusedKeyValue, pid string, containerId string, serviceName string, name string, topSpan bool, isError bool) string

func GetClientPeer

func GetClientPeer(attr pcommon.Map) string

Types

type DbParser

type DbParser struct {
}

func NewDbParser

func NewDbParser() *DbParser

func (*DbParser) Parse

func (parser *DbParser) Parse(logger *zap.Logger, pid string, containerId string, serviceName string, span ptrace.Span, spanAttr pcommon.Map, keyValue *cache.ReusedKeyValue) string

type HttpParser

type HttpParser struct {
	// contains filtered or unexported fields
}

func NewHttpParser

func NewHttpParser(urlParser string) *HttpParser

func (*HttpParser) Parse

func (parser *HttpParser) Parse(logger *zap.Logger, pid string, containerId string, serviceName string, span ptrace.Span, spanAttr pcommon.Map, keyValue *cache.ReusedKeyValue) string

type MqParser

type MqParser struct {
}

func NewMqParser

func NewMqParser() *MqParser

func (*MqParser) Parse

func (parser *MqParser) Parse(logger *zap.Logger, pid string, containerId string, serviceName string, span ptrace.Span, spanAttr pcommon.Map, keyValue *cache.ReusedKeyValue) string

type Parser

type Parser interface {
	Parse(logger *zap.Logger, pid string, containerId string, serviceName string, span ptrace.Span, spanAttr pcommon.Map, keyValue *cache.ReusedKeyValue) string
}

type RpcParser

type RpcParser struct {
}

func NewRpcParser

func NewRpcParser() *RpcParser

func (*RpcParser) Parse

func (parser *RpcParser) Parse(logger *zap.Logger, pid string, containerId string, serviceName string, span ptrace.Span, spanAttr pcommon.Map, keyValue *cache.ReusedKeyValue) string

Jump to

Keyboard shortcuts

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