Highlight.ASPCore
0.2.7
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Highlight.ASPCore --version 0.2.7
NuGet\Install-Package Highlight.ASPCore -Version 0.2.7
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.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Highlight.ASPCore --version 0.2.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Highlight.ASPCore, 0.2.7"
#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.7 // Install Highlight.ASPCore as a Cake Tool #tool nuget:?package=Highlight.ASPCore&version=0.2.7
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.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.16 | 461 | 7 days ago |
0.2.15 | 183 | 2 months ago |
0.2.14 | 1,283 | 2 months ago |
0.2.13 | 97 | 2 months ago |
0.2.12 | 5,970 | 5 months ago |
0.2.11 | 137 | 5 months ago |
0.2.10 | 131 | 5 months ago |
0.2.9 | 2,803 | 5 months ago |
0.2.8 | 968 | 6 months ago |
0.2.7 | 100 | 6 months ago |
0.2.6 | 110 | 6 months ago |
0.2.5 | 97 | 6 months ago |
0.2.4 | 101 | 6 months ago |
0.2.3 | 125 | 6 months ago |
0.2.2 | 106 | 6 months ago |
0.2.1 | 111 | 6 months ago |
0.2.0 | 123 | 6 months ago |
0.1.8 | 151 | 7 months ago |
0.1.7 | 1,501 | 7 months ago |
0.1.6 | 223 | 7 months ago |
0.1.5 | 128 | 7 months ago |
0.1.4 | 117 | 7 months ago |
0.1.3 | 116 | 7 months ago |
0.1.2 | 140 | 7 months ago |
0.1.1 | 117 | 7 months ago |
0.1.0 | 118 | 7 months ago |