OpenTelemetry is an initiative by the Cloud Native Computing Foundation to define a set of APIs and tools that can be used by libraries and applications to generate, collect, and export telemetry data that is vendor-agnostic.
Since late 2022, I’ve been working on a Perl implementation of this standard, and this is now in a usable state, and indeed being used in production environments.
This project has resulted in a number of components that are available on CPAN:
- OpenTelemetry, the API layer
- OpenTelemetry::SDK, the SDK layer
- OpenTelemetry::Exporter::OTLP, to export telemetry data using OTLP
- Dancer2::Plugin::OpenTelemetry, to instrument Dancer2 applications
- Mojolicious::Plugin::OpenTelemetry, to instrument Mojolicious applications
There are also other instrumentation libraries that have already been contributed by a growing community of users. Find them on CPAN!