otel-cli icon indicating copy to clipboard operation
otel-cli copied to clipboard

otel metrics support

Open tobert opened this issue 4 years ago • 2 comments

One of these days we should take a swing at adding otel metrics to otel-cli. I don't know if it'll work out but it feels worth exploring.

e.g. (having not dug into metrics at all)

otel-cli counter foo.bar 1
otel-cli histo ???????

Should there be another layer of subcommands? e.g. otel-cli trace span -n "my span"? It feels heavy to me and I'm curious what others think.

tobert avatar Aug 18 '21 22:08 tobert

Welllll we should probably wait until support for metrics gets a little better - I think the spec is just now about to be finalized (and support is pretty non-existent across the ecosystem).

But - I think yes that would be intriguing to explore, and could interesting!

Should there be another layer of subcommands? e.g. otel-cli trace span -n "my span"? It feels heavy to me and I'm curious what others think.

I agree, that feels heavy. That's not to say that we can't explore different schemes for the commands, but I do tend to dislike structures that are more than one level deep.

ahayworth avatar Aug 19 '21 13:08 ahayworth

Has there been any update on the metrics spec front? This would be a great feature to have. Currently, we use curl to send metrics out of our build pipeline to InfluxDB via their simple line protocol. We're looking at adding OpenTelemetry to the CI/CD system as a whole, and having the ability to push metrics out via a CLI would greatly simplify migration. Bonus points for tagging the metrics to the related span that they occurred in.

derekmurawsky avatar Apr 19 '22 14:04 derekmurawsky