open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.71k stars 2.14k forks source link

[pkg/ottl]: playground #33747

Open codefromthecrypt opened 4 days ago

codefromthecrypt commented 4 days ago

Component(s)

processor/transform

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

OTTL is a compelling way to provide adjustments without custom processors. As far as I know, someone can test ottl by running a collector with the transform processor.

Especially to those coming from different backgrounds, with different languages in mind, we may benefit by lowering the barrier to experimentation. Go playground comes to mind as a popular way to get started with the language, without any install

Describe the solution you'd like

I'd like to see something like Go playground for OTTL, which runs in the browser (perhaps by compiling certain ottl code to wasm). Ideally, everything is client side, and they can post their own signals (e.g. a trace) and practice transformation results. We could host the assets somewhere public as well.

Describe alternatives you've considered

Alternative could be to make an installable tool that eases the same, or just add a section to the README saying how you can most easily experiment on this.

Additional context

Go playground

github-actions[bot] commented 4 days ago

Pinging code owners:

TylerHelmuth commented 3 days ago

I like this idea. If someone is willing to take on the work I think it would be useful.

github-actions[bot] commented 3 days ago

Pinging code owners for pkg/ottl: @TylerHelmuth @kentquirk @bogdandrutu @evan-bradley. See Adding Labels via Comments if you do not have permissions to add labels yourself.