Esempio n. 1
0
        public ITracingState AcceptDistributedTracePayload(string serializedPayload, TransportType transportType, DateTime transactionStartTime)
        {
            var tracingState = TracingState.AcceptDistributedTracePayload(serializedPayload, transportType, _configurationService.Configuration.TrustedAccountKey, transactionStartTime);

            if (tracingState.IngestErrors != null)
            {
                ReportIncomingErrors(tracingState.IngestErrors);
            }
            else
            {
                if (_configurationService.Configuration.PayloadSuccessMetricsEnabled)
                {
                    _agentHealthReporter.ReportSupportabilityDistributedTraceAcceptPayloadSuccess();
                }
            }

            return(tracingState);
        }