Skip to content

Add "platform" to "context" schema, *IF* there's consensus #317

@ruck94301

Description

@ruck94301

Background
In LabGym 2.9.6, the LabGym start sends a msg to a central logging
receiver (implemented on Google Cloud Platform).
(that is, unless disabled by config or by command-line arg)

The 2.9.6 uses a data schema that we call 'context 2025-08-10',

which results in received json files looking like this:

    {
      "received": "2025-09-02T144227-0400",
      "data": {
        "schema": "context 2025-08-10",
        "python_version": "3.10.11",
        "version": "2.9.6"
        }
    }

and lets us report like

  17 2025-09    User started LabGym 2.9.3 with Python 3.10.18
   5 2025-09    User started LabGym 2.9.5 with Python 3.10.11
  11 2025-09    User started LabGym 2.9.6 with Python 3.10.0
 358 2025-09    User started LabGym 2.9.6 with Python 3.10.11
   7 2025-09    User started LabGym 2.9.6 with Python 3.10.12
   1 2025-09    User started LabGym 2.9.6 with Python 3.10.14
  16 2025-09    User started LabGym 2.9.6 with Python 3.10.16
  73 2025-09    User started LabGym 2.9.6 with Python 3.10.18
   1 2025-09    User started LabGym 2.9.6 with Python 3.10.4
   6 2025-09    User started LabGym 2.9.6 with Python 3.10.8
   5 2025-09    User started LabGym 2.9.6 with Python 3.10.9
  20 2025-09    User started LabGym 2.9.6 with Python 3.9.13
  10 2025-09    User started LabGym 2.9.6 with Python 3.9.23

Before August symposium, there was a concern about keeping the context
schema clean of "identifying" info, and so "platform" was removed.
Symposium was fast approaching, so it made sense to remove, instead of
prolong with debate.

But I still think "platform" is useful, and not identifying, so I'd like
to re-add it (and update the schema name since schema is changed).
Then we'll have info re os and hardware.
Thoughts?

On my mac, platform.platform() returns
'macOS-12.7.6-x86_64-i386-64bit'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions