Skip to content

feat(schema): wire proto-generated types into packageLogs.ts #142

Description

@brucearctor

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: typeeventType, scrnResscreenResolution
  • buildAttrs() stops JSON.parse()-ing attribute values (always strings)
  • logType values may change (rawLOG_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

Metadata

Metadata

Assignees

No one assigned

    Labels

    UseralePull requests that update Userale codeenhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions