Add Pyroscope profiler
This commit is contained in:
@@ -135,3 +135,13 @@ REST_FRAMEWORK = {
|
||||
}
|
||||
|
||||
from app.local_settings import * # noqa
|
||||
if PROFILER:
|
||||
import pyroscope
|
||||
pyroscope.configure(
|
||||
application_name = "neptune",
|
||||
server_address = "http://pyroscope:4040",
|
||||
auth_token = os.getenv("PYROSCOPE_AUTH_TOKEN", ""),
|
||||
# tags = {
|
||||
# "region": f'{os.getenv("REGION")}',
|
||||
# }
|
||||
)
|
||||
Reference in New Issue
Block a user