otel-ottl

Solid

OpenTelemetry Transformation Language (OTTL) expert. Use when writing or debugging OTTL expressions for any OpenTelemetry Collector component that supports OTTL (processors, connectors, receivers, exporters). Triggers on tasks involving telemetry transformation, filtering, attribute manipulation, data redaction, sampling policies, routing, or Collector configuration. Covers syntax, contexts, functions, error handling, and performance.

Code & Development 62 stars 6 forks Updated 2 days ago Apache-2.0

Install

View on GitHub

Quality Score: 88/100

Stars 20%
60
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OpenTelemetry Transformation Language (OTTL) ## Components that use OTTL OTTL is not limited to the transform and filter processors. Processors (transform, filter, attributes, span, tailsampling, cumulativetodelta, logdedup, lookup), connectors (routing, count, sum, signaltometrics), and the hostmetrics receiver all accept OTTL expressions. See [components](./rules/components.md) for the full list with use cases. ## OTTL syntax ### Path expressions Navigate telemetry data using dot notation: ``` span.name span.attributes["http.method"] resource.attributes["service.name"] ``` **Contexts** (first path segment): `resource`, `scope`, `span`, `spanevent`, `metric`, `datapoint`, `log`. ### Enumerations Use int64 constants for enumeration fields: ``` span.status.code == STATUS_CODE_ERROR span.kind == SPAN_KIND_SERVER ``` ### Operators Assignment: `=` — Comparison: `==`, `!=`, `>`, `<`, `>=`, `<=` — Logical: `and`, `or`, `not` ### Functions **Converters** (uppercase, return values): ``` ToUpperCase(span.attributes["http.request.method"]) Substring(log.body.string, 0, 1024) Concat(["prefix", span.attributes["request.id"]], "-") IsMatch(metric.name, "^k8s\\..*$") ``` **Editors** (lowercase, modify data in-place): ``` set(span.attributes["region"], "us-east-1") delete_key(resource.attributes, "internal.key") limit(log.attributes, 10, []) ``` See [function-reference](./rules/function-reference.md) for the full list of editors and converters. ### Conditional statement...

Details

Author
dash0hq
Repository
dash0hq/agent-skills
Created
3 months ago
Last Updated
2 days ago
Language
N/A
License
Apache-2.0

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

otel-expert

Use this when working with OpenTelemetry, telemetry, observability, traces, spans, metrics, logs, OTLP, semantic conventions, or instrumentation. Triggers on questions like "what attributes should I use", "how do I configure the collector", "what's the semconv for X".

335 Updated today
aiskillstore
Data & Documents Listed

opentelemetry-skill

Use when working with OpenTelemetry - configuring collectors, designing pipelines, instrumenting applications, implementing sampling strategies, managing cardinality, securing telemetry data, troubleshooting observability issues, writing OTTL transformations, making production observability architecture decisions, or setting up observability for AI coding agents (Claude Code, Codex, Gemini CLI, GitHub Copilot, and others)

26 Updated 2 days ago
o11y-dev
AI & Automation Solid

otel-instrumentation

Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when instrumenting applications with traces, metrics, or logs. Triggers on requests for observability, telemetry, tracing, metrics collection, logging integration, or OTel setup.

62 Updated 2 days ago
dash0hq
AI & Automation Solid

otel-queries

Analyze gh-aw OpenTelemetry traces from JSONL mirrors or OTLP backends.

4,544 Updated today
github
AI & Automation Solid

otel-semantic-conventions

OpenTelemetry Semantic Conventions expert. Use when selecting, applying, or reviewing telemetry attributes. Triggers on tasks involving attribute selection, semantic convention compliance, attribute migration, or custom attribute decisions. Covers the attribute registry, naming patterns, attribute placement, and versioning. For span names, span kinds, and span status codes, see the otel-instrumentation skill.

62 Updated 2 days ago
dash0hq