A55.Signoz.AspNetCore
1.2.8
dotnet add package A55.Signoz.AspNetCore --version 1.2.8
NuGet\Install-Package A55.Signoz.AspNetCore -Version 1.2.8
<PackageReference Include="A55.Signoz.AspNetCore" Version="1.2.8" />
paket add A55.Signoz.AspNetCore --version 1.2.8
#r "nuget: A55.Signoz.AspNetCore, 1.2.8"
// Install A55.Signoz.AspNetCore as a Cake Addin #addin nuget:?package=A55.Signoz.AspNetCore&version=1.2.8 // Install A55.Signoz.AspNetCore as a Cake Tool #tool nuget:?package=A55.Signoz.AspNetCore&version=1.2.8
A55 Signoz Extensions for .NET
This project groups and configure opentelemetry instrumentation for .NET focusing on OTPL exporter for Signoz
💡 More about opentelemetry-dotnet HERE
🌐 ASPNET CORE
Instalation:
From command line:
$ dotnet add PROJECT package A55.Signoz.AspNetCore
How to use it:
Configuration
Add services on WebApplicationBuild
in your Program.cs
or another startup file:
using A55.Signoz;
var builder = WebApplication.CreateBuilder(args);
builder.UseSignoz();
/* other configurations */
var app = builder.Build();
And add the Signoz
key in your appsettings.json
and/or appsettings.Environment.json
{
// other configuration keys
"Signoz": {
"Enabled": true,
// Enable or disables telemetry
"ServiceName": null,
// optional: The service name which will show in signoz, if null or not define will use Environment.ApplicationName
"ServiceNameSuffix": "",
///optional: A Suffix for ServiceName
"OtlpEndpoint": "https://signoz-env.a55.tech:4317",
// The OTLP signoz endpoint
"UseConsole": false,
// Flags if opentelemetry will print the spans on console
"UseOtlp": true,
// Flags if opentelemetry send to the OTPL endpoint
"ExportLogs": true,
// Flags if opentelemetry will send logs
"ExportTraces": true,
// Flags if opentelemetry will send traces
"ExportMetrics": true
// Flags if opentelemetry will send metrics
}
}
App configuration SAMPLE HERE
🌱 Environment Variables
If you enable use of Environment Variables in your web app with .AddEnvironmentVariables()
, you can set any
configuration value with SIGNOZ__{PROPERTYNAME}
Eg:
SIGNOZ__ServiceName=MyVeryCoolApp
SIGNOZ__UseOtplp=true
SIGNOZ__UseConsole=false
💅 Formating
The formating are defined by EditorConfig on .editorconfig
The CI uses dotnet format to enforces
the .editorconfig
and installed analyzers.
If you need to format the code, just run:
dotnet tool restore
dotnet format .
📝 Versioning
This project is versioned with Semantic Versioning aka SemVer
using GitVersion
Commit messages:
Adding +semver: breaking or +semver: major will cause the major version to be increased, +semver: feature or +semver: minor will bump minor and +semver: patch or +semver: fix will bump the patch.
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 was computed. 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 was computed. 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. |
-
net6.0
- Npgsql.OpenTelemetry (>= 7.0.1)
- OpenTelemetry.Exporter.Console (>= 1.4.0-beta.3)
- OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs (>= 1.4.0-beta.3)
- OpenTelemetry.Extensions.Hosting (>= 1.0.0-rc9.9)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.0.0-rc9.9)
- OpenTelemetry.Instrumentation.Http (>= 1.0.0-rc9.9)
- OpenTelemetry.Instrumentation.Runtime (>= 1.1.0-beta.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.