diff --git a/Jenkinsfile b/Jenkinsfile index 9d5aca6a4ce..fe94a455576 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -695,7 +695,9 @@ def withBeatsEnv(Map args = [:], Closure body) { if (cmd(label: 'Download modules to local cache', script: 'go mod download', returnStatus: true) > 0) { cmd(label: 'Download modules to local cache - retry', script: 'go mod download', returnStatus: true) } - body() + withOtelEnv() { + body() + } } catch(err) { // Upload the generated files ONLY if the step failed. This will avoid any overhead with Google Storage upload = true diff --git a/libbeat/tests/system/requirements.txt b/libbeat/tests/system/requirements.txt index 277cdcddcf3..7704dde85cd 100644 --- a/libbeat/tests/system/requirements.txt +++ b/libbeat/tests/system/requirements.txt @@ -31,6 +31,7 @@ pycodestyle==2.6.0 pyparsing==2.4.7 pyrsistent==0.16.0 pytest==6.2.4 +pytest-otel>=0.0.4 pytest-rerunfailures==9.1.1 pytest-timeout==1.4.2 PyYAML==5.4.1 diff --git a/libbeat/tests/system/requirements_aix.txt b/libbeat/tests/system/requirements_aix.txt index 9b9df31aa37..9f0836ceccd 100644 --- a/libbeat/tests/system/requirements_aix.txt +++ b/libbeat/tests/system/requirements_aix.txt @@ -30,6 +30,7 @@ pycodestyle==2.6.0 pyparsing==2.4.7 pyrsistent==0.16.0 pytest==6.2.4 +pytest-otel>=0.0.4 pytest-rerunfailures==9.1.1 pytest-timeout==1.4.2 PyYAML==5.4.1 @@ -45,4 +46,4 @@ toml==0.10.1 urllib3==1.26.5 wcwidth==0.2.5 websocket-client==0.47.0 -zipp>=1.2.0,<=3.1.0 \ No newline at end of file +zipp>=1.2.0,<=3.1.0