示例#1
0
 public static void Setup(AgentComponents agentComponents)
 {
     if (Lazy.IsValueCreated)
     {
         throw new Exception("The singleton APM agent has already been instantiated and can no longer be configured");
     }
     _components = agentComponents;
 }
示例#2
0
        public static void Setup(AgentComponents agentComponents)
        {
            if (LazyApmAgent.IsValueCreated)
            {
                throw new InstanceAlreadyCreatedException("The singleton APM agent has already been instantiated and can no longer be configured.");
            }

            _components   = agentComponents;
            _isConfigured = true;
        }
示例#3
0
        public static void Setup(AgentComponents agentComponents)
        {
            if (LazyApmAgent.IsValueCreated)
            {
                agentComponents?.Logger?.Error()?.Log("The singleton APM agent has" +
                                                      " already been instantiated and can no longer be configured. Reusing existing instance");
            }

            Components    = agentComponents;
            _isConfigured = true;
        }
示例#4
0
        public static void Setup(AgentComponents agentComponents)
        {
            if (LazyApmAgent.IsValueCreated)
            {
                agentComponents?.Logger?.Error()
                ?.Log("The singleton APM agent has" +
                      " already been instantiated and can no longer be configured. Reusing existing instance");
            }

            agentComponents?.Logger?.Trace()
            ?.Log("Initialization - Agent.Setup called. Callstack: {callstack}", new StackTrace().ToString());

            Components    = agentComponents;
            _isConfigured = true;
        }
示例#5
0
 public ApmAgent(AgentComponents agentComponents) => Components = agentComponents ?? new AgentComponents();
示例#6
0
 internal ApmAgent(AgentComponents agentComponents) => Components = agentComponents ?? new AgentComponents();
示例#7
0
 public ApmAgent(AgentComponents agentComponents) =>