Skip to content

Commit

Permalink
Target newer versions of Application Insights SDK (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
karolz-ms authored Apr 30, 2019
1 parent e98934e commit 3258dd2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ private void AddContextProperties(EventData eventData, TelemetryContext context)
AddPayloadProperty(eventData, "ai_location_ip", context.Location.Ip);
}

if (context.Properties != null)
if (context.GlobalProperties != null)
{
foreach(var property in context.Properties)
foreach(var property in context.GlobalProperties)
{
AddPayloadProperty(eventData, "ai_" + property.Key, property.Value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Description>Provides an implementation of Application Insights telemetry processor that feeds Application Insights telemetry into EventFlow pipeline.
This allows sending diagnostics data from applications instrumented with Application Insights to destinations other than Application Insights service.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<VersionPrefix>1.4.2</VersionPrefix>
<VersionPrefix>1.5.0</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFrameworks>netstandard1.6;net451;netstandard2.0</TargetFrameworks>
<AssemblyName>Microsoft.Diagnostics.EventFlow.Inputs.ApplicationInsights</AssemblyName>
Expand All @@ -24,8 +24,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.5.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.8.1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.5.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Description>Provides an output implementation that sends diagnostics data to Microsoft Application Insights service.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<VersionPrefix>1.4.0</VersionPrefix>
<VersionPrefix>1.5.0</VersionPrefix>
<Authors>Microsoft</Authors>
<TargetFrameworks>net451;netstandard1.6;netstandard2.0</TargetFrameworks>
<AssemblyName>Microsoft.Diagnostics.EventFlow.Outputs.ApplicationInsights</AssemblyName>
Expand All @@ -25,7 +25,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.5.0" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.8.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net451' ">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.5.0" />
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.8.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="Moq" Version="4.8.2" />
<PackageReference Include="System.ComponentModel.Primitives" Version="4.3.0" />
Expand Down

0 comments on commit 3258dd2

Please sign in to comment.