Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ func CreateNestedTrace(sourceCtx context.Context, operation, resource string) (d
// 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().
//
// Deprecated: Use gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer.StartSpanFromContext instead.
func CreateChildSpan(sourceCtx context.Context, operation, resource string) ddtrace.Span {
existingSpan := getSpanFromContext(sourceCtx)
if existingSpan == nil {
Expand Down
Loading