File tree Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Expand file tree Collapse file tree 7 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 17
17
18
18
import boto3
19
19
import moto
20
- from testing_support .fixtures import override_application_settings
20
+ from testing_support .fixtures import dt_enabled
21
21
from testing_support .validators .validate_span_events import validate_span_events
22
22
from testing_support .validators .validate_transaction_metrics import (
23
23
validate_transaction_metrics ,
53
53
]
54
54
55
55
56
- @override_application_settings ({ "distributed_tracing.enabled" : True })
56
+ @dt_enabled
57
57
@validate_span_events (exact_agents = {"http.url" : "https://iam.amazonaws.com/" }, count = 3 )
58
58
@validate_span_events (expected_agents = ("aws.requestId" ,), count = 3 )
59
59
@validate_span_events (exact_agents = {"aws.operation" : "CreateUser" }, count = 1 )
Original file line number Diff line number Diff line change 18
18
import boto3
19
19
import botocore
20
20
import moto
21
- from testing_support .fixtures import override_application_settings
21
+ from testing_support .fixtures import dt_enabled
22
22
from testing_support .validators .validate_span_events import validate_span_events
23
23
from testing_support .validators .validate_transaction_metrics import (
24
24
validate_transaction_metrics ,
73
73
]
74
74
75
75
76
- @override_application_settings ({ "distributed_tracing.enabled" : True })
76
+ @dt_enabled
77
77
@validate_span_events (exact_agents = {"aws.operation" : "CreateBucket" }, count = 1 )
78
78
@validate_span_events (exact_agents = {"aws.operation" : "PutObject" }, count = 1 )
79
79
@validate_span_events (exact_agents = {"aws.operation" : "ListObjects" }, count = 1 )
Original file line number Diff line number Diff line change 17
17
import boto3
18
18
import moto
19
19
import pytest
20
- from testing_support .fixtures import override_application_settings
20
+ from testing_support .fixtures import dt_enabled
21
21
from testing_support .validators .validate_span_events import validate_span_events
22
22
from testing_support .validators .validate_transaction_metrics import (
23
23
validate_transaction_metrics ,
45
45
sns_metrics_phone = [("MessageBroker/SNS/Topic" "/Produce/Named/PhoneNumber" , 1 )]
46
46
47
47
48
- @override_application_settings ({ "distributed_tracing.enabled" : True })
48
+ @dt_enabled
49
49
@validate_span_events (expected_agents = ("aws.requestId" ,), count = 2 )
50
50
@validate_span_events (exact_agents = {"aws.operation" : "CreateTopic" }, count = 1 )
51
51
@validate_span_events (exact_agents = {"aws.operation" : "Publish" }, count = 1 )
@@ -74,7 +74,7 @@ def test_publish_to_sns_topic(topic_argument):
74
74
assert "MessageId" in published_message
75
75
76
76
77
- @override_application_settings ({ "distributed_tracing.enabled" : True })
77
+ @dt_enabled
78
78
@validate_span_events (expected_agents = ("aws.requestId" ,), count = 3 )
79
79
@validate_span_events (exact_agents = {"aws.operation" : "CreateTopic" }, count = 1 )
80
80
@validate_span_events (exact_agents = {"aws.operation" : "Subscribe" }, count = 1 )
Original file line number Diff line number Diff line change 17
17
18
18
import botocore .session
19
19
import moto
20
- from testing_support .fixtures import override_application_settings
20
+ from testing_support .fixtures import dt_enabled
21
21
from testing_support .validators .validate_span_events import validate_span_events
22
22
from testing_support .validators .validate_transaction_metrics import (
23
23
validate_transaction_metrics ,
63
63
]
64
64
65
65
66
- @override_application_settings ({ "distributed_tracing.enabled" : True })
66
+ @dt_enabled
67
67
@validate_span_events (expected_agents = ("aws.requestId" ,), count = 8 )
68
68
@validate_span_events (exact_agents = {"aws.operation" : "PutItem" }, count = 1 )
69
69
@validate_span_events (exact_agents = {"aws.operation" : "GetItem" }, count = 1 )
Original file line number Diff line number Diff line change 17
17
18
18
import botocore .session
19
19
import moto
20
- from testing_support .fixtures import override_application_settings
20
+ from testing_support .fixtures import dt_enabled
21
21
from testing_support .validators .validate_span_events import validate_span_events
22
22
from testing_support .validators .validate_transaction_metrics import (
23
23
validate_transaction_metrics ,
55
55
]
56
56
57
57
58
- @override_application_settings ({ "distributed_tracing.enabled" : True })
58
+ @dt_enabled
59
59
@validate_span_events (expected_agents = ("aws.requestId" ,), count = 3 )
60
60
@validate_span_events (exact_agents = {"aws.operation" : "RunInstances" }, count = 1 )
61
61
@validate_span_events (exact_agents = {"aws.operation" : "DescribeInstances" }, count = 1 )
Original file line number Diff line number Diff line change 18
18
import botocore
19
19
import botocore .session
20
20
import moto
21
- from testing_support .fixtures import override_application_settings
21
+ from testing_support .fixtures import dt_enabled
22
22
from testing_support .validators .validate_span_events import validate_span_events
23
23
from testing_support .validators .validate_transaction_metrics import (
24
24
validate_transaction_metrics ,
67
67
]
68
68
69
69
70
- @override_application_settings ({ "distributed_tracing.enabled" : True })
70
+ @dt_enabled
71
71
@validate_span_events (exact_agents = {"aws.operation" : "CreateBucket" }, count = 1 )
72
72
@validate_span_events (exact_agents = {"aws.operation" : "PutObject" }, count = 1 )
73
73
@validate_span_events (exact_agents = {"aws.operation" : "ListObjects" }, count = 1 )
Original file line number Diff line number Diff line change 18
18
import botocore .session
19
19
import moto
20
20
import pytest
21
- from testing_support .fixtures import override_application_settings
21
+ from testing_support .fixtures import dt_enabled
22
22
from testing_support .validators .validate_span_events import validate_span_events
23
23
from testing_support .validators .validate_transaction_metrics import (
24
24
validate_transaction_metrics ,
70
70
]
71
71
72
72
73
- @override_application_settings ({ "distributed_tracing.enabled" : True })
73
+ @dt_enabled
74
74
@validate_span_events (exact_agents = {"aws.operation" : "CreateQueue" }, count = 1 )
75
75
@validate_span_events (exact_agents = {"aws.operation" : "SendMessage" }, count = 1 )
76
76
@validate_span_events (exact_agents = {"aws.operation" : "ReceiveMessage" }, count = 1 )
@@ -124,7 +124,7 @@ def test_sqs():
124
124
assert resp ["ResponseMetadata" ]["HTTPStatusCode" ] == 200
125
125
126
126
127
- @override_application_settings ({ "distributed_tracing.enabled" : True })
127
+ @dt_enabled
128
128
@validate_transaction_metrics (
129
129
"test_botocore_sqs:test_sqs_malformed" ,
130
130
scoped_metrics = _sqs_scoped_metrics_malformed ,
You can’t perform that action at this time.
0 commit comments