{"componentChunkName":"component---src-templates-platform-tsx","path":"/platforms/python/guides/tryton/hints/","result":{"data":{"file":{"id":"82381fa8-d8f6-59cc-95ba-a5068c7c0810","relativePath":"python/common/hints.mdx","sourceInstanceName":"platforms","childMarkdownRemark":null,"childMdx":{"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Hints\",\n  \"sidebar_order\": 900\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"The Python SDK provides some common \", mdx(\"a\", _extends({\n    parentName: \"p\"\n  }, {\n    \"href\": \"../configuration/filtering/#event-hints\"\n  }), \"hints\"), \" for breadcrumbs and events. These hints are passed as the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"hint\"), \" parameter to \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"before_send\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"before_breadcrumb\"), \" (as well as event processors) as a dictionary. More than one hint can be supplied, but this is rare.\"), mdx(\"p\", null, mdx(\"dl\", {\n    parentName: \"p\"\n  }, mdx(\"dt\", {\n    parentName: \"dl\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"dt\"\n  }, \"exc_info\")), mdx(\"dd\", {\n    parentName: \"dl\"\n  }, \"If you set this hint, then it's an exc info tuple in the form \", mdx(\"inlineCode\", {\n    parentName: \"dd\"\n  }, \"(exc_type, exc_value, tb)\"), \". This can be used to extract additional information from the original error object.\"))), mdx(\"p\", null, mdx(\"dl\", {\n    parentName: \"p\"\n  }, mdx(\"dt\", {\n    parentName: \"dl\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"dt\"\n  }, \"log_record\")), mdx(\"dd\", {\n    parentName: \"dl\"\n  }, \"This hint is passed to breadcrumbs and contains the log record that created it. It can be used to extract additional information from the original \", mdx(\"inlineCode\", {\n    parentName: \"dd\"\n  }, \"logging\"), \" log record that is not extracted by default. Likewise, it can be useful to discard uninteresting breadcrumbs.\"))), mdx(\"p\", null, mdx(\"dl\", {\n    parentName: \"p\"\n  }, mdx(\"dt\", {\n    parentName: \"dl\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"dt\"\n  }, \"httplib_request\")), mdx(\"dd\", {\n    parentName: \"dl\"\n  }, \"An \", mdx(\"inlineCode\", {\n    parentName: \"dd\"\n  }, \"httplib\"), \" request object for breadcrumbs created from HTTP requests.\"))));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{},"internal":{"type":"Mdx"}}}},"pageContext":{"excerpt":"The Python SDK provides some common  hints  for breadcrumbs and events. These hints are passed as the  hint  parameter to  before_send  and  before_breadcrumb  (as well as event processors) as a dictionary. More than one hint can be supplied, but this is rare. exc_info : If you set this hint, then it's an exc info tuple in the form  (exc_type, exc_value, tb) . This can be used to extract additional information from the original error object. log_record : This hint is passed to breadcrumbs and contains the log record that created it. It can be used to extract additional information from the original  logging  log record that is not extracted by default. Likewise, it can be useful to discard uninteresting breadcrumbs. httplib_request : An  httplib  request object for breadcrumbs created from HTTP requests.","title":"Hints","sidebar_order":900,"platform":{"name":"python","title":"Python"},"guide":{"name":"tryton","title":"Tryton"},"noindex":true,"notoc":true,"redirect_from":[],"id":"82381fa8-d8f6-59cc-95ba-a5068c7c0810"}},"staticQueryHashes":["1218203755","1222113826","1222113826","1766336459","2158593473","2404336828","2472290386","2764967025","3818502851","4015007367","4192517163","4264099332","518019976"]}