Added PublicApiAnalyzer for DiagnosticSourceListener, EtwCollector and EventSourceListener (#1782)

* Support for Added public api analyzer

* Added publicApi for EtwCollector

* Added publicApi for EventSourceListener

Co-authored-by: Timothy Mothra <tilee@microsoft.com>
This commit is contained in:
Rajkumar Rangaraj 2020-04-14 08:56:01 -07:00 коммит произвёл GitHub
Родитель c6fcb2ca69
Коммит d070916462
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
11 изменённых файлов: 106 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,14 @@
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.DiagnosticSourceListeningRequest() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.DiagnosticSourceListeningRequest(string name) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Name.get -> string
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Name.set -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.DiagnosticSourceTelemetryModule() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.DiagnosticSourceTelemetryModule(Microsoft.ApplicationInsights.DiagnosticSourceListener.OnEventWrittenHandler onEventWrittenHandler) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Dispose() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Initialize(Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Sources.get -> System.Collections.Generic.IList<Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest>
Microsoft.ApplicationInsights.DiagnosticSourceListener.OnEventWrittenHandler
override Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Equals(object obj) -> bool
override Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.GetHashCode() -> int

Просмотреть файл

@ -0,0 +1,14 @@
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.DiagnosticSourceListeningRequest() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.DiagnosticSourceListeningRequest(string name) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Name.get -> string
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Name.set -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.DiagnosticSourceTelemetryModule() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.DiagnosticSourceTelemetryModule(Microsoft.ApplicationInsights.DiagnosticSourceListener.OnEventWrittenHandler onEventWrittenHandler) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Dispose() -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Initialize(Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration) -> void
Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceTelemetryModule.Sources.get -> System.Collections.Generic.IList<Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest>
Microsoft.ApplicationInsights.DiagnosticSourceListener.OnEventWrittenHandler
override Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.Equals(object obj) -> bool
override Microsoft.ApplicationInsights.DiagnosticSourceListener.DiagnosticSourceListeningRequest.GetHashCode() -> int

Просмотреть файл

@ -0,0 +1,20 @@
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.EtwListeningRequest() -> void
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.Keywords.get -> ulong
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.Keywords.set -> void
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.Level.get -> Microsoft.Diagnostics.Tracing.TraceEventLevel
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.Level.set -> void
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.ProviderGuid.get -> System.Guid
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.ProviderGuid.set -> void
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.ProviderName.get -> string
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.ProviderName.set -> void
Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest.Validate(out string errorMessage) -> bool
Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule
Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule.Dispose() -> void
Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule.EtwTelemetryModule() -> void
Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule.Initialize(Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration) -> void
Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule.Sources.get -> System.Collections.Generic.IList<Microsoft.ApplicationInsights.EtwCollector.EtwListeningRequest>
Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities
static readonly Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities.TaskFlowActivityIdsKeyword -> ulong
static readonly Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities.TplEventSourceGuid -> System.Guid
virtual Microsoft.ApplicationInsights.EtwCollector.EtwTelemetryModule.Dispose(bool isDisposing) -> void

Просмотреть файл

Просмотреть файл

@ -0,0 +1,34 @@
Microsoft.ApplicationInsights.EventSourceListener.DisableEventSourceRequest
Microsoft.ApplicationInsights.EventSourceListener.DisableEventSourceRequest.DisableEventSourceRequest() -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.EventSourceListeningRequest() -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.Keywords.get -> System.Diagnostics.Tracing.EventKeywords
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.Keywords.set -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.Level.get -> System.Diagnostics.Tracing.EventLevel
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.Level.set -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.EventSourceListeningRequestBase() -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.Name.get -> string
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.Name.set -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.PrefixMatch.get -> bool
Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.PrefixMatch.set -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.DisabledSources.get -> System.Collections.Generic.IList<Microsoft.ApplicationInsights.EventSourceListener.DisableEventSourceRequest>
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.EventSourceTelemetryModule() -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.EventSourceTelemetryModule(Microsoft.ApplicationInsights.EventSourceListener.OnEventWrittenHandler onEventWrittenHandler) -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.Initialize(Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration) -> void
Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.Sources.get -> System.Collections.Generic.IList<Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest>
Microsoft.ApplicationInsights.EventSourceListener.Implementation.EventDataExtensions
Microsoft.ApplicationInsights.EventSourceListener.OnEventWrittenHandler
Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.Equals(object obj) -> bool
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequest.GetHashCode() -> int
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.Equals(object obj) -> bool
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceListeningRequestBase.GetHashCode() -> int
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.OnEventSourceCreated(System.Diagnostics.Tracing.EventSource eventSource) -> void
override Microsoft.ApplicationInsights.EventSourceListener.EventSourceTelemetryModule.OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs eventData) -> void
static Microsoft.ApplicationInsights.EventSourceListener.Implementation.EventDataExtensions.CreateTraceTelementry(this System.Diagnostics.Tracing.EventWrittenEventArgs eventSourceEvent) -> Microsoft.ApplicationInsights.DataContracts.TraceTelemetry
static Microsoft.ApplicationInsights.EventSourceListener.Implementation.EventDataExtensions.PopulatePayloadProperties(this Microsoft.ApplicationInsights.DataContracts.TraceTelemetry telemetry, System.Diagnostics.Tracing.EventWrittenEventArgs eventSourceEvent) -> Microsoft.ApplicationInsights.DataContracts.TraceTelemetry
static Microsoft.ApplicationInsights.EventSourceListener.Implementation.EventDataExtensions.PopulateStandardProperties(this Microsoft.ApplicationInsights.DataContracts.TraceTelemetry telemetry, System.Diagnostics.Tracing.EventWrittenEventArgs eventSourceEvent) -> Microsoft.ApplicationInsights.DataContracts.TraceTelemetry
static readonly Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities.TaskFlowActivityIdsKeyword -> ulong
static readonly Microsoft.ApplicationInsights.TraceEvent.Shared.Utilities.TplActivities.TplEventSourceGuid -> System.Guid

Просмотреть файл

@ -33,6 +33,9 @@
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
@ -48,5 +51,10 @@
<PackageReference Include="System.Memory" Version="4.5.4" /> <!-- This is a temporary explicit dependency. We're waiting on the next version of System.Diagnostics.DiagnosticSource. https://github.com/microsoft/ApplicationInsights-dotnet/issues/1707 -->
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Shipped.txt" />
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Unshipped.txt" />
</ItemGroup>
<Import Project="..\CommonShared\CommonShared.projitems" Label="Shared" />
</Project>

Просмотреть файл

@ -37,6 +37,9 @@
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
@ -54,6 +57,11 @@
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="1.0.41" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Shipped.txt" />
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Unshipped.txt" />
</ItemGroup>
<Import Project="..\CommonShared\CommonShared.projitems" Label="Shared" />
<Import Project="..\EventSource.Shared\EventSource.Shared\EventSource.Shared.projitems" Label="Shared" />

Просмотреть файл

@ -37,6 +37,9 @@
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="2.9.8">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
@ -51,6 +54,11 @@
<PackageReference Include="System.Diagnostics.Process" Version="4.1.0" />
</ItemGroup>
<ItemGroup>
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Shipped.txt" />
<AdditionalFiles Include="$(PublicApiRoot)\$(AssemblyName).dll\$(TargetFramework)\PublicAPI.Unshipped.txt" />
</ItemGroup>
<Import Project="..\CommonShared\CommonShared.projitems" Label="Shared" />
<Import Project="..\EventSource.Shared\EventSource.Shared\EventSource.Shared.projitems" Label="Shared" />