File tree 4 files changed +28
-16
lines changed
4 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import platform
16
16
17
- from newrelic .api .application import application_settings
18
- from newrelic .api .background_task import background_task
19
- from newrelic .api .time_trace import current_trace
20
- from newrelic .api .transaction import current_transaction
21
17
from testing_support .fixtures import reset_core_stats_engine
22
18
from testing_support .validators .validate_log_event_count import validate_log_event_count
23
19
from testing_support .validators .validate_log_event_count_outside_transaction import (
24
20
validate_log_event_count_outside_transaction ,
25
21
)
26
22
23
+ from newrelic .api .application import application_settings
24
+ from newrelic .api .background_task import background_task
25
+ from newrelic .api .time_trace import current_trace
26
+ from newrelic .api .transaction import current_transaction
27
+
27
28
28
29
def set_trace_ids ():
29
30
txn = current_transaction ()
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
import logging
16
- import pytest
17
16
18
- from newrelic .api .background_task import background_task
19
- from newrelic .api .time_trace import current_trace
20
- from newrelic .api .transaction import current_transaction
17
+ import pytest
21
18
from testing_support .fixtures import reset_core_stats_engine
22
19
from testing_support .validators .validate_log_event_count import validate_log_event_count
23
20
from testing_support .validators .validate_log_event_count_outside_transaction import (
24
21
validate_log_event_count_outside_transaction ,
25
22
)
26
23
from testing_support .validators .validate_log_events import validate_log_events
27
- from testing_support .validators .validate_log_events_outside_transaction import validate_log_events_outside_transaction
24
+ from testing_support .validators .validate_log_events_outside_transaction import (
25
+ validate_log_events_outside_transaction ,
26
+ )
27
+
28
+ from newrelic .api .background_task import background_task
29
+ from newrelic .api .time_trace import current_trace
30
+ from newrelic .api .transaction import current_transaction
28
31
29
32
30
33
def set_trace_ids ():
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- from newrelic .api .background_task import background_task
16
15
from testing_support .fixtures import reset_core_stats_engine
17
16
from testing_support .validators .validate_custom_metrics_outside_transaction import (
18
17
validate_custom_metrics_outside_transaction ,
19
18
)
20
- from testing_support .validators .validate_transaction_metrics import validate_transaction_metrics
19
+ from testing_support .validators .validate_transaction_metrics import (
20
+ validate_transaction_metrics ,
21
+ )
22
+
23
+ from newrelic .api .background_task import background_task
21
24
22
25
23
26
def exercise_logging (logger ):
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import pytest
16
15
import platform
17
16
17
+ import pytest
18
+ from testing_support .fixtures import (
19
+ override_application_settings ,
20
+ reset_core_stats_engine ,
21
+ )
22
+ from testing_support .validators .validate_log_event_count import validate_log_event_count
23
+ from testing_support .validators .validate_transaction_metrics import (
24
+ validate_transaction_metrics ,
25
+ )
26
+
18
27
from newrelic .api .application import application_settings
19
28
from newrelic .api .background_task import background_task
20
- from testing_support .fixtures import reset_core_stats_engine
21
- from testing_support .validators .validate_log_event_count import validate_log_event_count
22
- from testing_support .fixtures import override_application_settings
23
- from testing_support .validators .validate_transaction_metrics import validate_transaction_metrics
24
29
25
30
26
31
def get_metadata_string (log_message , is_txn ):
You can’t perform that action at this time.
0 commit comments