Skip to content

feat: Deprecate CreateChildSpan#410

Draft
nhhagen wants to merge 1 commit into
mainfrom
deprecate-create-child-span-2024-09-25-21-12-07
Draft

feat: Deprecate CreateChildSpan#410
nhhagen wants to merge 1 commit into
mainfrom
deprecate-create-child-span-2024-09-25-21-12-07

Conversation

@nhhagen
Copy link
Copy Markdown
Member

@nhhagen nhhagen commented Sep 25, 2024

github.com/coopnorge/go-datadog-lib/tracing.CreateChildSpan nearly identical
to gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer.StartSpanFromContext there
is little value for us to maintain our own version.

CreateChildSpan does not return a context.Context making it impossible to
create child spans and attach logs to correct span.

Closes: #409

hadrienk
hadrienk previously approved these changes Sep 26, 2024
AtzeDeVries
AtzeDeVries previously approved these changes Sep 26, 2024
@nhhagen nhhagen requested a review from bendiknesbo September 26, 2024 10:16
@nhhagen nhhagen marked this pull request as draft December 18, 2024 11:32
`github.com/coopnorge/go-datadog-lib/tracing.CreateChildSpan` nearly identical
to `gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer.StartSpanFromContext` there
is little value for us to maintain our own version.

`CreateChildSpan` does not return a context.Context making it impossible to
create child spans and attach logs to correct span.

Closes: #409
@nhhagen nhhagen force-pushed the deprecate-create-child-span-2024-09-25-21-12-07 branch from 6bce313 to d8a4cf9 Compare August 11, 2025 11:43
@policy-bot-coop-norge policy-bot-coop-norge Bot dismissed stale reviews from hadrienk and AtzeDeVries August 11, 2025 11:43

Invalidated by push of d8a4cf9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate CreateChildSpan in github.com/coopnorge/go-datadog-lib/tracing

3 participants