Skip to content

Commit cdf917d

Browse files
committed
chore: disable telemetry
1 parent 883af29 commit cdf917d

8 files changed

+0
-106
lines changed

tests/integration/container/test_autoscaling.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,12 @@ def rds_utils(self):
5353
def props(self):
5454
p: Properties = Properties({"plugins": "read_write_splitting", "connect_timeout": 10, "autocommit": True})
5555

56-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
57-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
58-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
59-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
60-
61-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
62-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
63-
64-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
65-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
66-
6756
return p
6857

6958
@pytest.fixture
7059
def failover_props(self):
7160
p = {"plugins": "read_write_splitting,failover", "connect_timeout": 10, "autocommit": True}
7261

73-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
74-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
75-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
76-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
77-
78-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
79-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
80-
81-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
82-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
83-
8462
return p
8563

8664
@staticmethod

tests/integration/container/test_basic_connectivity.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ def props(self):
5151
# By default, don't load the host_monitoring plugin so that the test doesn't require abort connection support
5252
p: Properties = Properties({WrapperProperties.PLUGINS.name: "aurora_connection_tracker,failover", "connect_timeout": 3})
5353

54-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
55-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
56-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
57-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
58-
59-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
60-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
61-
62-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
63-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
64-
6554
return p
6655

6756
def test_direct_connection(self, test_environment: TestEnvironment, test_driver: TestDriver, conn_utils):

tests/integration/container/test_basic_functionality.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ def rds_utils(self):
6060
def props(self):
6161
p: Properties = Properties({"plugins": "aurora_connection_tracker,failover", "connect_timeout": 10})
6262

63-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
64-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
65-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
66-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
67-
68-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
69-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
70-
71-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
72-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
73-
7463
return p
7564

7665
def test_execute__positional_and_keyword_args(

tests/integration/container/test_custom_endpoint.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ def props(self):
6565
{"plugins": "custom_endpoint,read_write_splitting,failover", "connect_timeout": 10_000, "autocommit": True})
6666

6767
features = TestEnvironment.get_current().get_features()
68-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in features \
69-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in features:
70-
WrapperProperties.ENABLE_TELEMETRY.set(p, True)
71-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, True)
72-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in features:
73-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
74-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in features:
75-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
7668

7769
return p
7870

tests/integration/container/test_failover_performance.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,6 @@ def props(self):
118118
WrapperProperties.CLUSTER_INSTANCE_HOST_PATTERN.name: f"?.{endpoint_suffix}"
119119
})
120120

121-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
122-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
123-
WrapperProperties.ENABLE_TELEMETRY.set(props, "True")
124-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(props, "True")
125-
126-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
127-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(props, "XRAY")
128-
129-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
130-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(props, "OTLP")
131-
132121
return props
133122

134123
@pytest.mark.parametrize("plugins", ["host_monitoring", "host_monitoring_v2"])

tests/integration/container/test_host_monitoring_v2.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,6 @@ def props(self):
6464
"failure_detection_count": 1,
6565
"autocommit": True})
6666

67-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
68-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
69-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
70-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
71-
72-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
73-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
74-
75-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
76-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
7767

7868
return p
7969

tests/integration/container/test_iam_authentication.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,6 @@ class TestAwsIamAuthentication:
4848
def props(self):
4949
p: Properties = Properties()
5050

51-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
52-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
53-
WrapperProperties.ENABLE_TELEMETRY.set(p, "True")
54-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(p, "True")
55-
56-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
57-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(p, "XRAY")
58-
59-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
60-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(p, "OTLP")
61-
6251
return p
6352

6453
def test_iam_wrong_database_username(self, test_environment: TestEnvironment,

tests/integration/container/test_read_write_splitting_performance.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,6 @@ def default_plugins_props(self):
9595
"autocommit": "True"
9696
})
9797

98-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
99-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
100-
WrapperProperties.ENABLE_TELEMETRY.set(props, "True")
101-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(props, "True")
102-
103-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
104-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(props, "XRAY")
105-
106-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
107-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(props, "OTLP")
108-
10998
return props
11099

111100
@pytest.fixture(scope='class')
@@ -117,17 +106,6 @@ def read_write_plugin_props(self):
117106
"autocommit": "True"
118107
})
119108

120-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features() \
121-
or TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
122-
WrapperProperties.ENABLE_TELEMETRY.set(props, "True")
123-
WrapperProperties.TELEMETRY_SUBMIT_TOPLEVEL.set(props, "True")
124-
125-
if TestEnvironmentFeatures.TELEMETRY_TRACES_ENABLED in TestEnvironment.get_current().get_features():
126-
WrapperProperties.TELEMETRY_TRACES_BACKEND.set(props, "XRAY")
127-
128-
if TestEnvironmentFeatures.TELEMETRY_METRICS_ENABLED in TestEnvironment.get_current().get_features():
129-
WrapperProperties.TELEMETRY_METRICS_BACKEND.set(props, "OTLP")
130-
131109
return props
132110

133111
def test_switch_reader_writer_connection(

0 commit comments

Comments
 (0)