Title: Setting context attributes for logging handler · Issue #110 · microsoft/ApplicationInsights-Python · GitHub
Open Graph Title: Setting context attributes for logging handler · Issue #110 · microsoft/ApplicationInsights-Python
X Title: Setting context attributes for logging handler · Issue #110 · microsoft/ApplicationInsights-Python
Description: With the latest release, it is possible to set up context.properties for logging handler but it still does not allow setting other context attributes (user, operation etc) passed as channel.context. This is because in the channel write c...
Open Graph Description: With the latest release, it is possible to set up context.properties for logging handler but it still does not allow setting other context attributes (user, operation etc) passed as channel.context...
X Description: With the latest release, it is possible to set up context.properties for logging handler but it still does not allow setting other context attributes (user, operation etc) passed as channel.context...
Opengraph URL: https://github.com/microsoft/ApplicationInsights-Python/issues/110
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting context attributes for logging handler","articleBody":"With the latest release, it is possible to set up context.properties for logging handler but it still does not allow setting other context attributes (user, operation etc) passed as channel.context.\r\nThis is because in the channel write code\r\n```\r\nlocal_context = context or self._context\r\nfor key, value in self._write_tags(local_context):\r\n tags[key] = value\r\n```\r\nThis ignores the attributes set in the channel itself. This should be\r\n```\r\nfor prop_context in [self._context, context]:\r\n for key, value in self._write_tags(prop_context):\r\n tags[key] = value\r\n```","author":{"url":"https://github.com/janhaviagrawal","@type":"Person","name":"janhaviagrawal"},"datePublished":"2018-07-03T14:47:37Z","url":"https://github.com/microsoft/ApplicationInsights-Python/issues/110"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c18c7177-7200-e559-925f-c2c08229d49b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8010:9393C:93D23:C4708:6B04AF76 |
| html-safe-nonce | 346fe367b42be046afda72aa1ceb534130b2e54abb47f1297f250522b54eaf47 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDEwOjkzOTNDOjkzRDIzOkM0NzA4OjZCMDRBRjc2IiwidmlzaXRvcl9pZCI6IjE1MDc2MTYzMTY3NzYwMzQxNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 063a8aac500e55277a70339500de7c7a395d1d5da72e1a8cc0222c6544f16522 |
| hovercard-subject-tag | issue:337932579 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/ApplicationInsights-Python/110/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0f560adce0093f4b7b7f0212ab6f1d61346f915b6943c7ea353d15d4dc3569c1/microsoft/ApplicationInsights-Python/issues/110 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f560adce0093f4b7b7f0212ab6f1d61346f915b6943c7ea353d15d4dc3569c1/microsoft/ApplicationInsights-Python/issues/110 |
| og:image:alt | With the latest release, it is possible to set up context.properties for logging handler but it still does not allow setting other context attributes (user, operation etc) passed as channel.context... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | janhaviagrawal |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/ApplicationInsights-Python git https://github.com/microsoft/ApplicationInsights-Python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 26877260 |
| octolytics-dimension-repository_nwo | microsoft/ApplicationInsights-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26877260 |
| octolytics-dimension-repository_network_root_nwo | microsoft/ApplicationInsights-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width