AdguardTeam / AdGuardDNSClient

Client tool for AdGuard DNS
https://adguard-dns.io
Apache License 2.0
64 stars 2 forks source link

Expose debug API #5

Open EugeneOne1 opened 2 months ago

EugeneOne1 commented 2 months ago

Prerequisites

The problem

The standard library of Go provides the set of tools for profiling the programs, and even some convenient HTTP wrappers for using those. AdGuardDNSClient already has a debug-specific configuration section called debug which is intended to configure serving of the profiling endpoints.

Proposed solution

Run an HTTP server according to the configuration, expose profiling endpoints.

Alternatives considered and additional information

No response