Zongsoft.Diagnostics 1.9.0

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

Zongsoft.Diagnostics Diagnostics Plugin Library

License NuGet Version NuGet Downloads GitHub Stars

English | 简体中文


Overview

Zongsoft.Diagnostics is the diagnostics plugin library for the Zongsoft open-source framework. It provides diagnostics and telemetry features based on OpenTelemetry.

The Zongsoft.Diagnostics.option configuration file defines the default OpenTelemetry metric and trace exporters, together with the Prometheus metric exporter.

Use driver="telemetry" for OTLP export. Set server to the receiver endpoint and protocol to grpc or HttpProtobuf; the endpoint must accept the selected OTLP transport.

Bundled OpenTelemetry Protocol

The proto directory is a Git submodule pinned to the upstream OpenTelemetry Protocol repository. It contains the OTLP protocol specification and the corresponding language-independent interface types (.proto files). Keep this submodule clean: protocol documentation and project-specific guidance belong in this README rather than in the upstream working tree.

Language-Independent Interface Types

The Proto files can be consumed as a Git submodule or copied and built directly in a consumer project. OpenTelemetry client libraries publish compiled artifacts to central repositories such as Maven. Changes to the upstream definitions must follow the OpenTelemetry Proto contribution guidelines.

OTLP/JSON

Additional requirements for the OTLP/JSON wire representation are defined by the JSON Protobuf encoding specification.

Generating gRPC Client Libraries

The upstream repository generates raw gRPC client libraries with make gen-${LANGUAGE}. Supported targets currently include:

  • cpp
  • csharp
  • go
  • java
  • objc
  • openapi (Swagger)
  • php
  • python
  • ruby

Maturity

Releases numbered 1.0.0 and later may still contain unstable alpha or beta components, as indicated below.

Component Binary Protobuf maturity JSON maturity
common/* Stable Stable
resource/* Stable Stable
metrics/*<br>collector/metrics/* Stable Stable
trace/*<br>collector/trace/* Stable Stable
logs/*<br>collector/logs/* Stable Stable
profiles/*<br>collector/profiles/* Development Development

See Versioning and Stability for the definition of maturity levels.

Stability Guarantees

Components marked Stable guarantee that existing field types, numbers, and names; service and package names; method names, parameters, return types, and invocation kinds; message and enum symbols; package names and directory structure; and existing optional or repeated declarations will not change incompatibly. Existing symbols will not be deleted.

Compatible additive changes may introduce:

  • New fields in existing messages.
  • New messages or enums.
  • New enum choices.
  • New choices in existing oneof fields.
  • New services.
  • New methods in existing services.

Every additive change must explain how senders and receivers implemented against protocol versions from before and after the change interoperate.

Experiments

New experimental components should be isolated in a development subdirectory and use Development, Alpha, Beta, or Release Candidate maturity labels. Experimental components that are not referenced by a stable component may be removed when an experiment ends. Successful experiments require review before they become Stable and inherit the full stability guarantees.

Experimental fields or messages added to stable components must remain compatible and be clearly marked as non-stable. If an experiment is abandoned, those fields or messages must remain in place and may only be deprecated; senders should normally leave them empty, and receivers must continue to tolerate empty values.

Generated Code

The upstream project does not guarantee the stability of code produced by any particular Proto code generator.

Upstream Maintainers and Approvers

See the OpenTelemetry community membership guide for role details.

Plugin-Based Integration

Compose this feature through the host; a package reference supplies compile-time APIs, while plugin loading also requires deployed manifests and runtime assets. See the complete plugin workflow.

The plugin contributes diagnostics configuration and a startup component. Select filters/exporters in its same-stem .option; loading it can activate telemetry exporters, so use controlled destinations.

Runtime artifact Source of truth
Zongsoft.Diagnostics Zongsoft.Diagnostics.plugin
File copying and dependencies Zongsoft.Diagnostics.deploy

Add this fragment to an existing host .deploy (retain Main and the host’s other base manifests; do not replace the whole file):

[plugins zongsoft diagnostics]
nuget:Zongsoft.Diagnostics

Run dotnet deploy against a test deployment as explained in the workflow, with the host's framework, platform, architecture and, where needed, site. Pin compatible versions in real deployments; application dependencies such as databases, caches or commercial runtimes are still separate prerequisites.

Additional artifacts listed by the deployment manifest include Zongsoft.Diagnostics.option, Zongsoft.Diagnostics.plugin. Retain assemblies, dependencies and satellite resource directories as well. Restart the host after deployment, check plugin loading and service/driver registration, then verify the workflow above; copied files alone do not prove that the feature is active.

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 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 is compatible.  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

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
1.9.0 53 9/18/2026
1.8.0 117 2/27/2026
1.7.0 116 1/11/2026
1.6.0 265 8/28/2025
1.5.0 207 8/14/2025
1.4.0 581 7/22/2025
1.3.0 387 7/21/2025
1.2.0 236 5/6/2025
1.1.0 532 3/26/2025
1.0.0 178 2/24/2025