Skip to content
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

Add Support for Array and Key-Value Attributes #366

Open
mrasu opened this issue Nov 20, 2024 · 0 comments
Open

Add Support for Array and Key-Value Attributes #366

mrasu opened this issue Nov 20, 2024 · 0 comments

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.

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

1 participant