Highlight.ASPCore 0.2.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Highlight.ASPCore --version 0.2.3                
NuGet\Install-Package Highlight.ASPCore -Version 0.2.3                
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.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Highlight.ASPCore --version 0.2.3                
#r "nuget: Highlight.ASPCore, 0.2.3"                
#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.3

// Install Highlight.ASPCore as a Cake Tool
#tool nuget:?package=Highlight.ASPCore&version=0.2.3                

highlight-io .NET Core SDK

This directory contains the source code for the Highlight .NET Core SDK.

Usage

  1. Install the NuGet Package
  2. 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();
  1. 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 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.

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 276 10/18/2024
0.2.11 120 10/18/2024
0.2.10 113 10/18/2024
0.2.9 1,737 10/17/2024
0.2.8 799 10/3/2024
0.2.7 81 10/3/2024
0.2.6 93 9/30/2024
0.2.5 83 9/30/2024
0.2.4 86 9/30/2024
0.2.3 106 9/27/2024
0.2.2 92 9/27/2024
0.2.1 98 9/25/2024
0.2.0 109 9/19/2024
0.1.8 137 9/10/2024
0.1.7 1,489 9/4/2024
0.1.6 208 9/4/2024
0.1.5 115 9/3/2024
0.1.4 106 9/3/2024
0.1.3 103 9/3/2024
0.1.2 124 8/30/2024
0.1.1 106 8/30/2024
0.1.0 103 8/30/2024