Don't record size in chunk upload metrics

This commit is contained in:
Brad Ison 2016-12-14 12:16:02 -05:00
parent 2a6632cff4
commit 8f59ac1251
2 changed files with 2 additions and 2 deletions

View file

@ -200,7 +200,7 @@ def put_image_layer(namespace, repository, image_id):
start_time = time()
store.stream_write(locations, path, sr)
metric_queue.chunk_upload_time.Observe(time() - start_time,
labelvalues=[size_info.compressed_size, list(locations)[0]])
labelvalues=[list(locations)[0]])
except IOError:
logger.exception('Exception when writing image data')
abort(520, 'Image %(image_id)s could not be written. Please try again.', image_id=image_id)