FastTechFoods.Observability
1.1.0
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 FastTechFoods.Observability --version 1.1.0
NuGet\Install-Package FastTechFoods.Observability -Version 1.1.0
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="FastTechFoods.Observability" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FastTechFoods.Observability" Version="1.1.0" />
<PackageReference Include="FastTechFoods.Observability" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FastTechFoods.Observability --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FastTechFoods.Observability, 1.1.0"
#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.
#:package FastTechFoods.Observability@1.1.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FastTechFoods.Observability&version=1.1.0
#tool nuget:?package=FastTechFoods.Observability&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FastTechFoods.Observability
Biblioteca de observabilidade para aplicações .NET, focada em telemetria, tracing, métricas e integração facilitada com OpenTelemetry.
✨ Características
- Integração com OpenTelemetry: Suporte a traces, métricas e logs.
- Exportação para múltiplos destinos: Console, OTLP (OpenTelemetry Protocol), entre outros.
- Configuração Simples: Pensado para microserviços e aplicações modernas .NET.
- Instrumentação automática: Para ASP.NET Core, HTTP e EntityFramework Core.
- Pronto para uso em produção.
🚀 Instalação
Via NuGet:
dotnet add package FastTechFoods.Observability
🛠️ Como Usar
- Adicione a biblioteca ao seu projeto.
- Configure os serviços no
Program.cs
:
using FastTechFoods.Observability;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddFastTechFoodsObservability(options =>
{
// Configure endpoints, sampling, exporters, etc.
});
var app = builder.Build();
app.UseFastTechFoodsObservability();
app.Run();
Consulte a documentação dos métodos de configuração para customizações avançadas.
📦 Exportadores Suportados
- Console
- OTLP (gRPC/HTTP)
- Jaeger (via OTLP)
- Outros facilmente configuráveis via OpenTelemetry
🎯 Suporte a Instrumentações
- ASP.NET Core
- HTTP Client
- EntityFramework Core
📝 Exemplo de Configuração OTLP
builder.Services.AddFastTechFoodsObservability(options =>
{
options.UseOtlpExporter("http://localhost:4317");
});
🧩 Requisitos
- .NET 8.0 ou superior
- Pacotes OpenTelemetry até 1.10.x (para .NET 8)
🤝 Contribuindo
Contribuições são bem-vindas! Sinta-se à vontade para abrir Issues ou Pull Requests.
📄 Licença
Este projeto está licenciado sob a licença MIT.
📢 Observações
- Para uso com .NET 9, utilize versões do OpenTelemetry a partir de 1.11.x e ajuste o
TargetFramework
conforme necessário.
Desenvolvido por FastTechFoods 🥡
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- AspNetCore.HealthChecks.UI (>= 8.0.2)
- AspNetCore.HealthChecks.UI.Client (>= 8.0.1)
- AspNetCore.HealthChecks.UI.InMemory.Storage (>= 8.0.1)
- Microsoft.AspNetCore.Diagnostics.HealthChecks (>= 2.2.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (>= 8.0.0)
- OpenTelemetry (>= 1.11.2)
- OpenTelemetry.Exporter.Console (>= 1.11.2)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.11.2)
- OpenTelemetry.Extensions.Hosting (>= 1.11.2)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.11.1)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.0.0-beta.12)
- OpenTelemetry.Instrumentation.Http (>= 1.11.1)
- Serilog (>= 4.0.0)
- Serilog.Extensions.Hosting (>= 8.0.0)
- Serilog.Settings.Configuration (>= 8.0.0)
- Serilog.Sinks.OpenTelemetry (>= 4.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.