Skip to content

Commit 47e7b6b

Browse files
authored
Merge pull request #7 from microsoft/users/ak/dep
fix: Dependency error logging
2 parents 8deca65 + 418fcca commit 47e7b6b

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

src/AppInsights.EnterpriseTelemetry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<PackageId>AppInsights.EnterpriseTelemetry</PackageId>
55
<Title>AppInsights.EnterpriseTelemetry</Title>
6-
<Version>2.0.0</Version>
6+
<Version>2.0.1</Version>
77
<Authors>Pratik Bhattacharya</Authors>
88
<Company>Microsoft</Company>
99
<PackageDescription>Library for capturing telemetry in an Enterprise level application</PackageDescription>

src/Context/DependencyContext.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,7 @@ public ExceptionContext GetExceptionContext()
165165
if (IsSuccessfull)
166166
return null;
167167

168-
var exceptionContext = new ExceptionContext(ResponseError)
169-
{
170-
CorrelationId = CorrelationId,
171-
TransactionId = TransactionId,
172-
Source = Source,
173-
EndToEndTrackingId = EndToEndTrackingId,
174-
UserId = UserId
175-
};
168+
var exceptionContext = new ExceptionContext(ResponseError, TraceLevel.Error, CorrelationId, TransactionId, Source, UserId, EndToEndTrackingId);
176169
exceptionContext.AddProperties(Properties);
177170
exceptionContext.AddProperty(nameof(DependencyName), DependencyName);
178171
exceptionContext.AddProperty(nameof(TargetSystemName), TargetSystemName);

0 commit comments

Comments
 (0)