-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Feature
Copy link
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Milestone
Description
NetBox version
v4.4.1
Feature type
Change to existing functionality
Proposed functionality
Introduce a new config parameter named SENTRY_CONFIG. This will define a dictionary of arguments to pass to sentry_sdk.init() when the application is initialized.
Eventually, this parameter is expected to replace the following existing parameters; however, backward compatibility will be retained for now.
SENTRY_DSNSENTRY_SAMPLE_RATESENTRY_SEND_DEFAULT_PIISENTRY_TRACES_SAMPLE_RATE
Example usage:
SENTRY_CONFIG = {
"dsn": "https://[email protected]/0",
"send_default_pii": True,
"before_send_transaction": strip_sensitive_data,
}Use case
This approach enables NetBox administrators to pass additional Sentry initialization arguments for which a NetBox configuration parameter does not exist.
Database changes
N/A
External dependencies
N/A
Etibru
Metadata
Metadata
Assignees
Labels
complexity: lowRequires minimal effort to implementRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application