File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,6 @@ def ready(self):
3131 if settings .TAGS :
3232 tracer .set_tags (settings .TAGS )
3333
34- # define the service details
35- tracer .set_service_info (
36- app = 'django' ,
37- app_type = AppTypes .web ,
38- service = settings .DEFAULT_SERVICE ,
39- )
40-
4134 # configure the tracer instance
4235 # TODO[manu]: we may use configure() but because it creates a new
4336 # AgentWriter, it breaks all tests. The configure() behavior must
@@ -46,6 +39,13 @@ def ready(self):
4639 tracer .writer .api .hostname = settings .AGENT_HOSTNAME
4740 tracer .writer .api .port = settings .AGENT_PORT
4841
42+ # define the service details
43+ tracer .set_service_info (
44+ app = 'django' ,
45+ app_type = AppTypes .web ,
46+ service = settings .DEFAULT_SERVICE ,
47+ )
48+
4949 if settings .AUTO_INSTRUMENT :
5050 # trace Django internals
5151 insert_exception_middleware ()
You can’t perform that action at this time.
0 commit comments