Formatting Issues with `ConsoleSpanExporter` Log Annotations

I'm noticing that the ConsoleSpanExporter does a pretty poor job of formatting log annotations. Are there known limitations as to what will be formatted well?

For example I have something like this:
Effect.logDebug("foo").pipe(
  Effect.annotateLogs({
    user: {
      id: 1,
      createdAt: '2024-07-10T21:15:30.063Z',
      updatedAt: '2024-07-10T21:15:30.063Z',
      email: 'foo@bar.com',
      name: null
    },
  })
);

and it results in output like this:

user: '{\n' +
          'user"id": 1,\n' +
          'user"createdAt": "2024-07-10T21:15:30.063Z",\n' +
          'user"updatedAt": "2024-09-04T17:46:25.493Z",\n' +
          'user"email": "blahblah@blah.com",\n' +
          'user"name": null\n' +
          '}',

Notice that it's prepending user a bunch and the indentation is way off
Was this page helpful?