Versions in this module Expand all Collapse all v0 v0.10.0 Nov 25, 2026 v0.9.0 Nov 19, 2026 Changes in this version + type BrowserContext struct + BrowserName string + BrowserVersion string + DeviceFamily string + DeviceType BrowserContextDeviceType + JSON struct{ ... } + Language string + LanguagePrefix string + OsName string + OsVersion string + PageOrigin string + PagePath string + PixelRatio float64 + SchemaVersion float64 + ScreenHeightPx int64 + ScreenWidthPx int64 + Timezone string + TimezoneOffsetMinutes int64 + UserAgent string + ViewportHeightPx int64 + ViewportWidthPx int64 + func (r *BrowserContext) UnmarshalJSON(data []byte) error + func (r BrowserContext) RawJSON() string + func (r BrowserContext) ToParam() BrowserContextParam + type BrowserContextDeviceType string + const BrowserContextDeviceTypeDesktop + const BrowserContextDeviceTypeMobile + const BrowserContextDeviceTypeTablet + const BrowserContextDeviceTypeUnknown + type BrowserContextParam struct + BrowserName param.Opt[string] + BrowserVersion param.Opt[string] + DeviceFamily param.Opt[string] + DeviceType BrowserContextDeviceType + Language param.Opt[string] + LanguagePrefix param.Opt[string] + OsName param.Opt[string] + OsVersion param.Opt[string] + PageOrigin param.Opt[string] + PagePath param.Opt[string] + PixelRatio param.Opt[float64] + SchemaVersion float64 + ScreenHeightPx param.Opt[int64] + ScreenWidthPx param.Opt[int64] + Timezone param.Opt[string] + TimezoneOffsetMinutes param.Opt[int64] + UserAgent param.Opt[string] + ViewportHeightPx param.Opt[int64] + ViewportWidthPx param.Opt[int64] + func (r *BrowserContextParam) UnmarshalJSON(data []byte) error + func (r BrowserContextParam) MarshalJSON() (data []byte, err error) + type CustomDimensionUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *CustomDimensionUnion) UnmarshalJSON(data []byte) error + func (u CustomDimensionUnion) AsBool() (v bool) + func (u CustomDimensionUnion) AsFloat() (v float64) + func (u CustomDimensionUnion) AsString() (v string) + func (u CustomDimensionUnion) RawJSON() string + type CustomDimensionUnionParam struct + OfBool param.Opt[bool] + OfFloat param.Opt[float64] + OfString param.Opt[string] + func (u *CustomDimensionUnionParam) UnmarshalJSON(data []byte) error + func (u CustomDimensionUnionParam) MarshalJSON() ([]byte, error) + type CustomDimensions map[string]CustomDimensionUnion + type CustomDimensionsParam map[string]CustomDimensionUnionParam + type EventContext struct + BrowserName EventContextBrowserNameUnion + BrowserVersion EventContextBrowserVersionUnion + City string + Continent EventContextContinent + Country string + DeviceFamily EventContextDeviceFamilyUnion + DeviceType EventContextDeviceTypeUnion + JSON struct{ ... } + Language EventContextLanguageUnion + LanguagePrefix EventContextLanguagePrefixUnion + OsName EventContextOsNameUnion + OsVersion EventContextOsVersionUnion + PageOrigin string + PagePath string + PixelRatio EventContextPixelRatioUnion + SchemaVersion float64 + ScreenHeightPx EventContextScreenHeightPxUnion + ScreenWidthPx EventContextScreenWidthPxUnion + Timezone EventContextTimezoneUnion + TimezoneOffsetMinutes EventContextTimezoneOffsetMinutesUnion + UserAgent EventContextUserAgentUnion + ViewportHeightPx EventContextViewportHeightPxUnion + ViewportWidthPx EventContextViewportWidthPxUnion + func (r *EventContext) UnmarshalJSON(data []byte) error + func (r EventContext) RawJSON() string + type EventContextBrowserNameUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextBrowserNameUnion) UnmarshalJSON(data []byte) error + func (u EventContextBrowserNameUnion) AsBool() (v bool) + func (u EventContextBrowserNameUnion) AsFloat() (v float64) + func (u EventContextBrowserNameUnion) AsString() (v string) + func (u EventContextBrowserNameUnion) RawJSON() string + type EventContextBrowserVersionUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextBrowserVersionUnion) UnmarshalJSON(data []byte) error + func (u EventContextBrowserVersionUnion) AsBool() (v bool) + func (u EventContextBrowserVersionUnion) AsFloat() (v float64) + func (u EventContextBrowserVersionUnion) AsString() (v string) + func (u EventContextBrowserVersionUnion) RawJSON() string + type EventContextContinent string + const EventContextContinentAf + const EventContextContinentAn + const EventContextContinentAs + const EventContextContinentEu + const EventContextContinentNa + const EventContextContinentOc + const EventContextContinentSa + type EventContextDeviceFamilyUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextDeviceFamilyUnion) UnmarshalJSON(data []byte) error + func (u EventContextDeviceFamilyUnion) AsBool() (v bool) + func (u EventContextDeviceFamilyUnion) AsFloat() (v float64) + func (u EventContextDeviceFamilyUnion) AsString() (v string) + func (u EventContextDeviceFamilyUnion) RawJSON() string + type EventContextDeviceTypeUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextDeviceTypeUnion) UnmarshalJSON(data []byte) error + func (u EventContextDeviceTypeUnion) AsBool() (v bool) + func (u EventContextDeviceTypeUnion) AsFloat() (v float64) + func (u EventContextDeviceTypeUnion) AsString() (v string) + func (u EventContextDeviceTypeUnion) RawJSON() string + type EventContextLanguagePrefixUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextLanguagePrefixUnion) UnmarshalJSON(data []byte) error + func (u EventContextLanguagePrefixUnion) AsBool() (v bool) + func (u EventContextLanguagePrefixUnion) AsFloat() (v float64) + func (u EventContextLanguagePrefixUnion) AsString() (v string) + func (u EventContextLanguagePrefixUnion) RawJSON() string + type EventContextLanguageUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextLanguageUnion) UnmarshalJSON(data []byte) error + func (u EventContextLanguageUnion) AsBool() (v bool) + func (u EventContextLanguageUnion) AsFloat() (v float64) + func (u EventContextLanguageUnion) AsString() (v string) + func (u EventContextLanguageUnion) RawJSON() string + type EventContextOsNameUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextOsNameUnion) UnmarshalJSON(data []byte) error + func (u EventContextOsNameUnion) AsBool() (v bool) + func (u EventContextOsNameUnion) AsFloat() (v float64) + func (u EventContextOsNameUnion) AsString() (v string) + func (u EventContextOsNameUnion) RawJSON() string + type EventContextOsVersionUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextOsVersionUnion) UnmarshalJSON(data []byte) error + func (u EventContextOsVersionUnion) AsBool() (v bool) + func (u EventContextOsVersionUnion) AsFloat() (v float64) + func (u EventContextOsVersionUnion) AsString() (v string) + func (u EventContextOsVersionUnion) RawJSON() string + type EventContextPixelRatioUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextPixelRatioUnion) UnmarshalJSON(data []byte) error + func (u EventContextPixelRatioUnion) AsBool() (v bool) + func (u EventContextPixelRatioUnion) AsFloat() (v float64) + func (u EventContextPixelRatioUnion) AsString() (v string) + func (u EventContextPixelRatioUnion) RawJSON() string + type EventContextScreenHeightPxUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextScreenHeightPxUnion) UnmarshalJSON(data []byte) error + func (u EventContextScreenHeightPxUnion) AsBool() (v bool) + func (u EventContextScreenHeightPxUnion) AsFloat() (v float64) + func (u EventContextScreenHeightPxUnion) AsString() (v string) + func (u EventContextScreenHeightPxUnion) RawJSON() string + type EventContextScreenWidthPxUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextScreenWidthPxUnion) UnmarshalJSON(data []byte) error + func (u EventContextScreenWidthPxUnion) AsBool() (v bool) + func (u EventContextScreenWidthPxUnion) AsFloat() (v float64) + func (u EventContextScreenWidthPxUnion) AsString() (v string) + func (u EventContextScreenWidthPxUnion) RawJSON() string + type EventContextTimezoneOffsetMinutesUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextTimezoneOffsetMinutesUnion) UnmarshalJSON(data []byte) error + func (u EventContextTimezoneOffsetMinutesUnion) AsBool() (v bool) + func (u EventContextTimezoneOffsetMinutesUnion) AsFloat() (v float64) + func (u EventContextTimezoneOffsetMinutesUnion) AsString() (v string) + func (u EventContextTimezoneOffsetMinutesUnion) RawJSON() string + type EventContextTimezoneUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextTimezoneUnion) UnmarshalJSON(data []byte) error + func (u EventContextTimezoneUnion) AsBool() (v bool) + func (u EventContextTimezoneUnion) AsFloat() (v float64) + func (u EventContextTimezoneUnion) AsString() (v string) + func (u EventContextTimezoneUnion) RawJSON() string + type EventContextUserAgentUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextUserAgentUnion) UnmarshalJSON(data []byte) error + func (u EventContextUserAgentUnion) AsBool() (v bool) + func (u EventContextUserAgentUnion) AsFloat() (v float64) + func (u EventContextUserAgentUnion) AsString() (v string) + func (u EventContextUserAgentUnion) RawJSON() string + type EventContextViewportHeightPxUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextViewportHeightPxUnion) UnmarshalJSON(data []byte) error + func (u EventContextViewportHeightPxUnion) AsBool() (v bool) + func (u EventContextViewportHeightPxUnion) AsFloat() (v float64) + func (u EventContextViewportHeightPxUnion) AsString() (v string) + func (u EventContextViewportHeightPxUnion) RawJSON() string + type EventContextViewportWidthPxUnion struct + JSON struct{ ... } + OfBool bool + OfFloat float64 + OfString string + func (r *EventContextViewportWidthPxUnion) UnmarshalJSON(data []byte) error + func (u EventContextViewportWidthPxUnion) AsBool() (v bool) + func (u EventContextViewportWidthPxUnion) AsFloat() (v float64) + func (u EventContextViewportWidthPxUnion) AsString() (v string) + func (u EventContextViewportWidthPxUnion) RawJSON() string + type MetricCountRatio struct + JSON struct{ ... } + Ratio float64 + Views int64 + func (r *MetricCountRatio) UnmarshalJSON(data []byte) error + func (r MetricCountRatio) RawJSON() string + type OtlpAnyValue struct + ArrayValue OtlpAnyValueArrayValue + BoolValue bool + BytesValue string + DoubleValue float64 + ExtraFields map[string]any + IntValue OtlpAnyValueIntValueUnion + JSON struct{ ... } + KvlistValue OtlpAnyValueKvlistValue + StringValue string + func (r *OtlpAnyValue) UnmarshalJSON(data []byte) error + func (r OtlpAnyValue) RawJSON() string + type OtlpAnyValueArrayValue struct + JSON struct{ ... } + Values []OtlpAnyValue + func (r *OtlpAnyValueArrayValue) UnmarshalJSON(data []byte) error + func (r OtlpAnyValueArrayValue) RawJSON() string + type OtlpAnyValueIntValueUnion struct + JSON struct{ ... } + OfInt int64 + OfString string + func (r *OtlpAnyValueIntValueUnion) UnmarshalJSON(data []byte) error + func (u OtlpAnyValueIntValueUnion) AsInt() (v int64) + func (u OtlpAnyValueIntValueUnion) AsString() (v string) + func (u OtlpAnyValueIntValueUnion) RawJSON() string + type OtlpAnyValueKvlistValue struct + JSON struct{ ... } + Values []OtlpContextAttribute + func (r *OtlpAnyValueKvlistValue) UnmarshalJSON(data []byte) error + func (r OtlpAnyValueKvlistValue) RawJSON() string + type OtlpAttribute struct + JSON struct{ ... } + Key string + Value OtlpAttributeValueUnion + func (r *OtlpAttribute) UnmarshalJSON(data []byte) error + func (r OtlpAttribute) RawJSON() string + type OtlpAttributeValueObject struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject) RawJSON() string + type OtlpAttributeValueObject2 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject2) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject2) RawJSON() string + type OtlpAttributeValueObject3 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject3) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject3) RawJSON() string + type OtlpAttributeValueObject4 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject4) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject4) RawJSON() string + type OtlpAttributeValueObject5 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject5) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject5) RawJSON() string + type OtlpAttributeValueObject6 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject6) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject6) RawJSON() string + type OtlpAttributeValueObject7 struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueObject7) UnmarshalJSON(data []byte) error + func (r OtlpAttributeValueObject7) RawJSON() string + type OtlpAttributeValueUnion struct + ArrayValue any + BoolValue any + BytesValue any + DoubleValue any + IntValue any + JSON struct{ ... } + KvlistValue any + StringValue any + func (r *OtlpAttributeValueUnion) UnmarshalJSON(data []byte) error + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject() (v OtlpAttributeValueObject) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject2() (v OtlpAttributeValueObject2) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject3() (v OtlpAttributeValueObject3) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject4() (v OtlpAttributeValueObject4) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject5() (v OtlpAttributeValueObject5) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject6() (v OtlpAttributeValueObject6) + func (u OtlpAttributeValueUnion) AsOtlpAttributeValueObject7() (v OtlpAttributeValueObject7) + func (u OtlpAttributeValueUnion) RawJSON() string + type OtlpContextAttribute struct + JSON struct{ ... } + Key string + Value *OtlpAnyValue + func (r *OtlpContextAttribute) UnmarshalJSON(data []byte) error + func (r OtlpContextAttribute) RawJSON() string + type OtlpLogRecord struct + Attributes []OtlpAttribute + Body OtlpAnyValue + DroppedAttributesCount int64 + EventName string + Flags int64 + JSON struct{ ... } + ObservedTimeUnixNano string + SeverityNumber int64 + SeverityText string + SpanID string + TimeUnixNano string + TraceID string + func (r *OtlpLogRecord) UnmarshalJSON(data []byte) error + func (r OtlpLogRecord) RawJSON() string + type OtlpResource struct + Attributes []OtlpContextAttribute + DroppedAttributesCount int64 + JSON struct{ ... } + func (r *OtlpResource) UnmarshalJSON(data []byte) error + func (r OtlpResource) RawJSON() string + type OtlpScope struct + Attributes []OtlpContextAttribute + DroppedAttributesCount int64 + JSON struct{ ... } + Name string + Version string + func (r *OtlpScope) UnmarshalJSON(data []byte) error + func (r OtlpScope) RawJSON() string + type PlaybackRatePlayingTime struct + JSON struct{ ... } + PlayingTimeMs float64 + Rate float64 + func (r *PlaybackRatePlayingTime) UnmarshalJSON(data []byte) error + func (r PlaybackRatePlayingTime) RawJSON() string + func (r PlaybackRatePlayingTime) ToParam() PlaybackRatePlayingTimeParam + type PlaybackRatePlayingTimeParam struct + PlayingTimeMs float64 + Rate float64 + func (r *PlaybackRatePlayingTimeParam) UnmarshalJSON(data []byte) error + func (r PlaybackRatePlayingTimeParam) MarshalJSON() (data []byte, err error) + type PlaybackScore struct + JSON struct{ ... } + SampleViews int64 + Value float64 + func (r *PlaybackScore) UnmarshalJSON(data []byte) error + func (r PlaybackScore) RawJSON() string + type PlayedRange struct + EndSeconds float64 + JSON struct{ ... } + StartSeconds float64 + func (r *PlayedRange) UnmarshalJSON(data []byte) error + func (r PlayedRange) RawJSON() string + func (r PlayedRange) ToParam() PlayedRangeParam + type PlayedRangeParam struct + EndSeconds float64 + StartSeconds float64 + func (r *PlayedRangeParam) UnmarshalJSON(data []byte) error + func (r PlayedRangeParam) MarshalJSON() (data []byte, err error) + type ProgressReached struct + At100Percent MetricCountRatio + At25Percent MetricCountRatio + At50Percent MetricCountRatio + At75Percent MetricCountRatio + JSON struct{ ... } + SampleViews int64 + func (r *ProgressReached) UnmarshalJSON(data []byte) error + func (r ProgressReached) RawJSON() string + type RenditionPlayingTime struct + BitrateBps float64 + Codec string + FrameRate float64 + Height float64 + JSON struct{ ... } + PlayingTimeMs float64 + Width float64 + func (r *RenditionPlayingTime) UnmarshalJSON(data []byte) error + func (r RenditionPlayingTime) RawJSON() string + func (r RenditionPlayingTime) ToParam() RenditionPlayingTimeParam + type RenditionPlayingTimeParam struct + BitrateBps param.Opt[float64] + Codec param.Opt[string] + FrameRate param.Opt[float64] + Height param.Opt[float64] + PlayingTimeMs float64 + Width param.Opt[float64] + func (r *RenditionPlayingTimeParam) UnmarshalJSON(data []byte) error + func (r RenditionPlayingTimeParam) MarshalJSON() (data []byte, err error) + type StartupOutcomes struct + EndedBeforeStart MetricCountRatio + FailedBeforeStart MetricCountRatio + JSON struct{ ... } + SampleViews int64 + Started MetricCountRatio + Unknown MetricCountRatio + func (r *StartupOutcomes) UnmarshalJSON(data []byte) error + func (r StartupOutcomes) RawJSON() string + type StoredOtlpContext struct + JSON struct{ ... } + LogRecord OtlpLogRecord + ResourceLogs StoredOtlpContextResourceLogs + ScopeLogs StoredOtlpContextScopeLogs + func (r *StoredOtlpContext) UnmarshalJSON(data []byte) error + func (r StoredOtlpContext) RawJSON() string + type StoredOtlpContextResourceLogs struct + JSON struct{ ... } + Resource OtlpResource + SchemaURL string + func (r *StoredOtlpContextResourceLogs) UnmarshalJSON(data []byte) error + func (r StoredOtlpContextResourceLogs) RawJSON() string + type StoredOtlpContextScopeLogs struct + JSON struct{ ... } + SchemaURL string + Scope OtlpScope + func (r *StoredOtlpContextScopeLogs) UnmarshalJSON(data []byte) error + func (r StoredOtlpContextScopeLogs) RawJSON() string + type SubtitlePlayingTime struct + JSON struct{ ... } + Language string + PlayingTimeMs float64 + func (r *SubtitlePlayingTime) UnmarshalJSON(data []byte) error + func (r SubtitlePlayingTime) RawJSON() string + func (r SubtitlePlayingTime) ToParam() SubtitlePlayingTimeParam + type SubtitlePlayingTimeParam struct + Language param.Opt[string] + PlayingTimeMs float64 + func (r *SubtitlePlayingTimeParam) UnmarshalJSON(data []byte) error + func (r SubtitlePlayingTimeParam) MarshalJSON() (data []byte, err error) + type WatchTimeDistribution struct + Distribution WatchTimeDistributionDistribution + JSON struct{ ... } + Median float64 + P95 float64 + SampleViews int64 + func (r *WatchTimeDistribution) UnmarshalJSON(data []byte) error + func (r WatchTimeDistribution) RawJSON() string + type WatchTimeDistributionDistribution struct + AtLeast5Minutes int64 + From10To30Seconds int64 + From1To5Minutes int64 + From30To60Seconds int64 + JSON struct{ ... } + Under10Seconds int64 + func (r *WatchTimeDistributionDistribution) UnmarshalJSON(data []byte) error + func (r WatchTimeDistributionDistribution) RawJSON() string