-
Notifications
You must be signed in to change notification settings - Fork 571
Closed
Description
Problem Statement
Having to put decorators all over the code base to monitor their performance can be cumbersome.
A single place to set up custom instrumentation would be nice.
Solution Brainstorm
Have a list of functions that can be passed to "sentry_sdk.init()".
When the SDK starts it goes through the list and instruments all the functions in the list.
Something like this:
functions_to_trace = [
{"qualified_name": "tests.test_basics._hello_world_counter"},
{"qualified_name": "time.sleep"},
{"qualified_name": "collections.Counter.most_common"},
]
sentry_sdk.init(
dsn="...",
traces_sample_rate=1.0,
functions_to_trace=functions_to_trace,
)This way you have one place to look what functions in your code base are custom instrumented.
Metadata
Metadata
Assignees
Labels
No labels