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; }
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; }
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; }
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; }
public ApmAgent(AgentComponents agentComponents) => Components = agentComponents ?? new AgentComponents();
internal ApmAgent(AgentComponents agentComponents) => Components = agentComponents ?? new AgentComponents();
public ApmAgent(AgentComponents agentComponents) =>