/opentelemetry-agent-skills:otel-ottlfrom opentelemetry-agent-skills
Writes and debugs OpenTelemetry Transformation Language (OTTL) for Collector components including transform, filter, tail_sampling, and routing. Covers function signatures, error behavior, and context selection.
Ships in opentelemetry-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
OTTL transforms or selects telemetry inside Collector components. This skill is pinned to collector-contrib v0.165.0. Function, path, default, and feature-gate availability varies by release; when the user's version differs, verify against the matching upstream tag.
OTTL feature-gate status for v0.162.0 through v0.165.x is in references/functions.md.
transform rewrites, filter drops, tail_sampling decides whether
to retain traces, and routing sends telemetry to pipelines. A component controls its available
contexts and functions.resource.attributes), but parents cannot read children. Use datapoint for point
attributes instead of traversing metric.data_points.set or delete_key mutates data and may have a where condition. Converters
such as ParseJSON and IsMatch return values; they do not mutate.ignore logs statement errors and continues; silent
continues without logging; propagate returns the error and can cause the component to drop the
payload. Transform, filter, and routing default to ignore, and their default-error gates cannot
change it; naming a removed gate in --feature-gates fails startup. Per-component gate
history is on the otel-collector transform,
filter, and
routing pages. For routing, ignore sends an
errored payload to default_pipelines; configure that fallback or the payload is dropped.validate also parses
routing connector conditions; tail_sampling OTTL policies are parsed only at startup), then send
known telemetry and inspect file-exporter output. Use the
telemetrygen recipe.set(span.attributes["env"], "prod") where resource.attributes["env"] == nil
For a single path or function, read only the relevant section instead of loading the full catalogs.
where x != nil, IsString(x), or the
appropriate type check.ParseJSON, for example
IsString(log.body) and IsMatch(log.body.string, "(?s)^\\s*\\{.*\\}\\s*$"). The RE2 (?s)
flag admits pretty-printed objects containing newlines. Checking IsMap after
parsing does not prevent arrays or scalar JSON from being parsed.ParseJSON, IsString, and IsMatch are available without the
v0.157 alpha lambda feature gate.include_metadata: true on the receiver.
HTTP/client header spelling may retain its form (otelcol.client.metadata["X-Tenant"][0]);
gRPC metadata keys are lowercase (otelcol.grpc.metadata["x-tenant"][0]).request context is deprecated since v0.156; use otelcol.client.metadata or
otelcol.grpc.metadata.flatten: {log: true} and the
alpha transform.flatten.logs gate. This copies and regroups data; do not enable it accidentally.set(target, nil) is a no-op; since v0.161 it is not (ottl.set.allowNil lifecycle:
gate table). A nil value empties a map, slice, or
pcommon.Value target (an attribute key is created with an empty value) and errors on scalar
targets. Use a where source != nil guard when the destination must remain unchanged for missing input.${1} as $${1}. A replacement such
as $1REDACTED is literal and silently fails to substitute the capture.(.{1024}).*; use Substring with a nil/type
guard and Len, or truncate_all for a map.spanevent.*, not span_event.*. Cache paths are context-qualified,
such as span.cache["parsed"].:, for
example 'set(log.attributes["a"], {"foo": "bar"})'; otherwise YAML parses : as a mapping.pcommon.Value paths compare by their underlying type; maps and slices
support only equality and inequality, while primitive values also support ordering.Decode(value, "base64"); Base64Decode was removed in v0.161.\\d, \\s, \\.).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/otel-browserOpenTelemetry browser/RUM mechanics for SPAs and MPAs. Use for “browser OTel,” “frontend observability,” “Web Vitals,” `sdk-trace-web`, `WebTracerProvider`, `browser-sdk`, browser instrumentations, page-load or route tracing, sessions, clicks, console capture, JavaScript errors, or frontend-to-backend trace correlation. Browser telemetry is privacy- and volume-sensitive, and experimental packages move quickly. Not for Node.js service instrumentation or Collector-only configuration./otel-cicdObserve CI/CD pipelines with OpenTelemetry. Use when turning GitHub Actions or GitLab CI/CD runs, jobs and steps into traces with the Collector `github` or `gitlab` receiver (workflow_run and pipeline webhooks, the GitHub scraper), or keeping raw webhook payloads as logs with `webhook_event`; collecting pull-request, branch and repository (VCS) or DORA metrics such as lead time for changes; joining build or test processes to the pipeline trace through `TRACEPARENT` or otel-cli; exporting OTLP from Jenkins, Argo Workflows, Tekton, Buildkite, Concourse or Dagger; or applying the `cicd.*` and `vcs.*` semantic conventions. Triggers on "trace our GitHub Actions workflows", "GitLab pipeline traces in the Collector", "make test spans join the CI trace", and "instrument our pipeline runner". Not for testing OpenTelemetry changes in CI, dependency-update automation, or deployment verification./otel-collectorOpenTelemetry Collector component configuration. Use when authoring, reviewing, or debugging Collector YAML for a specific receiver, processor, exporter, connector, or extension — config keys, defaults, validation rules, signal support, stability levels, and component-level gotchas. Triggers on Collector component questions including receivers, processors, exporters, connectors, extensions, component renames, signal support, and pipeline wiring; failover, fallback, or backup exporters and failing back to the primary; the ClickHouse exporter, `async_insert`, and `create_schema`; exporting or archiving telemetry to S3 or object storage; replaying or backfilling from S3; S3 event notifications via SQS; and `awss3` or `aws_s3`./otel-collector-builderBuild custom OpenTelemetry Collector distributions with OCB (OpenTelemetry Collector Builder). Use when authoring or debugging a builder manifest (builder.yaml), choosing component and provider versions, building a collector that bundles a custom or out-of-distribution component, setting up CI or Docker builds of a distribution, or troubleshooting OCB build failures. Triggers on "ocb", "collector builder", "custom collector distribution", "builder manifest", "builder-config", and version-mismatch errors from OCB builds./otel-declarative-configOpenTelemetry declarative YAML configuration for SDK setup. Use when configuring OpenTelemetry SDK providers (tracer, meter, logger), setting up OTLP exporters, defining sampling strategies, or writing otel config files. Triggers on "otel config", "OpenTelemetry YAML", "declarative configuration", "otelconf", "OTEL_CONFIG_FILE", "file_format", "configure tracing/metrics/logs export", or when the user is setting up telemetry pipelines via config files rather than code./otel-dotnetOpenTelemetry in .NET — DI/builder SDK setup (OpenTelemetry.Extensions.Hosting, AddOpenTelemetry, UseOtlpExporter, OpenTelemetrySdk.Create), native .NET instrumentation APIs (ActivitySource, System.Diagnostics.Metrics Meter) plus logging abstractions (ILogger), zero-code CLR-profiler agent, contrib instrumentation packages, performance tuning, and breaking-change audits. Use when adding, reviewing, or configuring OpenTelemetry in a .NET or ASP.NET Core service. Triggers on "setup otel in dotnet", "dotnet telemetry", ".net tracing", "ASP.NET Core opentelemetry", "AddOpenTelemetry", "UseOtlpExporter", "OpenTelemetrySdk.Create", "ActivitySource", "System.Diagnostics.Metrics Meter", "ILogger opentelemetry", "OpenTelemetry.Extensions.Hosting", "opentelemetry-dotnet-instrumentation", or any C# OTel question.Generated from the plugin's indexed repository (ollygarden/opentelemetry-agent-skills) — no native marketplace selected
npx claudepluginhub p/ollygarden-opentelemetry-agent-skillsOther plugins' skills for the same job