Skip to content

[TRI-2755] v3 run log outputs with empty array inside objects aren't shown #1174

Open
@matt-aitken

Description

@matt-aitken

This task:

export const myTask = task({
  id: 'some-id',
  run: async () => {
    return {
      hooks: [],
    };
});

Has the correct output:

{
  "hooks": [],
}

But in the log data/on the run page is shows just an empty object. This is a bug with the flattenAttributes/unflattenAttributes code we use with our OpenTelemetry pipeline.

TRI-2755

Metadata

Metadata

Assignees

No one assigned

    Labels

    v3Only impacts version 3 projects

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions