📄️ Overview
Rotel includes a Python SDK that allows you to write custom OpenTelemetry processors in Python. The SDK makes it easy to filter and transform OpenTelemetry data
📄️ Getting Started
Install or build a Python processor enabled release
📄️ Install rotel-sdk
The rotel-sdk python package provides type hints for the processor SDK and is intended for use in your IDE of choice. The rotel-sdk should integrate seamlessly with pyright and other Python language servers for type checking and auto-completion.
📄️ Writing a span processor
Span processors must implement a function called processspans in order for rotel to execute your processor. Each time processspans is called your processor will be handed an instance of the ResourceSpan class for you to manipulate as you like.
📄️ Writing a logs processor
For logs let's try something a little different. The following is an example OTel log processor called
📄️ Writing a metrics processor
Finally, let's build a metrics processor. The telemetrygen tool doesn't give you a lot of options for customizing the
📄️ Prebuilt Processors
The Rotel Github repository includes a number of prebuilt processors that you can use right out of the box. To the greatest extent possible rotel matches the configuration and behavior of existing processors from opentelemetry-collector-contrib. Prebuilt processors are found in the processors folder under the rotelpythonprocessorsdk directory.