Skip to content

fix(ddtrace/tracer): postpone span events/links serialization#3429

Merged
darccio merged 3 commits into
mainfrom
fix-incident-37240
Apr 15, 2025
Merged

fix(ddtrace/tracer): postpone span events/links serialization#3429
darccio merged 3 commits into
mainfrom
fix-incident-37240

Conversation

@darccio

@darccio darccio commented Apr 15, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Related to incident 37240; moves span events/links serialization to later to ensure proper locking is in place when calling these functions.

It also cherry-picks from #3427.

Supersedes #3334.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • New code is free of linting errors. You can check this by running golangci-lint run locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

Unsure? Have a question? Request a review!

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Apr 15, 2025

Copy link
Copy Markdown

Datadog Report

Branch report: fix-incident-37240
Commit report: 043cffa
Test service: dd-trace-go

✅ 0 Failed, 4478 Passed, 64 Skipped, 3m 44.16s Total Time

@pr-commenter

pr-commenter Bot commented Apr 15, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-04-15 08:01:55

Comparing candidate commit fe828cf in PR branch fix-incident-37240 with baseline commit 61cfc53 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 55 metrics, 1 unstable metrics.

Comment thread ddtrace/tracer/span.go
@darccio
darccio marked this pull request as ready for review April 15, 2025 09:52
@darccio
darccio requested a review from a team as a code owner April 15, 2025 09:52

@felixge felixge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This follows Invariant I and II as outlined in my analysis document. Please backport to v1.

@hannahkm hannahkm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! let's include this in rc5 and keep an eye on things 👍🏼

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants