File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed
Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import newrelic .agent
16+ import os
1617
1718newrelic .agent .initialize () # Initialize the New Relic agent
18- app_name = "Python Agent Test (serverless_azure)"
19- application = newrelic .agent .register_application (app_name )
19+ os . environ [ "NEW_RELIC_APP_NAME" ] = app_name = "Python Agent Test (serverless_azure)"
20+ newrelic .agent .register_application (app_name , timeout = 20.0 )
2021
2122import azure .functions as func # noqa: E402; pylint: disable=E0401
2223
Original file line number Diff line number Diff line change 11{
22 "version" : " 2.0" ,
33 "functionTimeout" : " 00:05:00" ,
4- "logging" : {
5- "applicationInsights" : {
6- "samplingSettings" : {
7- "isEnabled" : true
8- }
9- }
10- },
114 "extensionBundle" : {
125 "id" : " Microsoft.Azure.Functions.ExtensionBundle" ,
136 "version" : " [2.*, 3.0.0)"
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ commands =
466466
467467 framework_tornado: pip install --ignore-installed --config-settings =" --build-option=--with-openssl" pycurl
468468 serverless_azure: bash {toxinidir}/.github/scripts/azure_functions.sh
469- serverless_azure: func start
469+ serverless_azure: func start
470470 coverage run -m pytest -v []
471471
472472allowlist_externals =
@@ -478,7 +478,7 @@ install_command=
478478 {toxinidir}/.github/scripts/retry.sh 3 pip install {opts} {packages}
479479
480480extras =
481- agent_streaming: infinite-tracing<0.5
481+ agent_streaming: infinite-tracing
482482
483483changedir =
484484 adapter_asgiref: tests/adapter_asgiref
You can’t perform that action at this time.
0 commit comments