Skip to content

use dd-trace-go 1.74.6 (A transition to dd-trace-go/V2)#210

Merged
joeyzhao2018 merged 8 commits into
mainfrom
joey/workaround
Sep 11, 2025
Merged

use dd-trace-go 1.74.6 (A transition to dd-trace-go/V2)#210
joeyzhao2018 merged 8 commits into
mainfrom
joey/workaround

Conversation

@joeyzhao2018
Copy link
Copy Markdown
Contributor

@joeyzhao2018 joeyzhao2018 commented Sep 11, 2025

https://datadoghq.atlassian.net/browse/APMSVLS-171

What does this PR do?

Update the dependency dd-trace-go version from 1.73.1 to 1.74.6.

This is important although it's just a minor version update, because 1.74 is a forward compatibility version (as it uses v2 via an adapter). In other words, customers can use dd-trace-go v2 along with it without breaking any trace.
For example, you can import "github.com/DataDog/dd-trace-go/v2/ddtrace/tracer" and create a custom span span, ctx := tracer.StartSpanFromContext(ctx, "custom-using-v2") and still connected in one trace. (which would be broken with <=1.73)
Screenshot 2025-09-10 at 5 10 20 PM

Motivation

  1. This will unblock customers who want to use dd-trace-go v2 Upgrade dd-trace-go v2 #204
  2. dd-trace-go v1.74.6 contains important fixes.
  3. Previous fix about sampling priority unblocked us to use dd-trace-go>1.74

Testing Guidelines

Tested in real apps to validate the forward compatibility as shown in the graph above. The v2 APIs usage itself is also tested in dd-trace-go.

Additional Notes

Types of changes

  • Bug fix
  • New feature
  • Breaking change
  • Misc (docs, refactoring, dependency upgrade, etc.)

Checklist

  • This PR's description is comprehensive
  • This PR contains breaking changes that are documented in the description
  • This PR introduces new APIs or parameters that are documented and unlikely to change in the foreseeable future
  • This PR impacts documentation, and it has been updated (or a ticket has been logged)
  • This PR's changes are covered by the automated tests
  • This PR collects user input/sensitive content into Datadog

@joeyzhao2018 joeyzhao2018 requested a review from a team as a code owner September 11, 2025 09:45
assert.Equal(t, "aws.lambda", finishedSpan.OperationName())

assert.Equal(t, true, finishedSpan.Tag("cold_start"))
assert.Equal(t, "true", finishedSpan.Tag("cold_start"))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This value was indeed updated to a string

@joeyzhao2018 joeyzhao2018 changed the title use dd-trace-go 1.74.6 use dd-trace-go 1.74.6 (A transition to dd-trace-go/V2) Sep 11, 2025
Copy link
Copy Markdown
Contributor

@purple4reina purple4reina left a comment

Choose a reason for hiding this comment

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

Thanks for the update. Users could technically upgrade to v1.74.x of dd-trace-go without this. For example, our e2e tests have been doing so for a while.

@purple4reina
Copy link
Copy Markdown
Contributor

We should actually be really careful about releasing this, and in fact, I'm not so sure we should.

For a customer who is using the v1 tracer to create custom spans, this change will break their traces. Therefore, this update is actually not backward compatible. It is a breaking change.

If we are planning to move this code to dd-trace-go, as you stated in the weekly planning update in slack, why then do we even need to make this change?

@purple4reina
Copy link
Copy Markdown
Contributor

Okay, I read your doc and saw that you tested using both v1 and v2 tracer with this branch. I stand corrected. This would not be a breaking change.

So, I guess what I'm saying now is, this change isn't necessary, but I'm not opposed to doing it.

@joeyzhao2018
Copy link
Copy Markdown
Contributor Author

Thanks for all the comments. I'm going to merge it just to make it easier to reason about the versions.

@joeyzhao2018 joeyzhao2018 merged commit 6e84d09 into main Sep 11, 2025
9 checks passed
@joeyzhao2018 joeyzhao2018 deleted the joey/workaround branch September 11, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants