Sample repo pulls in V2

Fixes #1058
This commit is contained in:
Joseph Schorr 2015-12-14 17:41:16 -05:00
parent b5bbfa67b3
commit ea9ebb98e6

View file

@ -233,7 +233,7 @@ def fetch_manifest_by_tagname(namespace, repo_name, manifest_ref):
repo = model.repository.get_repository(namespace, repo_name)
if repo is not None:
track_and_log('pull_repo', repo)
track_and_log('pull_repo', repo, analytics_name='pull_repo_100x', analytics_sample=0.01)
response = make_response(manifest.json_data, 200)
response.headers['Docker-Content-Digest'] = manifest.digest