Skip to content

Commit

Permalink
Disable for PRs and set to 10% sample rate
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
  • Loading branch information
Tyler Smalley committed Dec 2, 2020
1 parent 49bf559 commit 9331fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/kibanaPipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) {
def esTransportPort = "61${parallelId}3"
def fleetPackageRegistryPort = "61${parallelId}4"
def alertingProxyPort = "61${parallelId}5"
def sampleRate = githubPr.isPr() ? "0.01" : "1.0";
def apmActive = githubPr.isPr() ? "false" : "true"

withEnv([
"CI_GROUP=${parallelId}",
Expand All @@ -103,8 +103,8 @@ def withFunctionalTestEnv(List additionalEnvs = [], Closure closure) {
"KBN_NP_PLUGINS_BUILT=true",
"FLEET_PACKAGE_REGISTRY_PORT=${fleetPackageRegistryPort}",
"ALERTING_PROXY_PORT=${alertingProxyPort}",
"ELASTIC_APM_ACTIVE=true",
"ELASTIC_APM_TRANSACTION_SAMPLE_RATE=${sampleRate}",
"ELASTIC_APM_ACTIVE=${apmActive}",
"ELASTIC_APM_TRANSACTION_SAMPLE_RATE=0.1",
] + additionalEnvs) {
closure()
}
Expand Down

0 comments on commit 9331fcf

Please sign in to comment.