-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tracing helper to be reusable (#6469)
* Remove the Setup function from tracing package so that it can be vendored. Vendoring the Setup function might cause errors with reconciler-test framework because some flags from knative/pkg are "redefined". * Split WithHTTPHostAndPath into WithHTTPHostAndPath and WithHTTPURL. The first one adds http.host and http.path. The second one adds http.url. This separation allows using one or the other regardless of Kind (Client/Server/etc.) * MatchHTTPSpanNoReply now passes the options to the underlying MatchHTTPSpanWithCode in the same was as MatchHTTPSpanWithReply * Created more generic functions WithCode and MatchSpan * Fix lint S1001: should use copy() instead of a loop
- Loading branch information
Showing
6 changed files
with
30 additions
and
57 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 was deleted.
Oops, something went wrong.
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