Skip to content

Add possibility to decode multiple logs #41137

@constanca-m

Description

@constanca-m

Component(s)

extension/encoding/googlecloudlogentryencoding

Is your feature request related to a problem? Please describe.

Currently, the encoding expects only 1 JSON log at the time. If the data sent to the extension consists of multiple JSON entries, it will fail:

Unmarshal: there are bytes left after unmarshal [...]

Describe the solution you'd like

I would like if the encoding extension could decode multiple JSON logs. This would be important for use cases where the logs are coming from Google cloud storage, in which each line is 1 JSON log. The logs should be grouped correctly by the resource attributes.

Describe alternatives you've considered

N/A

Additional context

N/A

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions