Skip to content

Commit 0f63551

Browse files
committed
Unpin infinite tracing
1 parent 114cb6d commit 0f63551

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

tests/serverless_azure/function_app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
# limitations under the License.
1414

1515
import newrelic.agent
16+
import os
1617

1718
newrelic.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

2122
import azure.functions as func # noqa: E402; pylint: disable=E0401
2223

tests/serverless_azure/host.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
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)"

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

472472
allowlist_externals =
@@ -478,7 +478,7 @@ install_command=
478478
{toxinidir}/.github/scripts/retry.sh 3 pip install {opts} {packages}
479479

480480
extras =
481-
agent_streaming: infinite-tracing<0.5
481+
agent_streaming: infinite-tracing
482482

483483
changedir =
484484
adapter_asgiref: tests/adapter_asgiref

0 commit comments

Comments
 (0)