Skip to main content
Version: v1.39.1

Profiling

Profiling

The relay proxy is able to expose profiling information.
This is useful to understand the performance of the service and solve potential issues.

The information are exposed on the /debug/pprof endpoint, and we are using the default net/http/pprof package to expose the information.

warning

By default the profiling endpoints are disabled, and must be enabled in the configuration file.

List of endpoints exposed is available http://localhost:1031/debug/pprof/

Enable profiling

In your relay proxy configuration file you need to set the enablePprof field to true.

retriever:
kind: file
path: /goff/flags.yaml # Location of your feature flag files
# ...
enablePprof: true

Note: the debug field also enables profiling, but it is deprecated.

Get the latest GO Feature Flag updates