8000 Add Support for Array and Key-Value Attributes · Issue #366 · equinix-labs/otel-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add Support for Array and Key-Value Attributes #366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrasu opened this issue Nov 20, 2024 · 1 comment
Open

Add Support for Array and Key-Value Attributes #366

mrasu opened this issue Nov 20, 2024 · 1 comment

Comments

@mrasu
Copy link
mrasu commented Nov 20, 2024

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.

@tobert
Copy link
Collaborator
tobert commented Apr 21, 2025

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0