forked from jaegertracing/jaeger-client-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not try to determine IP address if it is already passed via tracer…
… tags (jaegertracing#402) * NewTracer suport passing iptag [fixes jaegertracing#401] old codes did not support passing a iptag to NewTracer because NewTracer will overwrite the iptag. Now modify the NewTracer method, make it support passing iptag two private method of Tracer add : getTag, setTag And testing function is also added into tracer_test.go, all test of NewTracer passed. Signed-off-by: 吴灿柳 <[email protected]> * remove a redundant return remove a redundant return in order to pass GolangCI check Signed-off-by: 吴灿柳 <[email protected]> * Delete setTag, add assertions in unit test, etc 1.delete setTag, only use append 2.getTag method return (interface{}, bool) for indicating found or not 3.no validation for external provided iptag, buyer beware 4.unit test add assertions, and remove the fmt print. Signed-off-by: 吴灿柳 <[email protected]>
- Loading branch information
1 parent
402bec9
commit e895c7a
Showing
2 changed files
with
48 additions
and
1 deletion.
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