5 Commits
Author SHA1 Message Date
zeekay 42ac61f78d merge: upstream/main (preserve Hanzo brand, 55 commits) 2026-06-02 09:56:19 -07:00
Manoel Aranda NetoandGitHub 920035f38a docs: document public APIs and hide testing-only flag definitions method (#208)
* docs: add public API Go doc comments

* refactor: hide client feature flag definitions API
2026-05-27 17:48:42 +02:00
Jonathan MielooandGitHub 1ba626e611 feat: support custom properties on exception events (#180) 2026-04-17 07:25:20 +00:00
zeekay b4e1366340 rebrand: export Insights types instead of PostHog
Rename Go package from posthog to insights across all 80+ files.
Consumers now import as `insights "github.com/hanzoai/insights-go"`
and use insights.Client, insights.Config, insights.Capture, etc.

- Rename posthog.go -> insights.go, posthog_test.go -> insights_test.go
- Update package declaration from posthog to insights in all .go files
- Update SDKName from posthog-go to insights-go
- Update DefaultEndpoint from app.posthog.com to insights.hanzo.ai
- Update all FieldError/ConfigError type strings
- Update User-Agent headers, log prefixes, comments, and docs
- Update JSON test fixtures to match new SDK name
- Update CLI, examples, extras, and sdk_compliance_adapter
- Fix pre-existing go vet warnings (non-constant format strings)
2026-03-13 19:54:58 -07:00
43ebe1ce78 feat: Introduce error tracking with slog integration (#120)
* docs: Describe the new error tracing functionality within the README.md

* fix: Added the new error capturing logic within the examples

* chore: Added the fixture for the enqueuing of exception test

* fix: Introduce Enqueue client to reduce the scope of what callees can do with the client and improve modularity / testability

* fix: Wire up the exception flow within the posthog client

* test: Wire up the exception logic in the existing posthog client test to adhere with the other structures there

* test: Introduce a simple test utils file where we can store (testfunctions that are used across several different tests

* test: Introduce a single location where we can store mocks / stubs to keep the mental burden of the main test files to a reasonable level and avoid cluttering those tests

* feat: Added the models used for the error tracking API endpoint, adhered to the style that was present in the other enqueue-able objects

* tests: Added tests for the newly introduced error tracking models to cover the validation logic

* chore: Add functional options to configure the slog logger

* feat: Added a slog wrapper which will mirror exceptions to the PostHog cloud

* test: Added tests for the slog logger wrapper

* feat: Added stack trace retrievers to enrich the exception in the UI

* test: Added a test to cover the newly added stack trace logic

* fix: Safeguarding for cases where Func is nil

* feat: Use raw frames instead of resolved frames now that the API supports it

---------

Co-authored-by: Akatchi <[email protected]>
Co-authored-by: Oliver Browne <[email protected]>
2025-09-04 11:24:30 +03:00