Class CategoryNameTelemetryInitializer
Sets a global property called 'CategoryName' with the service type name on the telemetry.
Inheritance
System.Object
CategoryNameTelemetryInitializer
Namespace: Copper.Diagnostics.Service
Assembly: Copper.Diagnostics.Service.dll
Syntax
public class CategoryNameTelemetryInitializer : ITelemetryInitializer
Constructors
View SourceCategoryNameTelemetryInitializer(IServiceContextProvider)
Initializes a new instance of the CategoryNameTelemetryInitializer class.
Declaration
public CategoryNameTelemetryInitializer(IServiceContextProvider serviceContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceContextProvider | serviceContextProvider | The service context provider. |
Methods
View SourceInitialize(ITelemetry)
Initializes properties of the specified
Declaration
public void Initialize(ITelemetry telemetry)
Parameters
Type | Name | Description |
---|---|---|
ITelemetry | telemetry | The telemetry. |