Skip to content

[pkg/ottl] Decode function for decoding []byte based on a configured text encoding #32493

Closed
@jsirianni

Description

@jsirianni

Component(s)

pkg/ottl

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

Log receivers can output raw bytes (See Azure Event Hub). OTTL does not have the ability to parse these bytes into something human readable.

Describe the solution you'd like

A functionality similar to pkg/stanza/decode, which can take string or []byte input, and output it in a human readable format using a configured encoding (ascii, utf-8, etc).

Describe alternatives you've considered

Additional context

No response

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