1515from newrelic .api .application import application_instance as __application
1616from newrelic .api .application import application_settings as __application_settings
1717from newrelic .api .application import register_application as __register_application
18- from newrelic .api .log import NewRelicContextFormatter as __NewRelicContextFormatter
19- from newrelic .api .time_trace import add_custom_span_attribute as __add_custom_span_attribute
20- from newrelic .api .time_trace import current_trace as __current_trace
21- from newrelic .api .time_trace import get_linking_metadata as __get_linking_metadata
22- from newrelic .api .time_trace import notice_error as __notice_error
23- from newrelic .api .time_trace import record_exception as __record_exception
24- from newrelic .api .transaction import accept_distributed_trace_headers as __accept_distributed_trace_headers
25- from newrelic .api .transaction import accept_distributed_trace_payload as __accept_distributed_trace_payload
26- from newrelic .api .transaction import add_custom_attribute as __add_custom_attribute
27- from newrelic .api .transaction import add_custom_attributes as __add_custom_attributes
28- from newrelic .api .transaction import add_custom_parameter as __add_custom_parameter
29- from newrelic .api .transaction import add_custom_parameters as __add_custom_parameters
30- from newrelic .api .transaction import add_framework_info as __add_framework_info
31- from newrelic .api .transaction import capture_request_params as __capture_request_params
32- from newrelic .api .transaction import create_distributed_trace_payload as __create_distributed_trace_payload
33- from newrelic .api .transaction import current_span_id as __current_span_id
34- from newrelic .api .transaction import current_trace_id as __current_trace_id
35- from newrelic .api .transaction import current_transaction as __current_transaction
36- from newrelic .api .transaction import disable_browser_autorum as __disable_browser_autorum
37- from newrelic .api .transaction import end_of_transaction as __end_of_transaction
38- from newrelic .api .transaction import get_browser_timing_footer as __get_browser_timing_footer
39- from newrelic .api .transaction import get_browser_timing_header as __get_browser_timing_header
40- from newrelic .api .transaction import ignore_transaction as __ignore_transaction
41- from newrelic .api .transaction import insert_distributed_trace_headers as __insert_distributed_trace_headers
42- from newrelic .api .transaction import record_custom_event as __record_custom_event
43- from newrelic .api .transaction import record_custom_metric as __record_custom_metric
44- from newrelic .api .transaction import record_custom_metrics as __record_custom_metrics
45- from newrelic .api .transaction import record_log_event as __record_log_event
46- from newrelic .api .transaction import record_ml_event as __record_ml_event
47- from newrelic .api .transaction import set_background_task as __set_background_task
48- from newrelic .api .transaction import set_transaction_name as __set_transaction_name
49- from newrelic .api .transaction import suppress_apdex_metric as __suppress_apdex_metric
50- from newrelic .api .transaction import suppress_transaction_trace as __suppress_transaction_trace
51- from newrelic .api .wsgi_application import WSGIApplicationWrapper as __WSGIApplicationWrapper
52- from newrelic .api .wsgi_application import wrap_wsgi_application as __wrap_wsgi_application
53- from newrelic .api .wsgi_application import wsgi_application as __wsgi_application
54- from newrelic .config import extra_settings as __extra_settings
55- from newrelic .config import initialize as __initialize
56- from newrelic .core .agent import register_data_source as __register_data_source
57- from newrelic .core .agent import shutdown_agent as __shutdown_agent
58- from newrelic .core .config import global_settings as __global_settings
59- from newrelic .samplers .decorators import data_source_factory as __data_source_factory
60- from newrelic .samplers .decorators import data_source_generator as __data_source_generator
61-
62- try :
63- from newrelic .api .asgi_application import ASGIApplicationWrapper as __ASGIApplicationWrapper
64- from newrelic .api .asgi_application import asgi_application as __asgi_application
65- from newrelic .api .asgi_application import wrap_asgi_application as __wrap_asgi_application
66- except SyntaxError :
67-
68- def __asgi_application (* args , ** kwargs ):
69- pass
70-
71- __ASGIApplicationWrapper = __asgi_application
72- __wrap_asgi_application = __asgi_application
73-
18+ from newrelic .api .asgi_application import ASGIApplicationWrapper as __ASGIApplicationWrapper
19+ from newrelic .api .asgi_application import asgi_application as __asgi_application
20+ from newrelic .api .asgi_application import wrap_asgi_application as __wrap_asgi_application
7421from newrelic .api .background_task import BackgroundTask as __BackgroundTask
7522from newrelic .api .background_task import BackgroundTaskWrapper as __BackgroundTaskWrapper
7623from newrelic .api .background_task import background_task as __background_task
@@ -101,9 +48,8 @@ def __asgi_application(*args, **kwargs):
10148from newrelic .api .generator_trace import wrap_generator_trace as __wrap_generator_trace
10249from newrelic .api .html_insertion import insert_html_snippet as __insert_html_snippet
10350from newrelic .api .html_insertion import verify_body_exists as __verify_body_exists
104- from newrelic .api .lambda_handler import LambdaHandlerWrapper as __LambdaHandlerWrapper
105- from newrelic .api .lambda_handler import lambda_handler as __lambda_handler
10651from newrelic .api .llm_custom_attributes import WithLlmCustomAttributes as __WithLlmCustomAttributes
52+ from newrelic .api .log import NewRelicContextFormatter as __NewRelicContextFormatter
10753from newrelic .api .message_trace import MessageTrace as __MessageTrace
10854from newrelic .api .message_trace import MessageTraceWrapper as __MessageTraceWrapper
10955from newrelic .api .message_trace import message_trace as __message_trace
@@ -120,20 +66,48 @@ def __asgi_application(*args, **kwargs):
12066from newrelic .api .profile_trace import wrap_profile_trace as __wrap_profile_trace
12167from newrelic .api .settings import set_error_group_callback as __set_error_group_callback
12268from newrelic .api .supportability import wrap_api_call as __wrap_api_call
69+ from newrelic .api .time_trace import add_custom_span_attribute as __add_custom_span_attribute
70+ from newrelic .api .time_trace import current_trace as __current_trace
71+ from newrelic .api .time_trace import get_linking_metadata as __get_linking_metadata
72+ from newrelic .api .time_trace import notice_error as __notice_error
73+ from newrelic .api .transaction import accept_distributed_trace_headers as __accept_distributed_trace_headers
74+ from newrelic .api .transaction import add_custom_attribute as __add_custom_attribute
75+ from newrelic .api .transaction import add_custom_attributes as __add_custom_attributes
76+ from newrelic .api .transaction import add_framework_info as __add_framework_info
77+ from newrelic .api .transaction import capture_request_params as __capture_request_params
78+ from newrelic .api .transaction import current_span_id as __current_span_id
79+ from newrelic .api .transaction import current_trace_id as __current_trace_id
80+ from newrelic .api .transaction import current_transaction as __current_transaction
81+ from newrelic .api .transaction import disable_browser_autorum as __disable_browser_autorum
82+ from newrelic .api .transaction import end_of_transaction as __end_of_transaction
83+ from newrelic .api .transaction import get_browser_timing_header as __get_browser_timing_header
84+ from newrelic .api .transaction import ignore_transaction as __ignore_transaction
85+ from newrelic .api .transaction import insert_distributed_trace_headers as __insert_distributed_trace_headers
86+ from newrelic .api .transaction import record_custom_event as __record_custom_event
87+ from newrelic .api .transaction import record_custom_metric as __record_custom_metric
88+ from newrelic .api .transaction import record_custom_metrics as __record_custom_metrics
89+ from newrelic .api .transaction import record_log_event as __record_log_event
90+ from newrelic .api .transaction import record_ml_event as __record_ml_event
91+ from newrelic .api .transaction import set_background_task as __set_background_task
92+ from newrelic .api .transaction import set_transaction_name as __set_transaction_name
12393from newrelic .api .transaction import set_user_id as __set_user_id
94+ from newrelic .api .transaction import suppress_apdex_metric as __suppress_apdex_metric
95+ from newrelic .api .transaction import suppress_transaction_trace as __suppress_transaction_trace
12496from newrelic .api .transaction_name import TransactionNameWrapper as __TransactionNameWrapper
12597from newrelic .api .transaction_name import transaction_name as __transaction_name
12698from newrelic .api .transaction_name import wrap_transaction_name as __wrap_transaction_name
12799from newrelic .api .web_transaction import WebTransaction as __WebTransaction
128100from newrelic .api .web_transaction import WebTransactionWrapper as __WebTransactionWrapper
129101from newrelic .api .web_transaction import web_transaction as __web_transaction
130102from newrelic .api .web_transaction import wrap_web_transaction as __wrap_web_transaction
103+ from newrelic .api .wsgi_application import WSGIApplicationWrapper as __WSGIApplicationWrapper
104+ from newrelic .api .wsgi_application import wrap_wsgi_application as __wrap_wsgi_application
105+ from newrelic .api .wsgi_application import wsgi_application as __wsgi_application
131106from newrelic .common .object_names import callable_name as __callable_name
132107from newrelic .common .object_wrapper import CallableObjectProxy as __CallableObjectProxy
133108from newrelic .common .object_wrapper import FunctionWrapper as __FunctionWrapper
134109from newrelic .common .object_wrapper import InFunctionWrapper as __InFunctionWrapper
135110from newrelic .common .object_wrapper import ObjectProxy as __ObjectProxy
136- from newrelic .common .object_wrapper import ObjectWrapper as __ObjectWrapper
137111from newrelic .common .object_wrapper import OutFunctionWrapper as __OutFunctionWrapper
138112from newrelic .common .object_wrapper import PostFunctionWrapper as __PostFunctionWrapper
139113from newrelic .common .object_wrapper import PreFunctionWrapper as __PreFunctionWrapper
@@ -152,6 +126,13 @@ def __asgi_application(*args, **kwargs):
152126from newrelic .common .object_wrapper import wrap_out_function as __wrap_out_function
153127from newrelic .common .object_wrapper import wrap_post_function as __wrap_post_function
154128from newrelic .common .object_wrapper import wrap_pre_function as __wrap_pre_function
129+ from newrelic .config import extra_settings as __extra_settings
130+ from newrelic .config import initialize as __initialize
131+ from newrelic .core .agent import register_data_source as __register_data_source
132+ from newrelic .core .agent import shutdown_agent as __shutdown_agent
133+ from newrelic .core .config import global_settings as __global_settings
134+ from newrelic .samplers .decorators import data_source_factory as __data_source_factory
135+ from newrelic .samplers .decorators import data_source_generator as __data_source_generator
155136
156137# EXPERIMENTAL - Generator traces are currently experimental and may not
157138# exist in this form in future versions of the agent.
@@ -178,15 +159,11 @@ def __asgi_application(*args, **kwargs):
178159ignore_transaction = __wrap_api_call (__ignore_transaction , "ignore_transaction" )
179160suppress_apdex_metric = __wrap_api_call (__suppress_apdex_metric , "suppress_apdex_metric" )
180161capture_request_params = __wrap_api_call (__capture_request_params , "capture_request_params" )
181- add_custom_parameter = __wrap_api_call (__add_custom_parameter , "add_custom_parameter" )
182- add_custom_parameters = __wrap_api_call (__add_custom_parameters , "add_custom_parameters" )
183162add_custom_attribute = __wrap_api_call (__add_custom_attribute , "add_custom_attribute" )
184163add_custom_attributes = __wrap_api_call (__add_custom_attributes , "add_custom_attributes" )
185164add_framework_info = __wrap_api_call (__add_framework_info , "add_framework_info" )
186- record_exception = __wrap_api_call (__record_exception , "record_exception" )
187165notice_error = __wrap_api_call (__notice_error , "notice_error" )
188166get_browser_timing_header = __wrap_api_call (__get_browser_timing_header , "get_browser_timing_header" )
189- get_browser_timing_footer = __wrap_api_call (__get_browser_timing_footer , "get_browser_timing_footer" )
190167disable_browser_autorum = __wrap_api_call (__disable_browser_autorum , "disable_browser_autorum" )
191168suppress_transaction_trace = __wrap_api_call (__suppress_transaction_trace , "suppress_transaction_trace" )
192169record_custom_metric = __wrap_api_call (__record_custom_metric , "record_custom_metric" )
@@ -195,12 +172,6 @@ def __asgi_application(*args, **kwargs):
195172record_log_event = __wrap_api_call (__record_log_event , "record_log_event" )
196173record_ml_event = __wrap_api_call (__record_ml_event , "record_ml_event" )
197174WithLlmCustomAttributes = __wrap_api_call (__WithLlmCustomAttributes , "WithLlmCustomAttributes" )
198- accept_distributed_trace_payload = __wrap_api_call (
199- __accept_distributed_trace_payload , "accept_distributed_trace_payload"
200- )
201- create_distributed_trace_payload = __wrap_api_call (
202- __create_distributed_trace_payload , "create_distributed_trace_payload"
203- )
204175accept_distributed_trace_headers = __wrap_api_call (
205176 __accept_distributed_trace_headers , "accept_distributed_trace_headers"
206177)
@@ -223,8 +194,6 @@ def __asgi_application(*args, **kwargs):
223194BackgroundTask = __wrap_api_call (__BackgroundTask , "BackgroundTask" )
224195BackgroundTaskWrapper = __wrap_api_call (__BackgroundTaskWrapper , "BackgroundTaskWrapper" )
225196wrap_background_task = __wrap_api_call (__wrap_background_task , "wrap_background_task" )
226- LambdaHandlerWrapper = __wrap_api_call (__LambdaHandlerWrapper , "LambdaHandlerWrapper" )
227- lambda_handler = __wrap_api_call (__lambda_handler , "lambda_handler" )
228197NewRelicContextFormatter = __wrap_api_call (__NewRelicContextFormatter , "NewRelicContextFormatter" )
229198transaction_name = __wrap_api_call (__transaction_name , "transaction_name" )
230199TransactionNameWrapper = __wrap_api_call (__TransactionNameWrapper , "TransactionNameWrapper" )
@@ -275,7 +244,6 @@ def __asgi_application(*args, **kwargs):
275244function_wrapper = __wrap_api_call (__function_wrapper , "function_wrapper" )
276245wrap_function_wrapper = __wrap_api_call (__wrap_function_wrapper , "wrap_function_wrapper" )
277246patch_function_wrapper = __wrap_api_call (__patch_function_wrapper , "patch_function_wrapper" )
278- ObjectWrapper = __wrap_api_call (__ObjectWrapper , "ObjectWrapper" )
279247pre_function = __wrap_api_call (__pre_function , "pre_function" )
280248PreFunctionWrapper = __wrap_api_call (__PreFunctionWrapper , "PreFunctionWrapper" )
281249wrap_pre_function = __wrap_api_call (__wrap_pre_function , "wrap_pre_function" )
0 commit comments