mirror of
https://github.com/hanzoai/o11y.git
synced 2026-10-15 12:58:33 +00:00
Full rebrand of the SigNoz observability platform: - Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y - Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights - Docker: signoz/* → ghcr.io/hanzoai/o11y* - ClickHouse → Hanzo Datastore (hanzoai/datastore) - Env vars: SIGNOZ_* → HANZO_* - DB tables: signoz_* → o11y_* - All branding, URLs, docs updated - 2172 files changed
28 lines
870 B
Go
28 lines
870 B
Go
package analytics
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hanzoai/o11y/pkg/factory"
|
|
"github.com/hanzoai/o11y/pkg/types/analyticstypes"
|
|
)
|
|
|
|
type Analytics interface {
|
|
factory.Service
|
|
|
|
// Sends analytics messages to an analytics backend.
|
|
Send(context.Context, ...analyticstypes.Message)
|
|
|
|
// Tracks an event on a group level. Input is group, event name, and attributes. The user is "stats_<org_id>".
|
|
TrackGroup(context.Context, string, string, map[string]any)
|
|
|
|
// Tracks an event on a user level and attributes it with the group. Input is group, user, event name, and attributes.
|
|
TrackUser(context.Context, string, string, string, map[string]any)
|
|
|
|
// Identifies a group. Input is group, traits.
|
|
IdentifyGroup(context.Context, string, map[string]any)
|
|
|
|
// Identifies a user. Input is group, user, traits.
|
|
IdentifyUser(context.Context, string, string, map[string]any)
|
|
}
|