@@ -102,13 +102,14 @@ def __init__(self, args: dict = None):
102102 self .instrument_remote = None
103103
104104 def attach (self ):
105+ probe_config = self .probe_config
105106 config .init (
106- collector_address = self . probe_config ["skywalking" ]["collector" ]["backend_service" ],
107- service_name = self . probe_config ["skywalking" ]["agent" ]["service_name" ],
108- authentication = self . probe_config ["skywalking" ]["agent" ].get ("authentication" ),
109- log_reporter_active = True ,
110- force_tls = self . probe_config ["spp" ]["ssl_enabled" ],
111- log_reporter_formatted = self . probe_config ["skywalking" ]["plugin" ]["toolkit" ]["log" ]["transmit_formatted" ]
107+ agent_collector_backend_services = probe_config ["skywalking" ]["collector" ]["backend_service" ],
108+ agent_name = probe_config ["skywalking" ]["agent" ]["service_name" ],
109+ agent_authentication = probe_config ["skywalking" ]["agent" ].get ("authentication" ),
110+ agent_log_reporter_active = True ,
111+ agent_force_tls = probe_config ["spp" ]["ssl_enabled" ],
112+ agent_log_reporter_formatted = probe_config ["skywalking" ]["plugin" ]["toolkit" ]["log" ]["transmit_formatted" ]
112113 )
113114 agent .start ()
114115
@@ -141,8 +142,8 @@ def __send_connected(self, eb: EventBus):
141142 "language" : "python" ,
142143 "probe_version" : __version__ ,
143144 "python_version" : sys .version ,
144- "service" : config .service_name ,
145- "service_instance" : config .service_instance
145+ "service" : config .agent_name ,
146+ "service_instance" : config .agent_instance_name
146147 }
147148
148149 # add hardcoded probe meta data (if present)
0 commit comments