Documentation ¶
Index ¶
Constants ¶
const DatabaseTypeName = "database"
DatabaseTypeName returns the default database type
const ProcessSpanInterpreterName = "process"
ProcessSpanInterpreterName is the name used for matching this interpreter
const ProcessTypeName = "process"
ProcessTypeName returns the default process type
const SQLSpanInterpreterName = "sql"
SQLSpanInterpreterName is the name used for matching this interpreter
const ServiceInstanceTypeName = "service-instance"
ServiceInstanceTypeName returns the default service instance type
const ServiceTypeName = "service"
ServiceTypeName returns the default service type
const TraefikSpanInterpreterSpan = "traefik"
TraefikSpanInterpreterSpan is the name used for matching this interpreter
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSpanInterpreter ¶
type DefaultSpanInterpreter struct {
Interpreter
}
DefaultSpanInterpreter sets up the default span interpreter
func MakeDefaultSpanInterpreter ¶
func MakeDefaultSpanInterpreter(config *config.Config) *DefaultSpanInterpreter
MakeDefaultSpanInterpreter creates an instance of the default span interpreter
func (*DefaultSpanInterpreter) Interpret ¶
func (in *DefaultSpanInterpreter) Interpret(span *pb.Span) *pb.Span
Interpret performs the interpretation for the DefaultSpanInterpreter
func (*DefaultSpanInterpreter) ServiceName ¶
func (in *DefaultSpanInterpreter) ServiceName(span *pb.Span) string
ServiceName calculates a Service Name for this span given the interpreter config
type Interpreter ¶
Interpreter provides a structure for any service identifier config mappings
func (*Interpreter) CreateServiceInstanceURN ¶
func (i *Interpreter) CreateServiceInstanceURN(serviceName string, hostname string, pid int, createTime int64) string
CreateServiceInstanceURN creates the urn identifier for all service instance components
func (*Interpreter) CreateServiceURN ¶
func (i *Interpreter) CreateServiceURN(serviceName string) string
CreateServiceURN creates the urn identifier for all service components
type ProcessSpanInterpreter ¶
type ProcessSpanInterpreter struct {
Interpreter
}
ProcessSpanInterpreter sets up the process span interpreter
func MakeProcessSpanInterpreter ¶
func MakeProcessSpanInterpreter(config *config.Config) *ProcessSpanInterpreter
MakeProcessSpanInterpreter creates an instance of the process span interpreter
func (*ProcessSpanInterpreter) Interpret ¶
func (in *ProcessSpanInterpreter) Interpret(span *model.SpanWithMeta) *pb.Span
Interpret performs the interpretation for the ProcessSpanInterpreter
func (*ProcessSpanInterpreter) LanguageToComponentType ¶
func (in *ProcessSpanInterpreter) LanguageToComponentType(spanLanguage string) string
LanguageToComponentType converts a trace language to a component type
type SQLSpanInterpreter ¶
type SQLSpanInterpreter struct {
Interpreter
}
SQLSpanInterpreter sets up the sql span interpreter
func MakeSQLSpanInterpreter ¶
func MakeSQLSpanInterpreter(config *config.Config) *SQLSpanInterpreter
MakeSQLSpanInterpreter creates an instance of the sql span interpreter
func (*SQLSpanInterpreter) Interpret ¶
func (in *SQLSpanInterpreter) Interpret(span *model.SpanWithMeta) *pb.Span
Interpret performs the interpretation for the SQLSpanInterpreter
type SourceInterpreter ¶
SourceInterpreter provides the interface for the different source interpreters
type TraefikInterpreter ¶
type TraefikInterpreter struct {
Interpreter
}
TraefikInterpreter sets up the default span interpreter
func MakeTraefikInterpreter ¶
func MakeTraefikInterpreter(config *config.Config) *TraefikInterpreter
MakeTraefikInterpreter creates an instance of the traefik span interpreter
func (*TraefikInterpreter) CreateServiceInstanceURN ¶
func (t *TraefikInterpreter) CreateServiceInstanceURN(serviceName string, hostname string) string
CreateServiceInstanceURN creates the urn identifier for all traefik service instance components
type TypeInterpreter ¶
type TypeInterpreter interface {
Interpret(span *model.SpanWithMeta) *pb.Span
}
TypeInterpreter provides the interface for the different type interpreters