{"action":"created","comment":{"url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/comments/174221144","pull_request_review_id":103537491,"id":174221144,"diff_hunk":"@@ -274,6 +274,7 @@ Where `options` is an optional `Hash` that accepts the following parameters:\n | Key | Description | Default |\n | --- | --- | --- |\n | ``service_name`` | Service name used for `elasticsearch` instrumentation | elasticsearch |\n+| ``quantize`` | Hash containing options for quantization. May include `:keep` with an Array of keys to not quantize, or `:exclude` with Array of keys to exclude entirely. | {} |","path":"docs/GettingStarted.md","position":4,"original_position":4,"commit_id":"dd4ad28741cbf6ba9d305a78ede36be6aa99a4d5","original_commit_id":"dd4ad28741cbf6ba9d305a78ede36be6aa99a4d5","user":{"login":"delner","id":3237131,"avatar_url":"https://avatars1.githubusercontent.com/u/3237131?v=4","gravatar_id":"","url":"https://api.github.com/users/delner","html_url":"https://github.com/delner","followers_url":"https://api.github.com/users/delner/followers","following_url":"https://api.github.com/users/delner/following{/other_user}","gists_url":"https://api.github.com/users/delner/gists{/gist_id}","starred_url":"https://api.github.com/users/delner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delner/subscriptions","organizations_url":"https://api.github.com/users/delner/orgs","repos_url":"https://api.github.com/users/delner/repos","events_url":"https://api.github.com/users/delner/events{/privacy}","received_events_url":"https://api.github.com/users/delner/received_events","type":"User","site_admin":false},"body":"I think we could probably add some setting for show all... maybe if instead of a hash, you pass `true`? or a symbol `:all`?","created_at":"2018-03-13T17:35:50Z","updated_at":"2018-03-13T17:35:50Z","html_url":"https://github.com/DataDog/dd-trace-rb/pull/362#discussion_r174221144","pull_request_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/comments/174221144"},"html":{"href":"https://github.com/DataDog/dd-trace-rb/pull/362#discussion_r174221144"},"pull_request":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362"}},"in_reply_to_id":174215345},"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362","id":173180270,"html_url":"https://github.com/DataDog/dd-trace-rb/pull/362","diff_url":"https://github.com/DataDog/dd-trace-rb/pull/362.diff","patch_url":"https://github.com/DataDog/dd-trace-rb/pull/362.patch","issue_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/362","number":362,"state":"open","locked":false,"title":"ElasticSearch body quantization","user":{"login":"delner","id":3237131,"avatar_url":"https://avatars1.githubusercontent.com/u/3237131?v=4","gravatar_id":"","url":"https://api.github.com/users/delner","html_url":"https://github.com/delner","followers_url":"https://api.github.com/users/delner/followers","following_url":"https://api.github.com/users/delner/following{/other_user}","gists_url":"https://api.github.com/users/delner/gists{/gist_id}","starred_url":"https://api.github.com/users/delner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delner/subscriptions","organizations_url":"https://api.github.com/users/delner/orgs","repos_url":"https://api.github.com/users/delner/repos","events_url":"https://api.github.com/users/delner/events{/privacy}","received_events_url":"https://api.github.com/users/delner/received_events","type":"User","site_admin":false},"body":"Adds enhanced quantization for ElasticSearch body tags. This behavior is activated by default, but can be configured with:\r\n\r\n```ruby\r\nDatadog.configure do |c|\r\n  c.use :elasticsearch, quantize: { keep: [:category_id], exclude: [:edit_date] }\r\nend\r\n```\r\n\r\nWhich would change:\r\n\r\n```\r\n{\"query\":{\"match\":{\"title\":\"?\",\"category_id\":\"?\",\"edit_date\":\"?\"}}}\r\n```\r\n\r\nInto:\r\n\r\n```\r\n{\"query\":{\"match\":{\"title\":\"?\",\"category_id\":\"285\"}}}\r\n```","created_at":"2018-03-06T14:51:15Z","updated_at":"2018-03-13T17:35:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db7d69f202352569f380502fc8eccbc0ab6ffd49","assignee":{"login":"delner","id":3237131,"avatar_url":"https://avatars1.githubusercontent.com/u/3237131?v=4","gravatar_id":"","url":"https://api.github.com/users/delner","html_url":"https://github.com/delner","followers_url":"https://api.github.com/users/delner/followers","following_url":"https://api.github.com/users/delner/following{/other_user}","gists_url":"https://api.github.com/users/delner/gists{/gist_id}","starred_url":"https://api.github.com/users/delner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delner/subscriptions","organizations_url":"https://api.github.com/users/delner/orgs","repos_url":"https://api.github.com/users/delner/repos","events_url":"https://api.github.com/users/delner/events{/privacy}","received_events_url":"https://api.github.com/users/delner/received_events","type":"User","site_admin":false},"assignees":[{"login":"delner","id":3237131,"avatar_url":"https://avatars1.githubusercontent.com/u/3237131?v=4","gravatar_id":"","url":"https://api.github.com/users/delner","html_url":"https://github.com/delner","followers_url":"https://api.github.com/users/delner/followers","following_url":"https://api.github.com/users/delner/following{/other_user}","gists_url":"https://api.github.com/users/delner/gists{/gist_id}","starred_url":"https://api.github.com/users/delner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delner/subscriptions","organizations_url":"https://api.github.com/users/delner/orgs","repos_url":"https://api.github.com/users/delner/repos","events_url":"https://api.github.com/users/delner/events{/privacy}","received_events_url":"https://api.github.com/users/delner/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":827835713,"url":"https://api.github.com/repos/DataDog/dd-trace-rb/labels/feature","name":"feature","color":"7851e2","default":false},{"id":454754195,"url":"https://api.github.com/repos/DataDog/dd-trace-rb/labels/integrations","name":"integrations","color":"c2e0c6","default":false}],"milestone":{"url":"https://api.github.com/repos/DataDog/dd-trace-rb/milestones/19","html_url":"https://github.com/DataDog/dd-trace-rb/milestone/19","labels_url":"https://api.github.com/repos/DataDog/dd-trace-rb/milestones/19/labels","id":3040674,"number":19,"title":"0.12.0","description":"","creator":{"login":"delner","id":3237131,"avatar_url":"https://avatars1.githubusercontent.com/u/3237131?v=4","gravatar_id":"","url":"https://api.github.com/users/delner","html_url":"https://github.com/delner","followers_url":"https://api.github.com/users/delner/followers","following_url":"https://api.github.com/users/delner/following{/other_user}","gists_url":"https://api.github.com/users/delner/gists{/gist_id}","starred_url":"https://api.github.com/users/delner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delner/subscriptions","organizations_url":"https://api.github.com/users/delner/orgs","repos_url":"https://api.github.com/users/delner/repos","events_url":"https://api.github.com/users/delner/events{/privacy}","received_events_url":"https://api.github.com/users/delner/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":7,"state":"open","created_at":"2018-01-16T22:59:39Z","updated_at":"2018-03-09T14:34:53Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362/commits","review_comments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362/comments","review_comment_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/362/comments","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-rb/statuses/dd4ad28741cbf6ba9d305a78ede36be6aa99a4d5","head":{"label":"DataDog:feature/elasticsearch_body_quantization","ref":"feature/elasticsearch_body_quantization","sha":"dd4ad28741cbf6ba9d305a78ede36be6aa99a4d5","user":{"login":"DataDog","id":365230,"avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","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":66497320,"name":"dd-trace-rb","full_name":"DataDog/dd-trace-rb","owner":{"login":"DataDog","id":365230,"avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","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/dd-trace-rb","description":"Datadog Tracing Ruby Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-trace-rb","forks_url":"https://api.github.com/repos/DataDog/dd-trace-rb/forks","keys_url":"https://api.github.com/repos/DataDog/dd-trace-rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-trace-rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-trace-rb/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-trace-rb/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-trace-rb/events","assignees_url":"https://api.github.com/repos/DataDog/dd-trace-rb/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-trace-rb/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-trace-rb/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-rb/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-trace-rb/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-trace-rb/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-trace-rb/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-trace-rb/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-trace-rb/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-trace-rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-trace-rb/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-trace-rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-trace-rb/merges","archive_url":"https://api.github.com/repos/DataDog/dd-trace-rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-trace-rb/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-trace-rb/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-trace-rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-trace-rb/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-trace-rb/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/deployments","created_at":"2016-08-24T20:30:56Z","updated_at":"2018-03-12T22:34:49Z","pushed_at":"2018-03-13T14:27:19Z","git_url":"git://github.com/DataDog/dd-trace-rb.git","ssh_url":"git@github.com:DataDog/dd-trace-rb.git","clone_url":"https://github.com/DataDog/dd-trace-rb.git","svn_url":"https://github.com/DataDog/dd-trace-rb","homepage":"https://docs.datadoghq.com/tracing/","size":1563,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":56,"open_issues":31,"watchers":25,"default_branch":"master"}},"base":{"label":"DataDog:0.12-dev","ref":"0.12-dev","sha":"6ccb56f14f1e00ce739aeb17ca44e354837e3cf0","user":{"login":"DataDog","id":365230,"avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","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":66497320,"name":"dd-trace-rb","full_name":"DataDog/dd-trace-rb","owner":{"login":"DataDog","id":365230,"avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","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/dd-trace-rb","description":"Datadog Tracing Ruby Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-trace-rb","forks_url":"https://api.github.com/repos/DataDog/dd-trace-rb/forks","keys_url":"https://api.github.com/repos/DataDog/dd-trace-rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-trace-rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-trace-rb/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-trace-rb/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-trace-rb/events","assignees_url":"https://api.github.com/repos/DataDog/dd-trace-rb/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-trace-rb/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-trace-rb/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-rb/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-trace-rb/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-trace-rb/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-trace-rb/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-trace-rb/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-trace-rb/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-trace-rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-trace-rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-trace-rb/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-trace-rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-trace-rb/merges","archive_url":"https://api.github.com/repos/DataDog/dd-trace-rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-trace-rb/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-trace-rb/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-trace-rb/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-trace-rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-trace-rb/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-trace-rb/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-trace-rb/deployments","created_at":"2016-08-24T20:30:56Z","updated_at":"2018-03-12T22:34:49Z","pushed_at":"2018-03-13T14:27:19Z","git_url":"git://github.com/DataDog/dd-trace-rb.git","ssh_url":"git@github.com:DataDog/dd-trace-rb.git","clone_url":"https://github.com/DataDog/dd-trace-rb.git","svn_url":"https://github.com/DataDog/dd-trace-rb","homepage":"https://docs.datadoghq.com/tracing/","size":1563,"stargazers_count":25,"watchers_count":25,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":31,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":56,"open_issues":31,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362"},"html":{"href":"https://github.com/DataDog/dd-trace-rb/pull/362"},"issue":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/362"},"comments":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/dd-trace-rb/statuses/dd4ad28741cbf6ba9d305a78ede36be6aa99a4d5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"delner"}}