CyberEye.Observability.Lib 3.0.38

dotnet add package CyberEye.Observability.Lib --version 3.0.38
                    
NuGet\Install-Package CyberEye.Observability.Lib -Version 3.0.38
                    
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="CyberEye.Observability.Lib" Version="3.0.38" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CyberEye.Observability.Lib" Version="3.0.38" />
                    
Directory.Packages.props
<PackageReference Include="CyberEye.Observability.Lib" />
                    
Project file
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 CyberEye.Observability.Lib --version 3.0.38
                    
#r "nuget: CyberEye.Observability.Lib, 3.0.38"
                    
#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 CyberEye.Observability.Lib@3.0.38
                    
#: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=CyberEye.Observability.Lib&version=3.0.38
                    
Install as a Cake Addin
#tool nuget:?package=CyberEye.Observability.Lib&version=3.0.38
                    
Install as a Cake Tool

CyberEye.Observability.Lib

Đăng ký Prometheus metrics và OpenTelemetry tracing theo loại host. Metrics, traces và logs là các luồng khác nhau; có endpoint không đồng nghĩa đã thu được mọi tín hiệu.

Target framework: net8.0.

Cài đặt

dotnet add package CyberEye.Observability.Lib

Cần cấu hình NuGet feed của dự án và chọn phiên bản tương thích với các package CyberEye khác trong host.

Tích hợp

Với host Ce.Common.Lib, AddBaseApiServices/NewApiPipeline đã gọi registration/middleware tương ứng. Không đăng ký lặp lại.

Với host tự quản lý pipeline, các method trong Ce.Observability.Lib.StartupExtensions nhận IConfiguration: AddMetric, AddTrace, UseMetricExporter, UseHttpPrometheusMetrics. HTTP metrics đặt sau routing; exporter trước endpoints. Host cần khởi tạo ServiceConfig/DatabaseConfig trước khi helpers đọc flags.

{
  "MetricConfiguration": { "UseMetric": true, "EnableRuntime": true },
  "TraceConfiguration": {
    "UseTrace": true,
    "Uri": "http://otel-collector:4317",
    "Protocol": "Grpc",
    "AspNetCoreInstrumentation": { "Enable": true },
    "HttpClientInstrumentation": { "Enable": true }
  }
}

Giới hạn cần biết

  • Backend AddTrace hiện kiểm tra Uri trước UseTrace; section đã bind vẫn cần Uri khi UseTrace=false.
  • AddTrace còn bật OTLP metrics, độc lập với UseMetric. Exporter metrics hiện ép protocol gRPC.
  • AI metrics cần flags AI, producer và subscriber; Elasticsearch metrics legacy là no-op.
  • Chọn biến thể WebApp/OidcAdmin/OidcServer đúng host. Không giả định hot reload listener/exporter.
Product Compatible and additional computed target framework versions.
.NET 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.  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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CyberEye.Observability.Lib:

Package Downloads
CyberEye.Common.Lib

Package chứa các hàm tiện ích, các base class, abstract class

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.38 87 11/22/2026
3.0.37 113 11/21/2026
3.0.36 91 11/20/2026
3.0.35 94 11/16/2026
3.0.34 105 11/15/2026
3.0.33 93 11/15/2026
3.0.32 94 11/15/2026
3.0.31 107 11/15/2026
3.0.30 95 11/15/2026
3.0.29 98 11/13/2026
3.0.28 106 11/6/2026
3.0.27 132 9/17/2026
3.0.26 118 9/8/2026
3.0.25 158 8/22/2026
3.0.24 139 8/10/2026
3.0.23 122 8/9/2026
3.0.22 153 8/1/2026
3.0.21 117 7/28/2026
3.0.20 126 7/27/2026
3.0.19 125 7/27/2026
Loading failed