|
44 | 44 | json_decode, |
45 | 45 | json_encode, |
46 | 46 | obfuscate, |
47 | | - snake_case, |
48 | 47 | ) |
49 | 48 | from newrelic.core.attribute import ( |
50 | 49 | MAX_ATTRIBUTE_LENGTH, |
@@ -304,17 +303,10 @@ def __init__(self, application, enabled=None, source=None): |
304 | 303 | self._alternate_path_hashes = {} |
305 | 304 | self.is_part_of_cat = False |
306 | 305 |
|
307 | | - # Synthetics Header |
308 | 306 | self.synthetics_resource_id = None |
309 | 307 | self.synthetics_job_id = None |
310 | 308 | self.synthetics_monitor_id = None |
311 | 309 | self.synthetics_header = None |
312 | | - |
313 | | - # Synthetics Info Header |
314 | | - self.synthetics_type = None |
315 | | - self.synthetics_initiator = None |
316 | | - self.synthetics_attributes = None |
317 | | - self.synthetics_info_header = None |
318 | 310 |
|
319 | 311 | self._custom_metrics = CustomMetrics() |
320 | 312 | self._dimensional_metrics = DimensionalMetrics() |
@@ -611,10 +603,6 @@ def __exit__(self, exc, value, tb): |
611 | 603 | synthetics_job_id=self.synthetics_job_id, |
612 | 604 | synthetics_monitor_id=self.synthetics_monitor_id, |
613 | 605 | synthetics_header=self.synthetics_header, |
614 | | - synthetics_type=self.synthetics_type, |
615 | | - synthetics_initiator=self.synthetics_initiator, |
616 | | - synthetics_attributes=self.synthetics_attributes, |
617 | | - synthetics_info_header=self.synthetics_info_header, |
618 | 606 | is_part_of_cat=self.is_part_of_cat, |
619 | 607 | trip_id=self.trip_id, |
620 | 608 | path_hash=self.path_hash, |
@@ -852,16 +840,6 @@ def trace_intrinsics(self): |
852 | 840 | i_attrs["synthetics_job_id"] = self.synthetics_job_id |
853 | 841 | if self.synthetics_monitor_id: |
854 | 842 | i_attrs["synthetics_monitor_id"] = self.synthetics_monitor_id |
855 | | - if self.synthetics_type: |
856 | | - i_attrs["synthetics_type"] = self.synthetics_type |
857 | | - if self.synthetics_initiator: |
858 | | - i_attrs["synthetics_initiator"] = self.synthetics_initiator |
859 | | - if self.synthetics_attributes: |
860 | | - # Add all synthetics attributes |
861 | | - for k, v in self.synthetics_attributes.items(): |
862 | | - if k: |
863 | | - i_attrs["synthetics_%s" % snake_case(k)] = v |
864 | | - |
865 | 843 | if self.total_time: |
866 | 844 | i_attrs["totalTime"] = self.total_time |
867 | 845 | if self._loop_time: |
|
0 commit comments