Summary
Replace the untyped Logging.Log = JSONObject with proto-generated types (RawLog, IntervalLog, CustomLog) from log_pb.ts in packageLogs.ts.
Breaking Changes
This changes the default JSON output format:
- Fields restructured to match proto schema (nested
metadata object)
- Field renames:
type → eventType, scrnRes → screenResolution
buildAttrs() stops JSON.parse()-ing attribute values (always strings)
logType values may change (raw → LOG_TYPE_RAW)
Migration Path
HttpLegacyJsonExporter preserves v2.x JSON format
- Users can opt into legacy format via
exporterType: 'http-json-legacy'
Depends On
Related
- Resolves the TODO on line 77 of types.d.ts:
// TODO: Switch to protobuf for managing log types
Summary
Replace the untyped
Logging.Log = JSONObjectwith proto-generated types (RawLog,IntervalLog,CustomLog) fromlog_pb.tsinpackageLogs.ts.Breaking Changes
This changes the default JSON output format:
metadataobject)type→eventType,scrnRes→screenResolutionbuildAttrs()stopsJSON.parse()-ing attribute values (always strings)logTypevalues may change (raw→LOG_TYPE_RAW)Migration Path
HttpLegacyJsonExporterpreserves v2.x JSON formatexporterType: 'http-json-legacy'Depends On
Related
// TODO: Switch to protobuf for managing log types