diff --git a/src/DotNetCore.CAP.OpenTelemetry/CapDiagnosticListener.cs b/src/DotNetCore.CAP.OpenTelemetry/CapDiagnosticListener.cs deleted file mode 100644 index 583daf4..0000000 --- a/src/DotNetCore.CAP.OpenTelemetry/CapDiagnosticListener.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Diagnostics.Tracing; -using OpenTelemetry.Instrumentation; -using System.Diagnostics; -using System.Reflection; - -namespace DotNetCore.CAP.OpenTelemetry -{ - public class CapDiagnosticListener : EventSource - { - internal static readonly ActivitySource ActivitySource = new ActivitySource("", ""); - - public CapDiagnosticListener() - { - // var count = new System.Diagnostics.Tracing.DiagnosticCounter(); - - } - - } - - internal sealed partial class HttpTelemetry : EventSource - { - public static readonly HttpTelemetry Log = new HttpTelemetry(); - - - [Event(1, Level = EventLevel.Informational)] - private void RequestStart(string scheme, string host, int port, string pathAndQuery, byte versionMajor, byte versionMinor, HttpVersionPolicy versionPolicy) - { - Interlocked.Increment(ref _startedRequests); - WriteEvent(eventId: 1, scheme, host, port, pathAndQuery, versionMajor, versionMinor, versionPolicy); - } - } -} diff --git a/src/DotNetCore.CAP.OpenTelemetry/DotNetCore.CAP.OpenTelemetry.csproj b/src/DotNetCore.CAP.OpenTelemetry/DotNetCore.CAP.OpenTelemetry.csproj index ef1c4d4..4592514 100644 --- a/src/DotNetCore.CAP.OpenTelemetry/DotNetCore.CAP.OpenTelemetry.csproj +++ b/src/DotNetCore.CAP.OpenTelemetry/DotNetCore.CAP.OpenTelemetry.csproj @@ -2,20 +2,15 @@ netstandard2.1 - DotNetCore.CAP.OpenTelemetry + enable CAP instrumentation for OpenTelemetry .NET $(PackageTags);distributed-tracing - - - bin\$(Configuration)\netstandard2.1\DotNetCore.CAP.OpenTelemetry.xml - 1701;1702;1705;CS1591 - - + - - - + + +