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 .transaction import accept_distributed_trace_headers as __accept_distributed_trace_headers
24- from newrelic .api .transaction import add_custom_attribute as __add_custom_attribute
25- from newrelic .api .transaction import add_custom_attributes as __add_custom_attributes
26- from newrelic .api .transaction import add_framework_info as __add_framework_info
27- from newrelic .api .transaction import capture_request_params as __capture_request_params
28- from newrelic .api .transaction import current_span_id as __current_span_id
29- from newrelic .api .transaction import current_trace_id as __current_trace_id
30- from newrelic .api .transaction import current_transaction as __current_transaction
31- from newrelic .api .transaction import disable_browser_autorum as __disable_browser_autorum
32- from newrelic .api .transaction import end_of_transaction as __end_of_transaction
33- from newrelic .api .transaction import get_browser_timing_header as __get_browser_timing_header
34- from newrelic .api .transaction import ignore_transaction as __ignore_transaction
35- from newrelic .api .transaction import insert_distributed_trace_headers as __insert_distributed_trace_headers
36- from newrelic .api .transaction import record_custom_event as __record_custom_event
37- from newrelic .api .transaction import record_custom_metric as __record_custom_metric
38- from newrelic .api .transaction import record_custom_metrics as __record_custom_metrics
39- from newrelic .api .transaction import record_log_event as __record_log_event
40- from newrelic .api .transaction import record_ml_event as __record_ml_event
41- from newrelic .api .transaction import set_background_task as __set_background_task
42- from newrelic .api .transaction import set_transaction_name as __set_transaction_name
43- from newrelic .api .transaction import suppress_apdex_metric as __suppress_apdex_metric
44- from newrelic .api .transaction import suppress_transaction_trace as __suppress_transaction_trace
45- from newrelic .api .wsgi_application import WSGIApplicationWrapper as __WSGIApplicationWrapper
46- from newrelic .api .wsgi_application import wrap_wsgi_application as __wrap_wsgi_application
47- from newrelic .api .wsgi_application import wsgi_application as __wsgi_application
48- from newrelic .config import extra_settings as __extra_settings
49- from newrelic .config import initialize as __initialize
50- from newrelic .core .agent import register_data_source as __register_data_source
51- from newrelic .core .agent import shutdown_agent as __shutdown_agent
52- from newrelic .core .config import global_settings as __global_settings
53- from newrelic .samplers .decorators import data_source_factory as __data_source_factory
54- from newrelic .samplers .decorators import data_source_generator as __data_source_generator
55-
56- try :
57- from newrelic .api .asgi_application import ASGIApplicationWrapper as __ASGIApplicationWrapper
58- from newrelic .api .asgi_application import asgi_application as __asgi_application
59- from newrelic .api .asgi_application import wrap_asgi_application as __wrap_asgi_application
60- except SyntaxError :
61-
62- def __asgi_application (* args , ** kwargs ):
63- pass
64-
65- __ASGIApplicationWrapper = __asgi_application
66- __wrap_asgi_application = __asgi_application
67-
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
6821from newrelic .api .background_task import BackgroundTask as __BackgroundTask
6922from newrelic .api .background_task import BackgroundTaskWrapper as __BackgroundTaskWrapper
7023from newrelic .api .background_task import background_task as __background_task
@@ -96,6 +49,7 @@ def __asgi_application(*args, **kwargs):
9649from newrelic .api .html_insertion import insert_html_snippet as __insert_html_snippet
9750from newrelic .api .html_insertion import verify_body_exists as __verify_body_exists
9851from newrelic .api .llm_custom_attributes import WithLlmCustomAttributes as __WithLlmCustomAttributes
52+ from newrelic .api .log import NewRelicContextFormatter as __NewRelicContextFormatter
9953from newrelic .api .message_trace import MessageTrace as __MessageTrace
10054from newrelic .api .message_trace import MessageTraceWrapper as __MessageTraceWrapper
10155from newrelic .api .message_trace import message_trace as __message_trace
@@ -112,14 +66,43 @@ def __asgi_application(*args, **kwargs):
11266from newrelic .api .profile_trace import wrap_profile_trace as __wrap_profile_trace
11367from newrelic .api .settings import set_error_group_callback as __set_error_group_callback
11468from 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
11593from 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
11696from newrelic .api .transaction_name import TransactionNameWrapper as __TransactionNameWrapper
11797from newrelic .api .transaction_name import transaction_name as __transaction_name
11898from newrelic .api .transaction_name import wrap_transaction_name as __wrap_transaction_name
11999from newrelic .api .web_transaction import WebTransaction as __WebTransaction
120100from newrelic .api .web_transaction import WebTransactionWrapper as __WebTransactionWrapper
121101from newrelic .api .web_transaction import web_transaction as __web_transaction
122102from 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
123106from newrelic .common .object_names import callable_name as __callable_name
124107from newrelic .common .object_wrapper import CallableObjectProxy as __CallableObjectProxy
125108from newrelic .common .object_wrapper import FunctionWrapper as __FunctionWrapper
@@ -143,6 +126,13 @@ def __asgi_application(*args, **kwargs):
143126from newrelic .common .object_wrapper import wrap_out_function as __wrap_out_function
144127from newrelic .common .object_wrapper import wrap_post_function as __wrap_post_function
145128from 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
146136
147137# EXPERIMENTAL - Generator traces are currently experimental and may not
148138# exist in this form in future versions of the agent.
0 commit comments