Source: https://telemetrydrops.com/ottl-cheatsheet/

Download your free OpenTelemetry Transformation Language (OTTL) cheatsheet. A compact 3-page reference covering core syntax, essential functions, common patterns, regex, troubleshooting, and best practices.

![Telemetry Drops Logo](https://telemetrydrops.com/logo.svg)

# Free OTTL Quick Reference

Master OpenTelemetry Transformation Language with our compact 3-page reference guide. Get instant access to core syntax, essential functions, common patterns, regex patterns, troubleshooting tips, and performance best practices.

[Download Free Cheatsheet](https://telemetrydrops.com/ottl-cheatsheet/#download)

### OTTL Quick Reference

OpenTelemetry Transformation Language

set(span.status.code, STATUS\_CODE\_ERROR)

delete\_key(span.attributes, "key")

replace\_all\_matches(log.body, "\\\\d", "\*")

IsMatch(target, "pattern")

• 8 Data Types • 15+ Functions  
• Regex Patterns • Performance Tips  
• 4 Contexts • Troubleshooting Guide

## Why You Need This Cheatsheet

Everything you need for day-to-day OTTL work in a compact 3-page reference

### Quick Daily Reference

Everything you need for day-to-day OTTL work in one compact guide. Core syntax, 15+ functions, and 4 telemetry contexts at your fingertips.

### Ready-to-Use Patterns

Real-world examples including PII redaction, HTTP normalization, and metric conversion patterns you can copy and adapt immediately.

### Troubleshooting & Best Practices

Complete troubleshooting checklist, performance optimization tips, and safety guidelines to avoid common pitfalls and expensive mistakes.

## What's Inside the Cheatsheet

A compact 3-page reference covering everything you need for daily OTTL work

### Core Syntax & Data Types

Complete syntax reference with 8 data types, operators, precedence rules, and statement structure.

### 15+ Essential Functions

Editors (set, delete\_key, replace\_match, limit) and Converters (IsMatch, ParseJSON, Concat, String) with syntax examples.

### 4 Telemetry Contexts

Complete path shortcuts for Resource, Span, Log, and Metric/DataPoint contexts with all available fields.

### Common Patterns & Snippets

Real-world examples: PII redaction, HTTP normalization, and metric unit conversion with ready-to-use code.

### Regex Patterns

Common regex patterns for email, IP address, UUID, and URL matching with double backslash syntax for OTTL strings.

### Troubleshooting & Performance

Complete debugging checklist, performance optimization tips, and safety guidelines with DOs and DON'Ts.

## Get Your Free OTTL Cheatsheet

Download your comprehensive reference guide and start working more efficiently with OTTL

### Download Your Free Cheatsheet

Master OpenTelemetry Transformation Language with our compact 3-page reference guide covering core syntax, functions, patterns, regex, and best practices

Full Name

Email Address

Get My Free Cheatsheet

By downloading, you agree to receive emails about OpenTelemetry resources and training.  
You can unsubscribe at any time. We respect your privacy.

✓ Instant download after submission  
✓ No spam, just valuable content  
✓ Unsubscribe anytime
