-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ddtrace: support tracer.SetUser on a mockspan (#1480)
tracer.SetUser() was specific to the *tracer.span type and therefore was not working with the mockup span. To be able to use tracer.SetUser() on the mockup span type, we propose to implement its behaviour through the now exported `SetUser()` method of the span struct types. tracer.SetUser() does a type-assertion to check this method is present and delegates its call to it. We can now provide a proper implementation for *mockspan. Co-authored-by: Andrew Glaude <andrew.glaude@datadoghq.com>
- Loading branch information
1 parent
fa27985
commit 8fdd9c8
Showing
5 changed files
with
141 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters