8000 Add Support for Array and Key-Value Attributes · Issue #366 · equinix-labs/otel-cli · GitHub
[go: up one dir, main page]

Skip to content

Add Support for Array and Key-Value Attributes #366

Open

Description

@mrasu

Hi,

Currently, there seems to be no way to add array or key-value attributes using the --attrs argument.
For example, the attribute container.image.tags has a type of string[] (documentation).

It would be helpful to enable creating spans with array attributes such as otel-cli span --attrs "container.image.tags=[aaa,bbb]"

Alternatively, introducing a new argument such as --attrs-json to allow specifying attributes in JSON would also be a viable.

Activity

  1. tobert commented on Apr 21, 2025

    @tobert
    Contributor

    I like the --attrs-json idea! I'm starting to pick up maintenance on a fork at https://github.com/tobert/otel-cli could you please submit the request there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      0