otel-ottl

Reference OTTL functions and path expressions for telemetry data transformation.

1|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/henrikrexed/observability-agent-skills --skill otel-ottl-henrikrexed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: otel-ottl
Source: https://github.com/henrikrexed/observability-agent-skills/tree/main/skills/otel-ottl
Command: npx skills add https://github.com/henrikrexed/observability-agent-skills --skill otel-ottl-henrikrexed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of managing telemetry data pipelines by providing a comprehensive reference for the OpenTelemetry Transformation Language (OTTL), allowing users to filter, enrich, and redact telemetry data without modifying application source code.

Core Features & Use Cases

  • Data Transformation & Enrichment: Normalize attribute names, extract structured data from logs, and enrich spans with infrastructure metadata.
  • Security & Compliance: Implement PII redaction, hash sensitive identifiers, and mask patterns in log messages to ensure data privacy.
  • Performance Optimization: Control attribute cardinality, implement intelligent sampling, and route telemetry data to appropriate backends to optimize pipeline efficiency.

Quick Start

Use the otel-ottl skill to generate a transformation processor configuration that redacts PII from span attributes and masks credit card numbers in log records.

Frequently Asked Questions about otel-ottl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I redact PII from OpenTelemetry telemetry data without modifying application code?

You can redact PII from OpenTelemetry telemetry data without modifying application code by using the OpenTelemetry Transformation Language (OTTL) to hash sensitive identifiers and mask patterns in log records within the Collector pipeline.

What is the OpenTelemetry Transformation Language used for in a Collector pipeline?

The OpenTelemetry Transformation Language (OTTL) is used in a Collector pipeline to filter, enrich, and manipulate telemetry data, enabling complex scenarios like attribute normalization, conditional routing, and intelligent sampling.

How do I normalize attribute names and enrich spans with infrastructure metadata?

You normalize attribute names and enrich spans with infrastructure metadata by applying standardized OTTL functions and path expressions within the OpenTelemetry Collector transformation processor configuration.

Can I control attribute cardinality and implement intelligent sampling using OTTL?

Yes, you can control attribute cardinality and implement intelligent sampling using OTTL to optimize pipeline efficiency and route telemetry data to appropriate backends within OpenTelemetry Collector environments.

What's the best way to conditionally route telemetry data to different backends?

The best way to conditionally route telemetry data to different backends is by implementing production-ready processing logic through standardized OTTL functions and path expressions in the OpenTelemetry Collector.

Do I need specific dependencies to implement OTTL transformations in OpenTelemetry?

No specific external dependencies are required to implement OTTL transformations; the skill provides a comprehensive reference and pattern library for configuring the transformation processor directly within standard OpenTelemetry Collector environments.