interpreters

package
v0.0.0-...-c4caace Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DatabaseTypeName = "database"

DatabaseTypeName returns the default database type

View Source
const ProcessSpanInterpreterName = "process"

ProcessSpanInterpreterName is the name used for matching this interpreter

View Source
const ProcessTypeName = "process"

ProcessTypeName returns the default process type

View Source
const SQLSpanInterpreterName = "sql"

SQLSpanInterpreterName is the name used for matching this interpreter

View Source
const ServiceInstanceTypeName = "service-instance"

ServiceInstanceTypeName returns the default service instance type

View Source
const ServiceTypeName = "service"

ServiceTypeName returns the default service type

View Source
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

type Interpreter struct {
	Config *config.Config
}

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

type SourceInterpreter interface {
	Interpret(span []*pb.Span) []*pb.Span
}

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

func (*TraefikInterpreter) Interpret

func (t *TraefikInterpreter) Interpret(spans []*pb.Span) []*pb.Span

Interpret performs the interpretation for the TraefikInterpreter

type TypeInterpreter

type TypeInterpreter interface {
	Interpret(span *model.SpanWithMeta) *pb.Span
}

TypeInterpreter provides the interface for the different type interpreters

Jump to

Keyboard shortcuts

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