Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 366066f

Browse files
achandrasreyang
authored andcommitted
Only use default Jaeger endpoint when no endpoint is defined (#325)
1 parent 1b68773 commit 366066f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

opencensus/trace/exporters/jaeger_exporter.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,10 @@ def collector(self):
114114
if self.host_name is None or self.port is None:
115115
return None
116116

117-
thrift_url = 'http://{}:{}{}{}'.format(
117+
thrift_url = 'http://{}:{}{}'.format(
118118
self.host_name,
119119
self.port,
120-
self.endpoint,
121-
DEFAULT_ENDPOINT)
120+
self.endpoint or DEFAULT_ENDPOINT)
122121

123122
auth = None
124123
if self.username is not None and self.password is not None:

0 commit comments

Comments
 (0)