Documentation ¶
Index ¶
- Constants
- Variables
- func AnalyticsMiddleware(next http.Handler) http.Handler
- func EventPropertiesFromContext(ctx context.Context) string
- func NewMetricMiddleware(meter metric.Meter) mux.MiddlewareFunc
- func NewStatusCodeCapturerWriter(w http.ResponseWriter) *responseWriter
- func SendEventWithProperties(name, category, clientID string, data map[string]string, ctx context.Context) error
- func TenantIDFromContext(ctx context.Context) string
- func TenantMiddleware(next http.Handler) http.Handler
Constants ¶
View Source
const EventPropertiesKey key = "x-event-properties"
View Source
const HeaderTenantID = "X-Tracetest-TenantID"
Variables ¶
View Source
var (
TenantIDKey key = "tenantID"
)
Functions ¶
func AnalyticsMiddleware ¶ added in v0.14.9
func EventPropertiesFromContext ¶ added in v0.14.9
func NewMetricMiddleware ¶
func NewMetricMiddleware(meter metric.Meter) mux.MiddlewareFunc
func NewStatusCodeCapturerWriter ¶
func NewStatusCodeCapturerWriter(w http.ResponseWriter) *responseWriter
func SendEventWithProperties ¶ added in v0.14.9
func TenantIDFromContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.