Skip to content
Back to skills

Opentelemetry Knowledge Patch

ASecurity

OpenTelemetry

  • 25 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 5, 2026
developmentgosqlkubernetesawsazuregitapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill opentelemetry-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opentelemetry Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Opentelemetry Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-opentelemetry-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-opentelemetry-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: opentelemetry-knowledge-patch
description: OpenTelemetry
version: null
license: MIT
metadata:
  author: Nevaberry
---


# OpenTelemetry Knowledge Patch

Use this skill when updating OpenTelemetry instrumentation, SDK configuration,
Collector deployments, or custom Collector components. Load the relevant topic
reference for detailed migration rules, defaults, feature gates, and examples.
Reference entries retain their product attribution and source batch footnotes.

## Reference index

| Reference | Topics |
| --- | --- |
| [Collector core and configuration](references/collector-core-configuration.md) | Configuration, transports, reloads, queues, profiles, Go APIs, generation, builds, and component support |
| [Exporters and extensions](references/collector-exporters-extensions.md) | Exporter migrations, retries, Prometheus translation, Kafka, encoding, authentication, storage, and OpAMP |
| [Pipelines and processing](references/collector-pipelines-processing.md) | OTTL, transforms, sampling, connectors, resource detection, enrichment, and integrity |
| [Receivers](references/collector-receivers.md) | Database collection, Prometheus ingestion, logs, Kubernetes, infrastructure, cloud receivers, and discovery |
| [Platform semantic conventions](references/semantic-conventions-platforms.md) | Resources, entities, service identity, Kubernetes, runtimes, SDK telemetry, and registry migrations |
| [Protocol semantic conventions](references/semantic-conventions-protocols.md) | RPC, HTTP, messaging, databases, network endpoints, exceptions, and convention selection |
| [Specification and SDK](references/specification-and-sdk.md) | SDK lifecycle, context propagation, Views, log APIs, declarative configuration, entities, and metric translation |

## Collector removals and configuration migrations

### Component names and removed receivers

Update component configuration and references using these migrations.

| Component | Migration |
| --- | --- |
| ECS Attributes processor | `awsecsattributes` → `aws_ecs_attributes`; the old ID is removed |
| Cumulative to Delta processor | `cumulativetodelta` → `cumulative_to_delta`; the old ID is a deprecated alias |
| Span Pruning processor | `spanpruning` → `span_pruning`; the old ID is a deprecated alias |
| Queue Batch processor | `queuebatch` → `queue_batch` in Collector 0.162.0 |
| SQL Query receiver | `sqlquery` → `sql_query`; the old ID is a deprecated alias |
| SQL Server receiver | `sqlserver` → `sql_server` in Contrib 0.163.0; the old ID is a deprecated alias |
| Azure Monitor exporter | `azuremonitor` → `azure_monitor` |
| Basic Auth extension | `basicauth` → `basic_auth` in Contrib 0.166.0; the old ID is a deprecated alias |

Contrib removes the JMX receiver code. Update dependent builds and pipelines before
upgrading. Contrib 0.165.0 removes the SignalFx receiver; move ingest to the OTLP
receiver and update sending clients and pipeline references.

### HTTP keepalive and Go configuration

Collector 0.160.0 deprecates flat HTTP keepalive settings. Move client
`idle_conn_timeout`, `max_idle_conns`, and `max_idle_conns_per_host`, and server
`idle_timeout`, under `keepalive`. Replace client `disable_keep_alives: true` or
server `keep_alives_enabled: false` with `keepalive: {enabled: false}`.
Collector 0.165.0 removes the deprecated client fields.

Replace `configgrpc.BalancerName()` with `configgrpc.DefaultBalancerName` and
`xconfmap.WithForceUnmarshaler` with `confmap.WithForceUnmarshaler`.
Collector 0.161.0 removes the old unmarshaler option.

### Elasticsearch exporter

In Contrib 0.165.0, remove `mapping.mode`, `retry.max_requests`, and
`logs_dynamic_index`, `metrics_dynamic_index`, and `traces_dynamic_index`.
Select a mapping mode through `X-Elastic-Mapping-Mode` client metadata or the
`elastic.mapping.mode` scope attribute; use `retry.max_retries` for the retry limit.
The queue migration replaces `num_workers` with `sending_queue.num_consumers`,
`flush.interval` with `sending_queue.batch.flush_timeout`, and `flush.bytes` with
`sending_queue.batch.max_size` using the bytes sizer.

