Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reading configuration from pyproject.toml #1229

Open
Tatsh opened this issue Oct 8, 2024 · 1 comment
Open

Support reading configuration from pyproject.toml #1229

Tatsh opened this issue Oct 8, 2024 · 1 comment

Comments

@Tatsh
Copy link

Tatsh commented Oct 8, 2024

Is your feature request related to a problem? Please describe.

No.

Feature Description

Please read configuration from the shared configuration file pyproject.toml as well as newrelic.ini (one or the other, preferring pyproject.toml). Example mapping based on current newrelic.ini format:

[tool.newrelic]
log_level = "info"
high_security = false
monitor_mode = true
app_name = "app_name"

# Extends above
[tool.newrelic.production]
app_name = "app_name (Production)"

# [import-hook:django]
# instrumentation.scripts.django_admin = process_tasks runjob runjobs
# becomes:

[tool.newrelic.import-hook.django.instrumentation.scripts] # replace : with -
django_admin = ["process_tasks", "runjob", "runjobs"]

This will help to reduce the amount of project metadata files needed.

Describe Alternatives

n/a

Additional context

PEP 621 – Storing project metadata in pyproject.toml

Priority

Really Want.

@workato-integration
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant