Documentation ¶
Index ¶
- Constants
- Variables
- func BuildTDiscoveryInfo(opts Options) (*apm.TDiscoveryInfo, error)
- func GetDiscoveryInfo() *apm.TDiscoveryInfo
- func GetLocalIP() string
- func NewAppID(project, appName string) string
- func NewRawAppID(project, appName string) string
- func NewRawResourceID(ports []string, podID string) string
- func NewResourceID(ports []string, podID string) string
- func Start(opts Options) error
- type Options
- type TracingReporter
Constants ¶
View Source
const ( DefaultDiscoveryInterval = "290s" DefaultTracingBatchInterval = "1m" DefaultTracingBatchSize = 1000 )
View Source
const (
AgentVersion = "2.1.0"
)
Variables ¶
View Source
var StartInventory = make(chan bool)
View Source
var StartKPI = make(chan bool)
View Source
var StartTracing = make(chan bool)
View Source
var StopInventory = make(chan bool)
View Source
var StopKPI = make(chan bool)
View Source
var StopTracing = make(chan bool)
Switchers
Functions ¶
func BuildTDiscoveryInfo ¶
func BuildTDiscoveryInfo(opts Options) (*apm.TDiscoveryInfo, error)
BuildTDiscoveryInfo create a APM instance info if you report this info to cloud, APM can discovery your process should report it every 5 mins
func GetDiscoveryInfo ¶
func GetDiscoveryInfo() *apm.TDiscoveryInfo
func NewRawAppID ¶
func NewRawResourceID ¶
func NewResourceID ¶
NewResourceID generate unique md5 ID for a process
Types ¶
type TracingReporter ¶
type TracingReporter struct {
// contains filtered or unexported fields
}
func NewTracingReporter ¶
func NewTracingReporter(batchInterval string, batchSize int) *TracingReporter
func (*TracingReporter) StartReportSpans ¶
func (tr *TracingReporter) StartReportSpans()
func (*TracingReporter) WriteSpan ¶
func (tr *TracingReporter) WriteSpan(span *zipkincore.Span)
Click to show internal directories.
Click to hide internal directories.