In Contrib 0.166.0, client timeout retries are mandatory and
`retry_on_document_status` has its own default. Set both status lists to `[429]`
for the previous status defaults, or copy a custom HTTP status list to the
document list to preserve inheritance behavior. Retries give at-least-once delivery.

### Prometheus exporter configuration

Replace deprecated `resource_to_telemetry_conversion` in the Prometheus and
Prometheus Remote Write exporters with `resource_constant_labels` patterns.
In Contrib 0.166.0, `exporter.prometheus.DisableResourceToTelemetryConversion`
disables legacy resource conversion by default; explicitly disabling that gate
temporarily restores it.

In Contrib 0.166.0, the Prometheus exporter always uses `translation_strategy`
and ignores `add_metric_suffixes`. Remove
`-exporter.prometheusexporter.DisableAddMetricSuffixes` from `--feature-gates`
to avoid a startup error. An explicit `sending_queue` logs a deprecation warning;
`exporter.prometheus.DisableSendingQueue` makes it a configuration error.

## Processor and OTTL migrations

The top-level `error_mode` default for Filter and Transform is permanently
`ignore`. Set `error_mode: propagate` explicitly to preserve propagation.
In Contrib 0.165.0, Routing's `connector.routing.defaultErrorModeIgnore` is stable;
remove any disabling flag and set `error_mode: propagate` to override the default.

In Contrib 0.164.0, replace Transform's `flatten_data: true` with
`flatten: {log: true}`. Contrib 0.165.0 removes `flatten_data` from configuration
and the Go API. New experimental Transform functions require
`processor.transform.enableExperimentalFunctions`.

Replace removed `Base64Decode` with calls such as
`Decode(attributes["encoded"], "base64")`. In Contrib 0.164.0, remove the retired
`ottl.set.allowNil` gate. Use a list for literal slice arguments, such as
`keep_keys(attributes, ["http.method"])`; a scalar literal fails parsing in 0.163.0.

OTTL's experimental functions use `pkg.ottl.functions.enableExperimental`.
Custom parsers import experimental converters through `WithExperimentalConverters`
from `pkg/ottl/xottl/ottlfuncs`; profile contexts use `pkg/ottl/contexts/xprofile`.
In Contrib 0.166.0, Transform profiles support defaults to enabled under
`processor.transform.enableProfiles`, and Go profile functions move to
`processor/transformprocessor/xtransformprocessor`.

## Semantic-convention migrations

For RPC, replace `rpc.system` with `rpc.system.name` and use fully qualified
`rpc.method` values after the merge with `rpc.service`. Call-duration metrics
use `rpc.client.call.duration` and `rpc.server.call.duration` in seconds.
The later RPC status migration replaces `rpc.response.status_code` with
`rpc.status_code`; instrumentation may use additional context or configuration
to decide which status or error codes count as errors.

Replace `messaging.system` with `messaging.system.name`. Messaging-specific
attribute namespaces also migrate; consult the protocol reference for the mappings.
Replace `service.peer.name` and `service.peer.namespace` with `server.service.name`
and `server.service.namespace` for remote servers, or `client.service.name` and
`client.service.namespace` for remote clients.

Use `OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN` to transition exception recording from
span events to logs. Put structured event data in attributes, including complex
attributes, and use the body for a display message.
Set `http.request.body.content` or `http.response.body.content` only when capture
is explicitly enabled; both may contain sensitive information.

