{"action":"opened","number":94,"pull_request":{"url":"https://api.github.com/repos/DataDog/datadogpy/pulls/94","id":48950136,"html_url":"https://github.com/DataDog/datadogpy/pull/94","diff_url":"https://github.com/DataDog/datadogpy/pull/94.diff","patch_url":"https://github.com/DataDog/datadogpy/pull/94.patch","issue_url":"https://api.github.com/repos/DataDog/datadogpy/issues/94","number":94,"state":"open","locked":false,"title":"Fix bug where tags list increases in size","user":{"login":"steven-liu","id":1120729,"avatar_url":"https://avatars.githubusercontent.com/u/1120729?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-liu","html_url":"https://github.com/steven-liu","followers_url":"https://api.github.com/users/steven-liu/followers","following_url":"https://api.github.com/users/steven-liu/following{/other_user}","gists_url":"https://api.github.com/users/steven-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-liu/subscriptions","organizations_url":"https://api.github.com/users/steven-liu/orgs","repos_url":"https://api.github.com/users/steven-liu/repos","events_url":"https://api.github.com/users/steven-liu/events{/privacy}","received_events_url":"https://api.github.com/users/steven-liu/received_events","type":"User","site_admin":false},"body":"## Summary\r\nWhen a previously-defined metric-level list (non-literal list) is passed into the `gauge()` function,\r\nthe metric-level list will be modified if `constant_tags` is not `None`. This is due\r\nto the `+=` operator modifying the metric-level list by appending\r\nthe list `constant_tags`.\r\n\r\nIf you're using dogstatsd to send your metrics, this will inevitably lead to a `error: [Errno 90] Message too long` since the UDP packet size has an upper limit.\r\n\r\nFor an example of this, see the new test, `test_gauge_constant_tags_with_metric_level_tags_twice`.\r\n\r\n## Fix\r\nUse the following instead of `+=`:\r\n```python\r\n# WILL modify metric-level tags passed into the function\r\ntags += self.constant_tags\r\n\r\n# WON'T modify metric-level tags passed into the function\r\ntags = tags + self.constant_tags\r\n```","created_at":"2015-10-28T00:12:26Z","updated_at":"2015-10-28T00:12:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DataDog/datadogpy/pulls/94/commits","review_comments_url":"https://api.github.com/repos/DataDog/datadogpy/pulls/94/comments","review_comment_url":"https://api.github.com/repos/DataDog/datadogpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/datadogpy/issues/94/comments","statuses_url":"https://api.github.com/repos/DataDog/datadogpy/statuses/d68749cd09f9261b43cc1e9a4677a9468e8421b4","head":{"label":"steven-liu:fix-constant-tags","ref":"fix-constant-tags","sha":"d68749cd09f9261b43cc1e9a4677a9468e8421b4","user":{"login":"steven-liu","id":1120729,"avatar_url":"https://avatars.githubusercontent.com/u/1120729?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-liu","html_url":"https://github.com/steven-liu","followers_url":"https://api.github.com/users/steven-liu/followers","following_url":"https://api.github.com/users/steven-liu/following{/other_user}","gists_url":"https://api.github.com/users/steven-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-liu/subscriptions","organizations_url":"https://api.github.com/users/steven-liu/orgs","repos_url":"https://api.github.com/users/steven-liu/repos","events_url":"https://api.github.com/users/steven-liu/events{/privacy}","received_events_url":"https://api.github.com/users/steven-liu/received_events","type":"User","site_admin":false},"repo":{"id":45058736,"name":"datadogpy","full_name":"steven-liu/datadogpy","owner":{"login":"steven-liu","id":1120729,"avatar_url":"https://avatars.githubusercontent.com/u/1120729?v=3","gravatar_id":"","url":"https://api.github.com/users/steven-liu","html_url":"https://github.com/steven-liu","followers_url":"https://api.github.com/users/steven-liu/followers","following_url":"https://api.github.com/users/steven-liu/following{/other_user}","gists_url":"https://api.github.com/users/steven-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/steven-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steven-liu/subscriptions","organizations_url":"https://api.github.com/users/steven-liu/orgs","repos_url":"https://api.github.com/users/steven-liu/repos","events_url":"https://api.github.com/users/steven-liu/events{/privacy}","received_events_url":"https://api.github.com/users/steven-liu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/steven-liu/datadogpy","description":"The Datadog Python library","fork":true,"url":"https://api.github.com/repos/steven-liu/datadogpy","forks_url":"https://api.github.com/repos/steven-liu/datadogpy/forks","keys_url":"https://api.github.com/repos/steven-liu/datadogpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steven-liu/datadogpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steven-liu/datadogpy/teams","hooks_url":"https://api.github.com/repos/steven-liu/datadogpy/hooks","issue_events_url":"https://api.github.com/repos/steven-liu/datadogpy/issues/events{/number}","events_url":"https://api.github.com/repos/steven-liu/datadogpy/events","assignees_url":"https://api.github.com/repos/steven-liu/datadogpy/assignees{/user}","branches_url":"https://api.github.com/repos/steven-liu/datadogpy/branches{/branch}","tags_url":"https://api.github.com/repos/steven-liu/datadogpy/tags","blobs_url":"https://api.github.com/repos/steven-liu/datadogpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steven-liu/datadogpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steven-liu/datadogpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/steven-liu/datadogpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steven-liu/datadogpy/statuses/{sha}","languages_url":"https://api.github.com/repos/steven-liu/datadogpy/languages","stargazers_url":"https://api.github.com/repos/steven-liu/datadogpy/stargazers","contributors_url":"https://api.github.com/repos/steven-liu/datadogpy/contributors","subscribers_url":"https://api.github.com/repos/steven-liu/datadogpy/subscribers","subscription_url":"https://api.github.com/repos/steven-liu/datadogpy/subscription","commits_url":"https://api.github.com/repos/steven-liu/datadogpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/steven-liu/datadogpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/steven-liu/datadogpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/steven-liu/datadogpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/steven-liu/datadogpy/contents/{+path}","compare_url":"https://api.github.com/repos/steven-liu/datadogpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steven-liu/datadogpy/merges","archive_url":"https://api.github.com/repos/steven-liu/datadogpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steven-liu/datadogpy/downloads","issues_url":"https://api.github.com/repos/steven-liu/datadogpy/issues{/number}","pulls_url":"https://api.github.com/repos/steven-liu/datadogpy/pulls{/number}","milestones_url":"https://api.github.com/repos/steven-liu/datadogpy/milestones{/number}","notifications_url":"https://api.github.com/repos/steven-liu/datadogpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steven-liu/datadogpy/labels{/name}","releases_url":"https://api.github.com/repos/steven-liu/datadogpy/releases{/id}","created_at":"2015-10-27T17:41:40Z","updated_at":"2015-10-27T17:41:41Z","pushed_at":"2015-10-28T00:04:11Z","git_url":"git://github.com/steven-liu/datadogpy.git","ssh_url":"git@github.com:steven-liu/datadogpy.git","clone_url":"https://github.com/steven-liu/datadogpy.git","svn_url":"https://github.com/steven-liu/datadogpy","homepage":"http://datadoghq.com/","size":1220,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DataDog:master","ref":"master","sha":"e89b19c0bc1e5ea2ec026e14b11d05b980062ffb","user":{"login":"DataDog","id":365230,"avatar_url":"https://avatars.githubusercontent.com/u/365230?v=3","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":29940836,"name":"datadogpy","full_name":"DataDog/datadogpy","owner":{"login":"DataDog","id":365230,"avatar_url":"https://avatars.githubusercontent.com/u/365230?v=3","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataDog/datadogpy","description":"The Datadog Python library","fork":false,"url":"https://api.github.com/repos/DataDog/datadogpy","forks_url":"https://api.github.com/repos/DataDog/datadogpy/forks","keys_url":"https://api.github.com/repos/DataDog/datadogpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/datadogpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/datadogpy/teams","hooks_url":"https://api.github.com/repos/DataDog/datadogpy/hooks","issue_events_url":"https://api.github.com/repos/DataDog/datadogpy/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/datadogpy/events","assignees_url":"https://api.github.com/repos/DataDog/datadogpy/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/datadogpy/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/datadogpy/tags","blobs_url":"https://api.github.com/repos/DataDog/datadogpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/datadogpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/datadogpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/datadogpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/datadogpy/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/datadogpy/languages","stargazers_url":"https://api.github.com/repos/DataDog/datadogpy/stargazers","contributors_url":"https://api.github.com/repos/DataDog/datadogpy/contributors","subscribers_url":"https://api.github.com/repos/DataDog/datadogpy/subscribers","subscription_url":"https://api.github.com/repos/DataDog/datadogpy/subscription","commits_url":"https://api.github.com/repos/DataDog/datadogpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/datadogpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/datadogpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/datadogpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/datadogpy/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/datadogpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/datadogpy/merges","archive_url":"https://api.github.com/repos/DataDog/datadogpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/datadogpy/downloads","issues_url":"https://api.github.com/repos/DataDog/datadogpy/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/datadogpy/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/datadogpy/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/datadogpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/datadogpy/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/datadogpy/releases{/id}","created_at":"2015-01-27T23:39:37Z","updated_at":"2015-10-23T15:19:26Z","pushed_at":"2015-10-28T00:12:26Z","git_url":"git://github.com/DataDog/datadogpy.git","ssh_url":"git@github.com:DataDog/datadogpy.git","clone_url":"https://github.com/DataDog/datadogpy.git","svn_url":"https://github.com/DataDog/datadogpy","homepage":"http://datadoghq.com/","size":1220,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":19,"forks":18,"open_issues":19,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/datadogpy/pulls/94"},"html":{"href":"https://github.com/DataDog/datadogpy/pull/94"},"issue":{"href":"https://api.github.com/repos/DataDog/datadogpy/issues/94"},"comments":{"href":"https://api.github.com/repos/DataDog/datadogpy/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/datadogpy/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/datadogpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/datadogpy/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/datadogpy/statuses/d68749cd09f9261b43cc1e9a4677a9468e8421b4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":1,"changed_files":2}}