Documentation ¶
Index ¶
- func AppendUserToTrace(_ context.Context, _ string) errordeprecated
- func CreateChildSpan(sourceCtx context.Context, operation, resource string) ddtrace.Span
- func CreateNestedTrace(sourceCtx context.Context, operation, resource string) (ddtrace.Span, error)deprecated
- func LogFieldsWithTrace(sourceCtx context.Context, severity logger.Level, message string, ...)deprecated
- func LogWithTrace(sourceCtx context.Context, severity logger.Level, message string)deprecated
- func OverrideTraceResourceName(sourceCtx context.Context, newResourceName string) error
- type TraceDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUserToTrace
deprecated
AppendUserToTrace includes identifier of user that would be attached to span in datadog
Deprecated: AppendUserToTrace previously added CoopID to Datadog-spans, which could be used to look up other PII-information. This is not wanted, and has been replaced with a no-op.
func CreateChildSpan ¶ added in v2.9.0
CreateChildSpan will create a child-span of the span embedded in sourceCtx. If there is no trace-information in sourceCtx, a noop-span will be returned. The caller is responsible for calling span.Finish().
func LogFieldsWithTrace
deprecated
func LogFieldsWithTrace(sourceCtx context.Context, severity logger.Level, message string, fields logger.Fields)
LogFieldsWithTrace will log message by logger.Level with trace if it's present in context.Context
Deprecated: LogFieldsWithTrace will be removed in a future major version and should not be used. Use logger.WithContext(ctx Context) from github.com/coopnorge/go-logger
func LogWithTrace
deprecated
LogWithTrace will log message by logger.Level with trace if it's present in context.Context
Deprecated: LogWithTrace will be removed in a future major version and should not be used. Use logger.WithContext(ctx Context) from github.com/coopnorge/go-logger
Types ¶
type TraceDetails ¶
type TraceDetails struct { // DatadogSpan represents a chunk of computation time for Datadog system DatadogSpan ddtrace.Span }
TraceDetails that must be included in context