Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

The merging of transaction data has failed


#1
  • What language agent version are you using? Any other relevant versions? (Packages, etc.)
    newrelic (4.4.0.103)

  • What error message are you seeing if any? Paste in text or add a screenshot:
    [2018-09-19 20:41:48,620: ERROR/MainProcess] - newrelic.core.application - The merging of transaction data has failed. This would indicate some sort of internal implementation issue with the agent. Please report this problem to New Relic support for further investigation.
    Traceback (most recent call last):
    File “/venv/lib/python3.5/site-packages/newrelic/core/application.py”, line 889, in record_transaction
    self._stats_engine.merge(stats)
    File “/venv/lib/python3.5/site-packages/newrelic/core/stats_engine.py”, line 1469, in merge
    self._merge_span_events(snapshot)
    File “/venv/lib/python3.5/site-packages/newrelic/core/stats_engine.py”, line 1564, in _merge_span_events
    self.__span_events.merge(snapshot.span_events)
    File “/venv/lib/python3.5/site-packages/newrelic/core/stats_engine.py”, line 315, in merge
    self.add(sample, priority)
    File “/venv/lib/python3.5/site-packages/newrelic/core/stats_engine.py”, line 304, in add
    self.heap = self.heap or heapify(self.pq) or True
    TypeError: unorderable types: dict() < dict()

  • Describe what are you seeing? How does that differ than what were you expecting to see?
    I just enabled distributed tracing.

Here is my config

[newrelic]
log_file = stderr
log_level = info
ssl = true

Monitor mode

By default we do not want to monitor any environment unless strictly enabled.

monitor_mode = false

Attributes

attributes.enabled = true
attributes.include = request.* request.parameters.* thread.* webfrontend.queue.* wsgi.input.* wsgi.output.*

Transaction tracer configuration

transaction_tracer.enabled = true
transaction_tracer.attributes.enabled = true
transaction_tracer.transaction_threshold = apdex_f
transaction_tracer.record_sql = obfuscated
transaction_tracer.stack_trace_threshold = 0.5
transaction_tracer.explain_enabled = true
transaction_tracer.explain_threshold = 0.5
transaction_tracer.function_trace =

Error collector configuration

error_collector.enabled = true
error_collector.attributes.enabled = true

Browser monitoring settings

browser_monitoring.enabled = true
browser_monitoring.attributes.enabled = true
browser_monitoring.auto_instrument = true

Other configuration settings

thread_profiler.enabled = true

datastore_tracer.instance_reporting.enabled = true
datastore_tracer.database_name_reporting.enabled = true

distributed_tracing.enabled = true
utilization.detect_aws = true
slow_sql.enabled = true


#2

Hey there @adam.stracener - I am sorry to hear that you have run into this frustrating situation. We just heard from engineering that the issue has been identified and a fix will available in the next agent release. I don’t have a specific date for that release, but we will let you know as soon as we do.


#3

We’re hitting same issue

Sep 25 05:15:12 web-c7cddcb85-kfcpc web Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/newrelic/core/application.py", line 889, in record_transaction
    self._stats_engine.merge(stats)
  File "/usr/local/lib/python3.6/site-packages/newrelic/core/stats_engine.py", line 1469, in merge
    self._merge_span_events(snapshot)
  File "/usr/local/lib/python3.6/site-packages/newrelic/core/stats_engine.py", line 1564, in _merge_span_events
    self.__span_events.merge(snapshot.span_events)
  File "/usr/local/lib/python3.6/site-packages/newrelic/core/stats_engine.py", line 315, in merge
    self.add(sample, priority)
  File "/usr/local/lib/python3.6/site-packages/newrelic/core/stats_engine.py", line 304, in add
    self.heap = self.heap or heapify(self.pq) or True
Sep 25 05:15:12 web-c7cddcb85-kfcpc web TypeError: '<' not supported between instances of 'dict' and 'dict'

#4

@adam.stracener @aaron.collins I wanted to let you know that we just released a fix for this error in the newest version of the Python agent. Check out our release notes here:

https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-441104