The main registry deprecates `gen_ai.*` conventions. Instrumentation using the
relocated conventions needs the corresponding `schema_url` from the dedicated
[GenAI semantic conventions repository](https://github.com/open-telemetry/semantic-conventions-genai).

## Queueing, reloads, and trace sampling

Exporter queue batch histograms measure outgoing batches only when
`sending_queue.batch` is configured; enqueue size histograms measure incoming
requests for queue sizing. In Collector 0.165.0, an accepted request with
`wait_for_result` waits for its result even after caller cancellation.
Cancellation can still stop a request before queue acceptance.

Enable alpha `--feature-gates=service.partialReload` together with beta
`service.partialReloadReceivers` for receiver-only reloads when all non-receiver
sections are unchanged. In Collector 0.166.0, rebuilding a shared receiver for
one signal during partial reload rebuilds it for every signal it serves.

Contrib 0.160.0 replaces `dynamic_sampling` with `adaptive_tail_sampling`.
Use `adaptive_percentage` and `adaptive_throughput` for the renamed samplers;
the throughput goal is spans per second for per-trace decisions.
The processor ships at alpha in Contrib 0.163.0. Its `fleet_tracker` divides each
throughput rule's `goal_throughput` by the live Collector count.

Tail Sampling's `num_shards` defaults to `1`. Higher values shard by trace ID and
divide trace capacity, expected trace rate, decision-cache sizes, and policy rates;
the full `burst_capacity` is available per shard.
With no `upper_threshold_ms`, the latency policy's `threshold_ms` is exclusive.

## Receiver configuration and ingestion

For File Log ordering, `ordering_criteria.top_n: 0` matches all files and `1`
keeps only the highest-priority file. The opt-in `filelog.requireExplicitTopN`
gate makes omission an error when `ordering_criteria.sort_by` is configured.
In Contrib 0.164.0, File Log always writes protobuf checkpoints and rewrites
existing JSON checkpoints on the next save.

In Contrib 0.166.0, Remote Write 2.0 requires POST and validates `Content-Type`
and its `mode` parameter. The default `compression_algorithms: ["snappy"]` accepts
block Snappy and rejects framed Snappy with HTTP 400. Explicitly enable
`x-snappy-framed` for framed streams. The alpha
`receiver.prometheus_remote_write.disableJobSplit` gate maps the entire `job`
label to `service.name`, so `payments/api` stays `payments/api`.

In Contrib 0.166.0, `receiver.prometheus.EnableOpenMetrics2` opts in to experimental
OpenMetrics 2.0 scraping; request it with `scrape_protocols: [OpenMetricsText2.0.0]`.
The gate is alpha. Kubelet Stats switches container memory instruments to
UpDownCounters when both `receiver.kubelet_stats.EmitV1K8sConventions` and
`receiver.kubelet_stats.DontEmitV0K8sConventions` are enabled.

## SDK configuration, lifecycle, and metrics

Replace `disabled` with `enabled` on `TracerConfig`, `MeterConfig`, and
`LoggerConfig`, inverting the old value. Declarative plugin APIs use
`PluginComponentProvider` and `CreateComponent` instead of `ComponentProvider`
and `CreatePlugin`. Use `ExperimentalResourceDetector` as the declarative
resource detector plugin type.

Trace, metric, and log exporter `Export` calls must have a finite upper bound.
The only exception is synchronous output through an API supporting neither
deadlines nor cancellation. The OTLP exporter timeout covers the whole batch,
including attempts and waits between retries; an earlier caller deadline wins.
A periodic exporting `MetricReader` must include `ForceFlush` effects in `Shutdown`.

Use `maxExportBatchSize` or `OTEL_METRIC_EXPORT_MAX_BATCH_SIZE` to cap each
periodic metric export batch. The environment-variable example is:

```sh
export OTEL_METRIC_EXPORT_MAX_BATCH_SIZE=256
```

`view_matching_mode` on `MeterProvider` supports composing matching Views.
The instrument advisory `Attributes` is a recommended allow-list; an empty list
retains no stream attributes, while exemplars retain filtered measurement attributes.
Use `OptIn` to mark an instrument for opt-in collection and a matching View's
`enabled` parameter to control stream emission.

Set `OTEL_EXPERIMENTAL_ENTITIES_ENABLED=true` to opt in to entity generation by
resource detectors; with that setting, detectors should be entity-aware.
Declarative SDK configuration should continue startup for an unrecognized resource
detector; missing components for other SDK plugins produce configuration errors.

Files in this skill

  • SKILL.md10.1 KB
  • coverage.json672 B
  • references/collector-core-configuration.md4.7 KB
  • references/collector-exporters-extensions.md5 KB
  • references/collector-pipelines-processing.md4.3 KB
  • references/collector-receivers.md5.9 KB
  • references/semantic-conventions-platforms.md6.9 KB
  • references/semantic-conventions-protocols.md4 KB
  • references/specification-and-sdk.md4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.