This repository was archived by the owner on Jan 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Expand file tree Collapse file tree 3 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Environment Variables
40
40
41
41
# endpoint for both metrics and tracer. Overridden by SIGNALFX_METRICS_URL
42
42
# and SIGNALFX_TRACING_URL if set
43
- SIGNALFX_ENDPOINT_URL=endpoint url
43
+ SIGNALFX_ENDPOINT_URL=http://<my_gateway>:8080
44
44
45
45
# optional metrics and tracing configuration
46
46
@@ -60,7 +60,7 @@ For example, if only SIGNALFX_ENDPOINT_URL is set:
60
60
61
61
::
62
62
63
- SIGNALFX_ENDPOINT_URL=<gateway_address>
63
+ SIGNALFX_ENDPOINT_URL=http://<my_gateway>:8080
64
64
65
65
both metrics and traces will be sent to the gateway address.
66
66
@@ -70,7 +70,7 @@ If SIGNALFX_ENDPOINT_URL and SIGNALFX_METRICS_URL are set:
70
70
71
71
SIGNALFX_METRICS_URL=https://pops.signalfx.com
72
72
73
- SIGNALFX_ENDPOINT_URL=<gateway_address>
73
+ SIGNALFX_ENDPOINT_URL=http://<my_gateway>:8080
74
74
75
75
Traces will be sent to the gateway and metrics will go through POPS.
76
76
Original file line number Diff line number Diff line change 1
1
signalfx >= 1.0.16
2
2
sfx-jaeger-client >= 3.13.1.dev0
3
+ six >= 1.4.0
Original file line number Diff line number Diff line change 1
1
import os
2
2
import warnings
3
+ import six .moves .urllib .parse as urlparse
3
4
4
5
from .version import name , version
5
6
@@ -60,17 +61,11 @@ def get_metrics_url():
60
61
61
62
def get_tracing_url ():
62
63
url = os .environ .get ('SIGNALFX_TRACING_URL' )
64
+ if url :
65
+ return url
63
66
64
- if not url :
65
- url = os .environ .get ('SIGNALFX_ENDPOINT_URL' )
66
-
67
- if url :
68
- # if the common endpoint url is used, we need to append the trace path
69
- url = url + '/v1/trace'
70
- else :
71
- url = 'https://ingest.signalfx.com/v1/trace'
72
-
73
- return url
67
+ url = os .environ .get ('SIGNALFX_ENDPOINT_URL' , 'https://ingest.signalfx.com' )
68
+ return urlparse .urljoin (url , '/v1/trace' )
74
69
75
70
76
71
def get_access_token ():
You can’t perform that action at this time.
0 commit comments