Skip to content

release: v1.9.0#791

Open
hannahkm wants to merge 12 commits intomainfrom
release-v1.9.0
Open

release: v1.9.0#791
hannahkm wants to merge 12 commits intomainfrom
release-v1.9.0

Conversation

@hannahkm
Copy link
Copy Markdown
Contributor

@hannahkm hannahkm commented Feb 19, 2026

Corresponding release for dd-trace-go v2.7.1

Includes upgrade to Go 1.25

@github-actions github-actions bot added the conventional-commit/chore Maintenance work that does not show up in the release notes label Feb 19, 2026
@kakkoyun
Copy link
Copy Markdown
Member

@darccio you might want your recent fix in this branch

…ntext.Context` (#798)

Go's type checker assigns each loaded package a unique object. If the
same package is loaded twice through different means, you get two
distinct objects for what is logically the same type. `types.Implements`
uses pointer equality to compare types across method signatures, so it
sees them as different and returns `false`.

`ResolveInterfaceTypeByName` loads context.Context one way; the
instrumented code is type-checked another way. The two `context`
packages end up as different objects, `types.Implements` fails, and
`ArgumentThatImplements` never matches.

Fix by falling back to comparing method names and package paths instead
of relying on pointer equality.
@darccio
Copy link
Copy Markdown
Member

darccio commented Mar 12, 2026

#798 cherrypicked in 0365524

@datadog-prod-us1-5

This comment has been minimized.

@hannahkm hannahkm marked this pull request as ready for review March 31, 2026 13:26
@hannahkm hannahkm requested a review from a team as a code owner March 31, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conventional-commit/chore Maintenance work that does not show up in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants