Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

python3 doesn't have 'long' type #48

@naemono

Description

@naemono
traceback: Traceback (most recent call last):
  File "worker/newrelic.py", line 56, in new_relic_metrics
    metric_set = gather_metrics(account, instance)
  File "worker/newrelic.py", line 134, in gather_metrics
    metric_set = add_network_and_operations_metrics(instance, metric_set)
  File "worker/newrelic.py", line 155, in add_network_and_operations_metrics
    instance_persecond_stats = instance.new_relic_stats.get('server_statistics_per_second', None)
  File "/Users/user/.pyenv/versions/new-relic-worker/lib/python3.6/site-packages/objectrocket/util.py", line 46, in wrapper
    response = func(self, *args, **kwargs)
  File "/Users/user/.pyenv/versions/new-relic-worker/lib/python3.6/site-packages/objectrocket/instances/mongodb.py", line 126, in new_relic_stats
    {shard.name: future.result() for (shard, future) in zip(shards, fs)})
  File "/Users/user/.pyenv/versions/new-relic-worker/lib/python3.6/site-packages/objectrocket/instances/mongodb.py", line 164, in _rollup_shard_stats_to_instance_stats
    stats.get('shard_stats')[statistic_key])
  File "/Users/user/.pyenv/versions/new-relic-worker/lib/python3.6/site-packages/objectrocket/util.py", line 71, in sum_values
    number_types = (int, float, long, bool) # noqa
NameError: name 'long' is not defined

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions