File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
dd-java-agent/src/main/java/com/datadoghq/agent Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public class AgentRulesManager {
2424 public AgentRulesManager (final TracingAgentConfig config ) {
2525 agentTracerConfig = config ;
2626 instrumentationRulesManager = new InstrumentationRulesManager (config , this );
27+ instrumentationRulesManager .initTracer ();
2728 }
2829
2930 /** This method initializes the manager. */
Original file line number Diff line number Diff line change @@ -120,11 +120,9 @@ public void initialize(final ClassLoader classLoader) {
120120 log .info ("Initializing on classloader {}" , classLoader );
121121
122122 injector .inject (classLoader );
123-
124- initTracer ();
125123 }
126124
127- private void initTracer () {
125+ void initTracer () {
128126 synchronized (SYNC ) {
129127 if (!GlobalTracer .isRegistered ()) {
130128 // Try to obtain a tracer using the TracerResolver
@@ -135,6 +133,8 @@ private void initTracer() {
135133 } catch (final RuntimeException re ) {
136134 log .warn ("Failed to register tracer '" + resolved + "'" , re );
137135 }
136+ } else {
137+ log .warn ("Failed to resolve dd tracer" );
138138 }
139139 }
140140 }
You can’t perform that action at this time.
0 commit comments