public void RegisterConsumedIntegrationExecuted(string actionName, string actionKey, string ownerESpaceKey, string ownerESpaceName, string type, int duration, DateTime instant, string endpoint)
        {
            try
            {
                RegisterExternalCall(RequestTracerEventType.ConsumedIntegrationExecuted, actionKey, actionName, ownerESpaceKey, ownerESpaceName, duration, instant);

                ESpaceExternalCallTracer tracer = externalCalls[GetExecutionKey(actionKey, ownerESpaceKey)];
                tracer.Details[RequestEventDetails.INTEGRATION_TYPE] = type;
                if (!endpoint.IsEmpty())
                {
                    tracer.Details[RequestEventDetails.INTEGRATION_ENDPOINT] = endpoint;
                }
            }
            catch (Exception e)
            {
                HandleRequestTracerException(e);
            }
        }
        private ESpaceExternalCallTracer AddNewExternalCallTracer(RequestTracerEventType eventType, string objectKey, string objectName, string ownerESpaceKey, string ownerEspaceName, DateTime instant)
        {
            ESpaceExternalCallTracer result = new ESpaceExternalCallTracer
            {
                StartInstant = instant,
                EventType    = eventType,
                Details      = new ESpaceExternalCallDetails(objectKey, objectName, ownerESpaceKey, ownerEspaceName, CommonRequestEventDetails)
            };

            result.Details[RequestEventDetails.END_POINT_NAME] = runningEndpointName;
            result.Details[RequestEventDetails.END_POINT_KEY]  = runningEndpointKey;
            result.Details[RequestEventDetails.ACTION_NAME]    = runningActionName;
            result.Details[RequestEventDetails.ACTION_KEY]     = runningActionKey;

            externalCalls.Add(
                GetExecutionKey(objectKey, ownerESpaceKey),
                result
                );

            return(result);
        }