AdguardTeam / AdGuardDNSClient

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

Expose debug API #5

Open EugeneOne1 opened 4 months ago

EugeneOne1 commented 4 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