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 + const MaxSpanSize + func ConvertTraceIDToDatadogFormat(id string) string + func GetContentType(ctx context.Context, request *http.Request) (contentType string) + func GetID(ctx context.Context) (id string, haveParent bool) + func NewLib() interfaces.Tracing + func NewOpenTelemetryOperation(env, serviceName string, ctx context.Context, option interfaces.Option, ...) interfaces.Interaction + type Datadog struct + func NewDatadog(option interfaces.Option) *Datadog + func (c *Datadog) Closing() (err error) + func (c *Datadog) GetFormattedTraceID(ctx context.Context) (id string) + func (c *Datadog) InjectRootData(ctx context.Context, key string, data interface{}, ...) + func (c *Datadog) Log(msg string) + func (c *Datadog) Operation(ctx context.Context, opts ...interfaces.InteractionOption) interfaces.Interaction + func (c *Datadog) SetDefaultLogs(span *OpenTelemetryOperation, skip int) + func (c *Datadog) Setup() (err error) + type HttpRequestInterceptor struct + func NewHttpRequestInterceptor(log loggerInterfaces.Logger, core http.RoundTripper) HttpRequestInterceptor + func (c HttpRequestInterceptor) RoundTrip(r *http.Request) (*http.Response, error) + type Jaeger struct + func NewJaeger(option interfaces.Option) *Jaeger + func (c *Jaeger) Closing() (err error) + func (c *Jaeger) GetFormattedTraceID(ctx context.Context) (id string) + func (c *Jaeger) InjectRootData(ctx context.Context, key string, data interface{}, ...) + func (c *Jaeger) Operation(ctx context.Context, opts ...interfaces.InteractionOption) interfaces.Interaction + func (c *Jaeger) Setup() (err error) + type Modules struct + Option interfaces.Option + func (c *Modules) Closing() (err error) + func (c *Modules) GetConfig() interfaces.Option + func (c *Modules) GetFormattedTraceID(ctx context.Context) (id string) + func (c *Modules) GrpcOperation(ctx context.Context, m map[string]string, opts ...interfaces.InteractionOption) interfaces.Interaction + func (c *Modules) Init(option interfaces.Option) + func (c *Modules) InjectRootData(ctx context.Context, key string, data interface{}, ...) + func (c *Modules) New() interfaces.Tracing + func (c *Modules) Operation(ctx context.Context, opts ...interfaces.InteractionOption) interfaces.Interaction + type OpenTelemetryOperation struct + func (c *OpenTelemetryOperation) Error(err error) + func (c *OpenTelemetryOperation) Fatal() + func (c *OpenTelemetryOperation) Finish() + func (c *OpenTelemetryOperation) IncomingContext() context.Context + func (c *OpenTelemetryOperation) OutgoingContext() context.Context + func (c *OpenTelemetryOperation) Save(request *http.Request) + func (c *OpenTelemetryOperation) SetDefaultLogs(skip int) + func (c *OpenTelemetryOperation) SetLog(key string, val interface{}) + func (c *OpenTelemetryOperation) SetTagBool(key string, value bool) + func (c *OpenTelemetryOperation) SetTagInt(key string, value int) + func (c *OpenTelemetryOperation) SetTagString(key, value string) + func (c *OpenTelemetryOperation) StatusOK(des string) + type Operation struct + func (c *Operation) Error(err error) + func (c *Operation) Fatal() + func (c *Operation) Finish() + func (c *Operation) IncomingContext() context.Context + func (c *Operation) OutgoingContext() context.Context + func (c *Operation) SetLog(name string, data interface{}) + func (c *Operation) SetTagBool(key string, value bool) + func (c *Operation) SetTagInt(key string, value int) + func (c *Operation) SetTagString(key, value string) + func (c *Operation) StatusOK(data string) + type Storages struct + func NewStorages() *Storages + func (c *Storages) Count() int + func (c *Storages) Delete(id string) + func (c *Storages) Load(id string) (it interface{}, ok bool) + func (c *Storages) LoadAll() (res []interface{}) + func (c *Storages) Store(id string, it interface{})