Merge pull request #7 from microsoft/users/ak/dep
fix: Dependency error logging
This commit is contained in:
Коммит
47e7b6b2ca
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<PackageId>AppInsights.EnterpriseTelemetry</PackageId>
|
||||
<Title>AppInsights.EnterpriseTelemetry</Title>
|
||||
<Version>2.0.0</Version>
|
||||
<Version>2.0.1</Version>
|
||||
<Authors>Pratik Bhattacharya</Authors>
|
||||
<Company>Microsoft</Company>
|
||||
<PackageDescription>Library for capturing telemetry in an Enterprise level application</PackageDescription>
|
||||
|
|
|
@ -165,14 +165,7 @@ namespace AppInsights.EnterpriseTelemetry.Context
|
|||
if (IsSuccessfull)
|
||||
return null;
|
||||
|
||||
var exceptionContext = new ExceptionContext(ResponseError)
|
||||
{
|
||||
CorrelationId = CorrelationId,
|
||||
TransactionId = TransactionId,
|
||||
Source = Source,
|
||||
EndToEndTrackingId = EndToEndTrackingId,
|
||||
UserId = UserId
|
||||
};
|
||||
var exceptionContext = new ExceptionContext(ResponseError, TraceLevel.Error, CorrelationId, TransactionId, Source, UserId, EndToEndTrackingId);
|
||||
exceptionContext.AddProperties(Properties);
|
||||
exceptionContext.AddProperty(nameof(DependencyName), DependencyName);
|
||||
exceptionContext.AddProperty(nameof(TargetSystemName), TargetSystemName);
|
||||
|
|
Загрузка…
Ссылка в новой задаче