Documentation ¶
Index ¶
- func AppendUserToTrace(sourceCtx context.Context, user string) error
- func CreateNestedTrace(sourceCtx context.Context, operation, resource string) (ddtrace.Span, error)
- func LogFieldsWithTrace(sourceCtx context.Context, severity logger.Level, message string, ...)
- func LogWithTrace(sourceCtx context.Context, severity logger.Level, message string)
- func OverrideTraceResourceName(sourceCtx context.Context, newResourceName string) error
- type TraceDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendUserToTrace ¶
AppendUserToTrace includes identifier of user that would be attached to span in datadog
func CreateNestedTrace ¶
CreateNestedTrace will fork parent tracer to attach to parent one with new operation and resource from sourceCtx
func LogFieldsWithTrace ¶
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
func LogWithTrace ¶
LogWithTrace will log message by logger.Level with trace if it's present in context.Context
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
Click to show internal directories.
Click to hide internal directories.