Skip to content

feat(insights): automatic insights instrumentation #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

rabidpraxis
Copy link
Contributor

This is currently a WIP PR to keep track of the work being merged into this preview branch.

rabidpraxis and others added 9 commits May 19, 2025 09:35
* Instrumenting ASGI

* Add celery events & reworked tests

* Django request & db events

* Flask request & db instrumentation

* ASGI instrumentation

* Syntax update

* Updated README

* Change "component" to "app" for insights event

I followed the naming from our notice data. The more common name
for this field is "app", so renaming to that.

* Remove url & add blueprint to flask events

* Removing args from celery event

Until we have filtering and before_event functionality.

* Add duration to celery events

* PR fixes
Also fix config bleeding issue with asgi test
* feat(insights): add config for insights contrib

This also reworks our config class to use a root dataclass with nested
dataclasses for each `insights_config` option set.

* Refactor the missing key error handling

* Add ASGI config

* README fixes

* Add comments back and fixed readme, remove cruft

* Log errors

Also a nice little refactor on the Configuration internals.

* Wrap insights event code in a try

* How about some test results

* Fix 3.8 object is not subscriptable error

* Don't reference private Context

* Check code-quality as well
* refactor threadlocals

This now uses the ContextVar and a helper ContextStore class.

* Basic event_context

* More tests

* Fix other Notice usage
…t context to celery tasks (#216)

* feat(insights) add request_id

* Add request_id to notice

* Fix test

* Fix formatted string

* Update honeybadger/contrib/celery.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add logger to celelry

* Sanitize request_id from inputs

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant