We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a975f7f commit 6474bc6Copy full SHA for 6474bc6
instana/options.py
@@ -9,7 +9,16 @@ class Options(object):
9
log_level = logging.WARN
10
11
def __init__(self, **kwds):
12
+ """ Initialize Options
13
+ Respect any environment variables that may be set.
14
+ """
15
if "INSTANA_DEV" in os.environ:
16
self.log_level = logging.DEBUG
17
18
+ if "INSTANA_AGENT_IP" in os.environ:
19
+ self.agent_host = os.environ["INSTANA_AGENT_IP"]
20
+
21
+ if "INSTANA_AGENT_PORT" in os.environ:
22
+ self.agent_port = os.environ["INSTANA_AGENT_PORT"]
23
24
self.__dict__.update(kwds)
0 commit comments