Highlight.ASPCore
0.2.12
dotnet add package Highlight.ASPCore --version 0.2.12
NuGet\Install-Package Highlight.ASPCore -Version 0.2.12
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Highlight.ASPCore" Version="0.2.12" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Highlight.ASPCore --version 0.2.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Highlight.ASPCore, 0.2.12"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Highlight.ASPCore as a Cake Addin #addin nuget:?package=Highlight.ASPCore&version=0.2.12 // Install Highlight.ASPCore as a Cake Tool #tool nuget:?package=Highlight.ASPCore&version=0.2.12
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
highlight-io .NET Core SDK
This directory contains the source code for the Highlight .NET Core SDK.
Usage
- Install the NuGet Package
- Set up the Highlight SDK with your ASP app.
// configure your web application
var builder = WebApplication.CreateBuilder(args);
// Initialize trace, error, metric, and log export
builder.Services
.AddHighlightInstrumentation(options => options.ProjectId = "<YOUR_PROJECT_ID>");
builder.Logging
.AddHighlightInstrumentation(options => options.ProjectId = "<YOUR_PROJECT_ID>");
var app = builder.Build();
- Configure Serilog logging to export to highlight
// create a Serilog logger with highlight export
Log.Logger = new LoggerConfiguration()
.Enrich.WithMachineName()
.Enrich.WithHighlight()
.Enrich.FromLogContext()
.WriteTo.Async(async =>
async.HighlightOpenTelemetry(options =>
{
options.ProjectId = "<YOUR_PROJECT_ID>";
options.ServiceName = "<YOUR_SERVICE_NAME>";
})
)
.CreateLogger();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- OpenTelemetry (>= 1.6.0)
- OpenTelemetry.AutoInstrumentation (>= 1.0.2)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.6.0)
- OpenTelemetry.Extensions.Hosting (>= 1.6.0)
- Serilog (>= 3.1.1)
- Serilog.Sinks.OpenTelemetry (>= 1.2.0)
-
net7.0
- OpenTelemetry (>= 1.9.0)
- OpenTelemetry.AutoInstrumentation (>= 1.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.9.0)
- OpenTelemetry.Extensions.Hosting (>= 1.9.0)
- Serilog (>= 4.0.2)
- Serilog.Sinks.OpenTelemetry (>= 4.1.1)
-
net8.0
- OpenTelemetry (>= 1.9.0)
- OpenTelemetry.AutoInstrumentation (>= 1.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.9.0)
- OpenTelemetry.Extensions.Hosting (>= 1.9.0)
- Serilog (>= 4.0.2)
- Serilog.Sinks.OpenTelemetry (>= 4.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.2.12 | 237 | 10/18/2024 |
0.2.11 | 116 | 10/18/2024 |
0.2.10 | 109 | 10/18/2024 |
0.2.9 | 1,604 | 10/17/2024 |
0.2.8 | 792 | 10/3/2024 |
0.2.7 | 77 | 10/3/2024 |
0.2.6 | 91 | 9/30/2024 |
0.2.5 | 81 | 9/30/2024 |
0.2.4 | 84 | 9/30/2024 |
0.2.3 | 104 | 9/27/2024 |
0.2.2 | 90 | 9/27/2024 |
0.2.1 | 97 | 9/25/2024 |
0.2.0 | 108 | 9/19/2024 |
0.1.8 | 136 | 9/10/2024 |
0.1.7 | 1,488 | 9/4/2024 |
0.1.6 | 207 | 9/4/2024 |
0.1.5 | 114 | 9/3/2024 |
0.1.4 | 105 | 9/3/2024 |
0.1.3 | 102 | 9/3/2024 |
0.1.2 | 123 | 8/30/2024 |
0.1.1 | 105 | 8/30/2024 |
0.1.0 | 102 | 8/30/2024 |