This repository was archived by the owner on Jul 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ def lightstep_tracer_from_args():
67
67
dest = "no_tls" , action = 'store_true' )
68
68
parser .add_argument ('--component_name' , help = 'The LightStep component name' ,
69
69
default = 'TrivialExample' )
70
- parser .add_argument ('--use_http ' , help = 'Use proto over http' ,
71
- dest = "use_http " , action = 'store_true' )
70
+ parser .add_argument ('--use_thrift ' , help = 'Use Thrift over http' ,
71
+ dest = "use_thrift " , action = 'store_true' )
72
72
args = parser .parse_args ()
73
73
74
74
if args .no_tls :
@@ -83,8 +83,8 @@ def lightstep_tracer_from_args():
83
83
collector_port = args .port ,
84
84
verbosity = 1 ,
85
85
collector_encryption = collector_encryption ,
86
- use_thrift = not args .use_http ,
87
- use_http = args .use_http )
86
+ use_thrift = args .use_thrift ,
87
+ use_http = not args .use_thrift )
88
88
89
89
90
90
if __name__ == '__main__' :
Original file line number Diff line number Diff line change @@ -44,8 +44,8 @@ def __init__(self,
44
44
periodic_flush_seconds = constants .FLUSH_PERIOD_SECS ,
45
45
verbosity = 0 ,
46
46
certificate_verification = True ,
47
- use_thrift = True ,
48
- use_http = False ):
47
+ use_thrift = False ,
48
+ use_http = True ):
49
49
self .verbosity = verbosity
50
50
# Fail fast on a bad access token
51
51
if not isinstance (access_token , str ):
@@ -55,12 +55,12 @@ def __init__(self,
55
55
warnings .warn ('SSL CERTIFICATE VERIFICATION turned off. ALL FUTURE HTTPS calls will be unverified.' )
56
56
ssl ._create_default_https_context = ssl ._create_unverified_context
57
57
58
- if use_thrift :
59
- self .use_thrift = True
60
- self .converter = ThriftConverter ()
61
- elif use_http :
58
+ if use_http :
62
59
self .use_thrift = False
63
60
self .converter = HttpConverter ()
61
+ elif use_thrift :
62
+ self .use_thrift = True
63
+ self .converter = ThriftConverter ()
64
64
else :
65
65
raise Exception ('Either use_thrift or use_http must be True' )
66
66
You can’t perform that action at this time.
0 commit comments