Versions in this module Expand all Collapse all v1 v1.0.1001 Dec 3, 2023 v1.0.1000 Aug 14, 2023 Changes in this version + var DefaultAllowLogging = []string + var TracingConfigManual = map[string]string + func ErrorStack(msg interface{}, stack interface{}) []byte + func GetInteractionError(opts []InteractionOption) (name error) + func GetInteractionKind(opts []InteractionOption) (kind trace.SpanKind) + func GetInteractionName(opts []InteractionOption) (name string) + func GetInteractionRequest(opts []InteractionOption) (value *http.Request) + func GetInteractionTypeType(opts []InteractionOption) (name string) + func InteractionKindServerToString(kind trace.SpanKind) string + func SetManual(man map[string]string) map[string]string + type ContextSpan string + const ContextRootSpan + type DefaultLogSpanSave struct + RequestBody bool + RequestHeader bool + ResponseBody bool + ResponseHeader bool + type DefaultMsgFormat struct + Data interface{} + File string + Line int + type EncryptionProvider interface + Decrypt func(meta string, data []byte) (res []byte, err error) + Encrypt func(data []byte) (meta string, res []byte, err error) + type ErrorDetails struct + Msg interface{} + Stack interface{} + type Interaction interface + Error func(error) + Fatal func() + Finish func() + IncomingContext func() context.Context + OutgoingContext func() context.Context + SetLog func(key string, val interface{}) + SetTagBool func(key string, value bool) + SetTagInt func(key string, value int) + SetTagString func(key, value string) + StatusOK func(des string) + type InteractionError struct + func (c *InteractionError) Type() InteractionOptionType + func (c *InteractionError) Value() interface{} + type InteractionKind struct + func (c *InteractionKind) Type() InteractionOptionType + func (c *InteractionKind) Value() interface{} + type InteractionName struct + func (c *InteractionName) Type() InteractionOptionType + func (c *InteractionName) Value() interface{} + type InteractionOption interface + Type func() InteractionOptionType + Value func() interface{} + func NewInteractionError(name error) InteractionOption + func NewInteractionKind(kind SpanKind) InteractionOption + func NewInteractionName(name string) InteractionOption + func NewInteractionRequest(request *http.Request) InteractionOption + func NewInteractionTypeType(name string) InteractionOption + type InteractionOptionType int + const InteractionOptionTypeError + const InteractionOptionTypeKind + const InteractionOptionTypeName + const InteractionOptionTypeRequest + const InteractionOptionTypeType + type InteractionRequest struct + func (c *InteractionRequest) Type() InteractionOptionType + func (c *InteractionRequest) Value() interface{} + type InteractionTypeType struct + func (c *InteractionTypeType) Type() InteractionOptionType + func (c *InteractionTypeType) Value() interface{} + type Jaeger struct + Endpoint string + Url string + type ModulesTraceId struct + Apm string + Jaeger string + type Option struct + AllowLogging []string + Config TracingConfig + EncryptSpanLog bool + EncryptionProvider EncryptionProvider + IsValid func(string) bool + Logger interfaces.Logger + Name string + PrintOperation bool + Provider Provider + func ParsingConfigCli(logger interfaces.Logger, name string, opt TracingConfigCli) Option + type Provider int + const ProviderDatadog + const ProviderJaeger + func GetProviderFromString(pr string) Provider + type SpanKind int + const SpanKindClient + const SpanKindConsumer + const SpanKindDefault + const SpanKindInternal + const SpanKindProducer + const SpanKindServer + type Tracing interface + Closing func() (err error) + GetConfig func() Option + GetFormattedTraceID func(ctx context.Context) (id string) + GrpcOperation func(ctx context.Context, metadata map[string]string, opts ...InteractionOption) Interaction + Init func(Option) + InjectRootData func(ctx context.Context, key string, data interface{}, opts ...InteractionOption) + New func() Tracing + Operation func(ctx context.Context, opts ...InteractionOption) Interaction + type TracingConfig struct + Jaeger Jaeger + type TracingConfigCli struct + Option Option + Provider string + type TracingMessage struct + SpanName string + type TracingProvider interface + Closing func() error + GetFormattedTraceID func(ctx context.Context) (id string) + InjectRootData func(ctx context.Context, key string, data interface{}, opts ...InteractionOption) + Operation func(ctx context.Context, opts ...InteractionOption) Interaction + Setup func() error