opentelemetry-ottl

Write and debug OTTL statements for OpenTelemetry Collector pipelines.

4|1|Updated May 6, 2026
One-click install
npx skills add https://github.com/coralogix/cx-skills --skill opentelemetry-ottl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opentelemetry-ottl
Source: https://github.com/coralogix/cx-skills/tree/main/skills/opentelemetry/opentelemetry-ottl
Command: npx skills add https://github.com/coralogix/cx-skills --skill opentelemetry-ottl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill resolves complex telemetry pipeline issues by providing expert guidance on writing, debugging, and optimizing OpenTelemetry Transformation Language (OTTL) statements for the OTel Collector.

Core Features & Use Cases

  • Pipeline Transformation: Safely modify, filter, or route logs, metrics, and traces without changing application code.
  • Cardinality Management: Reduce ingestion costs by dropping unnecessary attributes or normalizing high-cardinality fields like URLs and database queries.
  • PII Redaction: Automatically mask sensitive data using SHA256 hashing or pattern-based replacement to ensure compliance.
  • Use Case: If your collector pipeline stops processing data after a single error, use this Skill to implement proper error_mode settings and nil-safety guards to ensure pipeline resilience.

Quick Start

Use the opentelemetry-ottl skill to debug the transform processor configuration in my collector-config.yaml file.

Frequently Asked Questions about opentelemetry-ottl

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

FAQPage Schema
How do I filter and transform telemetry data in OpenTelemetry Collector pipelines?

You transform telemetry data in OpenTelemetry Collector pipelines by writing OpenTelemetry Transformation Language (OTTL) statements to safely modify, filter, or route logs, metrics, and traces without changing application code.

How do I redact PII and mask sensitive data in OpenTelemetry logs?

Redact PII in OpenTelemetry logs by applying OTTL patterns to automatically mask sensitive data using SHA256 hashing or pattern-based replacement, ensuring compliance directly within the collector pipeline.

How do I reduce metric cardinality in the OTel Collector to lower ingestion costs?

Reduce metric cardinality in the OTel Collector by using OTTL statements to drop unnecessary attributes or normalize high-cardinality fields like URLs and database queries, effectively lowering telemetry ingestion costs.

Why does my OTel Collector pipeline stop processing data when an OTTL transform fails?

OTel Collector pipelines stop processing data on transform failures because default settings lack defensive OTTL coding patterns. Implement proper error_mode settings and nil-safety guards to ensure pipeline resilience and prevent data loss.

Can I normalize semantic conventions for telemetry data without updating application code?

Yes, you can normalize semantic conventions for telemetry data without updating application code by applying OTTL transformations within the OpenTelemetry Collector to standardize logs, metrics, and traces.

What is the best way to debug transform processor configuration in a collector-config.yaml file?

The best way to debug transform processor configuration in a collector-config.yaml file is to use expert guidance for writing and optimizing OTTL statements, resolving complex pipeline issues with precise context selection.