diff --git a/Warsaw.sln b/Warsaw.sln index b4c91eef..406b671f 100644 --- a/Warsaw.sln +++ b/Warsaw.sln @@ -110,8 +110,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Nuspecs", "Nuspecs", "{3B5E EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Diagnostics.EventFlow.Inputs.Serilog", "src\Microsoft.Diagnostics.EventFlow.Inputs.Serilog\Microsoft.Diagnostics.EventFlow.Inputs.Serilog.xproj", "{C80DF85E-9756-4E30-989F-0D160B444F39}" EndProject -Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp", "src\Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp\Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp.xproj", "{320377E7-BA11-42AA-BDE1-29BA875CE34B}" -EndProject Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Microsoft.Diagnostics.EventFlow.Inputs.MicrosoftLogging", "src\Microsoft.Diagnostics.EventFlow.Inputs.MicrosoftLogging\Microsoft.Diagnostics.EventFlow.Inputs.MicrosoftLogging.xproj", "{E987F059-33CD-4F0E-8680-63C8033D54D8}" EndProject Global @@ -298,14 +296,6 @@ Global {C80DF85E-9756-4E30-989F-0D160B444F39}.Release|Any CPU.Build.0 = Release|Any CPU {C80DF85E-9756-4E30-989F-0D160B444F39}.Release|x64.ActiveCfg = Release|Any CPU {C80DF85E-9756-4E30-989F-0D160B444F39}.Release|x64.Build.0 = Release|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Debug|x64.ActiveCfg = Debug|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Debug|x64.Build.0 = Debug|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Release|Any CPU.Build.0 = Release|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Release|x64.ActiveCfg = Release|Any CPU - {320377E7-BA11-42AA-BDE1-29BA875CE34B}.Release|x64.Build.0 = Release|Any CPU {E987F059-33CD-4F0E-8680-63C8033D54D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {E987F059-33CD-4F0E-8680-63C8033D54D8}.Debug|Any CPU.Build.0 = Debug|Any CPU {E987F059-33CD-4F0E-8680-63C8033D54D8}.Debug|x64.ActiveCfg = Debug|Any CPU @@ -341,7 +331,6 @@ Global {15E2ED90-4B9A-42BD-97BB-C6AD2B1863AF} = {D67068AF-16BB-4037-BE4E-B642419089BA} {69AA6421-82A5-43BF-AD27-8E2C172FF8CE} = {FC86C736-6428-431B-B83F-940BF7182757} {C80DF85E-9756-4E30-989F-0D160B444F39} = {47200F40-43E1-4B09-B803-A921FED2BF05} - {320377E7-BA11-42AA-BDE1-29BA875CE34B} = {D67068AF-16BB-4037-BE4E-B642419089BA} {E987F059-33CD-4F0E-8680-63C8033D54D8} = {47200F40-43E1-4B09-B803-A921FED2BF05} EndGlobalSection EndGlobal diff --git a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp.xproj b/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp.xproj deleted file mode 100644 index aa58e409..00000000 --- a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp.xproj +++ /dev/null @@ -1,21 +0,0 @@ - - - - 14.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - - - - - 320377e7-ba11-42aa-bde1-29ba875ce34b - Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp - .\obj - .\bin\ - v4.6.1 - - - - 2.0 - - - diff --git a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Program.cs b/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Program.cs deleted file mode 100644 index f093b551..00000000 --- a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/Program.cs +++ /dev/null @@ -1,62 +0,0 @@ -// ------------------------------------------------------------ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License (MIT). See License.txt in the repo root for license information. -// ------------------------------------------------------------ - -using Microsoft.ApplicationInsights.Channel; -using Microsoft.ApplicationInsights.Extensibility; -using Newtonsoft.Json; -using System; -using System.Diagnostics; -using System.IO; -using System.Text; -using System.Threading.Tasks; - -namespace Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp -{ - public class CorrelationTelemetryInitializer : ITelemetryInitializer - { - public void Initialize(ITelemetry telemetry) - { - } - } - - class MyContext - { - public string CorrelationId; - public string OtherId; - - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - using (JsonWriter writer = new JsonTextWriter(new StringWriter(sb))) - { - writer.WriteStartObject(); - writer.WritePropertyName(nameof(CorrelationId)); - writer.WriteValue(CorrelationId); - writer.WritePropertyName(nameof(OtherId)); - writer.WriteValue(OtherId); - writer.WriteEndObject(); - } - return sb.ToString(); - } - } - - class Program - { - static void Main(string[] args) - { - TelemetryConfiguration.Active.TelemetryInitializers.Add(new CorrelationTelemetryInitializer()); - TelemetryConfiguration.Active.TelemetryChannel.DeveloperMode = true; - - using (DiagnosticPipeline pipeline = DiagnosticPipelineFactory.CreatePipeline("config.json")) - { - for (int i = 0; i < 10; i++) - { - Trace.TraceWarning($"{DateTime.UtcNow:o} this is log message"); - } - Task.Delay(10000).Wait(); - } - } - } -} diff --git a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/config.json b/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/config.json deleted file mode 100644 index fec73c4f..00000000 --- a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/config.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "healthReporter": { - "type": "CsvHealthReporter", - "logFileFolder": ".", - "logFilePrefix": "HealthReport", - "minReportLevel": "Warning", - "throttlingPeriodMsec": "1000" - }, - "inputs": [ - { - "type": "Trace", - "traceLevel": "Warning" - } - ], - "filters": [ - ], - "outputs": [ - { - "type": "ApplicationInsights", - "InstrumentationKey": "**REMOVED**" - }, - { - "type": "StdOutput" - } - ], - - "schema-version": "2016-08-11" -} diff --git a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/project.json b/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/project.json deleted file mode 100644 index f94ffc44..00000000 --- a/src/Microsoft.Diagnostics.EventFlow.Consumers.EventContextConsoleApp/project.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "version": "1.0.0-*", - "buildOptions": { - "emitEntryPoint": true, - "copyToOutput": { "includeFiles": [ "config.json" ] } - }, - - "dependencies": { - "Microsoft.ApplicationInsights": "2.1.0", - "Microsoft.Diagnostics.EventFlow.Core": "1.0.0-*", - "Microsoft.Diagnostics.EventFlow.Inputs.Trace": "1.0.0-*", - "Microsoft.Diagnostics.EventFlow.Outputs.ApplicationInsights": "1.0.0-*", - "Microsoft.Diagnostics.EventFlow.Outputs.StdOutput": "1.0.0-*" - }, - - "frameworks": { - "net461": { - } - } -}