File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change 1- import instana .options as o
2- import instana .meter as m
3- import instana .agent as a
4- from instana import log
1+ from __future__ import absolute_import
2+ from .options import Options
3+ from .meter import Meter
4+ from .agent import Agent
5+ import instana .log as log
56
67
78class Sensor (object ):
89 options = None
910 meter = None
10- service_name = None
1111 agent = None
1212
1313 def __init__ (self , options ):
1414 self .set_options (options )
1515 log .init (options .log_level )
16- self .configure_service_name ()
17- self .agent = a .Agent (self )
18- self .meter = m .Meter (self )
16+ self .agent = Agent (self )
17+ self .meter = Meter (self )
1918
2019 log .debug ("initialized sensor" )
2120
2221 def set_options (self , options ):
2322 self .options = options
2423 if not self .options :
25- self .options = o .Options ()
26-
27- def configure_service_name (self ):
28- if self .options :
29- self .service_name = self .options .service
24+ self .options = Options ()
3025
3126 def handle_fork (self ):
32- self .agent = a . Agent (self )
33- self .meter = m . Meter (self )
27+ self .agent = Agent (self )
28+ self .meter = Meter (self )
You can’t perform that action at this time.
0 commit comments