Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Opentelemetry Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-opentelemetry-knowledge-patch-nevaberry-plugins)
---
name: opentelemetry-knowledge-patch
description: OpenTelemetry
version: null
license: MIT
metadata:
author: Nevaberry
---
# OpenTelemetry compatibility guidance
Load this skill when migrating Collector configuration or Go component code,
updating instrumentation and semantic conventions, or implementing SDK behavior.
It covers configuration removals, changed defaults, telemetry schemas, and
the experimental and opt-in features described in the topic references.
## Reference index
| Reference | Topics |
| --- | --- |
| [Collector Core and Configuration](references/collector-core-configuration.md) | Component IDs and support; HTTP/gRPC; reload and redaction; queues; telemetry; pdata; Builder and generated code |
| [Collector Exporters and Extensions](references/collector-exporters-extensions.md) | Exporter delivery and mapping; Kafka transport; authentication; OpAMP; storage; encodings and translators |
| [Collector Pipelines and Processing](references/collector-pipelines-processing.md) | Sampling; routing; OTTL; Transform; resource enrichment; signing; log and metric processing; connectors |
| [Collector Receivers](references/collector-receivers.md) | OTLP and Prometheus ingestion; Kafka; Kubernetes; host and cloud metrics; databases; files, logs, and network receivers |
| [Platform Semantic Conventions](references/semantic-conventions-platforms.md) | Entities and identity; cloud resources; Kubernetes; process, system, and runtime metrics; registry and event metadata |
| [Protocol Semantic Conventions](references/semantic-conventions-protocols.md) | RPC; messaging; databases; HTTP and network endpoints; exceptions; relocated conventions; FaaS and CI/CD |
| [Specification and SDK](references/specification-and-sdk.md) | SDK APIs and lifecycle; propagation; Views; log events; entities; declarative configuration; export and Prometheus contracts |
## Configuration removals and changed defaults
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}`.
Combining deprecated fields with the block is a configuration error in 0.160.0.
Collector 0.165.0 removes the deprecated client Go fields `IdleConnTimeout`,
`MaxIdleConns`, `MaxIdleConnsPerHost`, and `DisableKeepAlives`.
The Filter and Transform processors permanently default top-level `error_mode`
to `ignore`; set `error_mode: propagate` explicitly to preserve propagation.
Routing's default-error-mode gate becomes stable in Contrib 0.165.0: remove
flags disabling it and set `error_mode: propagate` to override the default.
The `signal_to_metrics` connector also defaults to `error_mode: ignore`.
In Contrib 0.164.0, replace Transform's `flatten_data: true` with
`flatten: {log: true}`. Contrib 0.165.0 removes the old configuration and Go API.
Remove deprecated `retry_gap` and `max_retries` from Failover configurations.
Its `condition.error.contains` must be a list of non-empty strings in 0.163.0;
when configured, only a matching downstream error triggers failover.
Elasticsearch rejects `mapping.mode`, `retry.max_requests`, and the
`logs_dynamic_index`, `metrics_dynamic_index`, and `traces_dynamic_index` flags
in Contrib 0.165.0. Select a mode with `X-Elastic-Mapping-Mode` client metadata
or `elastic.mapping.mode` on the scope, and use `retry.max_retries` for the limit.
For queue migration, replace `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, the Prometheus exporter always uses `translation_strategy`
and ignores `add_metric_suffixes`. Remove
`-exporter.prometheusexporter.DisableAddMetricSuffixes` from `--feature-gates`.
An explicit `sending_queue` logs a deprecation warning;
`exporter.prometheus.DisableSendingQueue` makes it a configuration error.
OpAMP Supervisor's `accepts_remote_config` enables both AcceptsRemoteConfig
and ReportsRemoteConfig. Its deprecated `reports_remote_config` capability
option is removed in Contrib 0.166.0.
File Log always writes protobuf checkpoints in 0.164.0 and rewrites existing
JSON checkpoints on the next save. Remove disabling flags for
`filelog.protobufCheckpointEncoding` before that upgrade, and all references
to the gate before 0.165.0.
## Component names and removed integrations
| Component | Configuration migration |
| --- | --- |
| Azure Monitor exporter | `azuremonitor` → `azure_monitor` |
| SQL Query receiver | `sqlquery` → `sql_query`; old name is a deprecated alias |
| SQL Server receiver | `sqlserver` → `sql_server`; old name is a deprecated alias |
| AWS ECS Attributes processor | `awsecsattributes` → `aws_ecs_attributes`; old ID removed |
| Cumulative to Delta processor | `cumulativetodelta` → `cumulative_to_delta`; old name is a deprecated alias |
| Span Pruning processor | `spanpruning` → `span_pruning`; old name is a deprecated alias |
| Queue Batch processor | `queuebatch` → `queue_batch` |
| AWS S3 receiver | `awss3` → `aws_s3`; old name is a deprecated alias |
| Grafana Cloud connector | `grafanacloud` → `grafana_cloud`; old name is a deprecated alias |
| Google Client Auth extension | `googleclientauth` → `google_client_auth`; old name is a deprecated alias |
| Basic Auth extension | `basicauth` → `basic_auth`; old name is a deprecated alias |
| Azure Data Explorer exporter | `azuredataexplorer` → `azure_data_explorer`; old name is a deprecated alias |
Contrib removes the JMX, Wavefront, and SignalFx receivers. For SignalFx,
move ingest to the OTLP receiver and update sending clients and pipeline references.
The removed Mezmo exporter is replaced by using OTLP/HTTP to send those logs.
Kafka Topics Observer, `kafka.topics`, `observer.KafkaTopicType`, and
`observer.KafkaTopic` are removed in 0.159.0. Migrate dependent Receiver Creator
rules and resource attributes to a Kafka receiver configured with a topic regex.
## Semantic-convention migrations
RPC uses `rpc.system.name` in place of `rpc.system`; `rpc.method` carries the
fully qualified method after merging with `rpc.service`. The status migration
first uses `rpc.response.status_code`, then replaces it with `rpc.status_code`.
Request metadata becomes `rpc.request.header.<key>`; response metadata splits
into `rpc.response.header.<key>` before the payload and
`rpc.response.trailer.<key>` after it. These new opt-in attributes are Release Candidate.
Replace `rpc.client.duration` and `rpc.server.duration` with
`rpc.client.call.duration` and `rpc.server.call.duration`, recording seconds.
Use the protocol reference for the version-dependent address and method requirements.
Replace `messaging.system` with `messaging.system.name`. System-specific
messaging attributes move to their system namespaces, including
`messaging.kafka.*` → `kafka.*` and `messaging.gcp_pubsub.*` → `gcp.pubsub.*`.
Remote service identity progresses from `peer.service` to `service.peer.name`,
then to `server.service.name` or `client.service.name` according to endpoint role;
the corresponding namespace attributes follow that role distinction.
Use `OTEL_SEMCONV_EXCEPTION_SIGNAL_OPT_IN` to transition exception recording
from span events to logs. Structured event data belongs in attributes, including
complex attributes; the body is for a display message.
The `browser.web_vital` body fields move to `browser.web_vital.name`,
`browser.web_vital.value`, `browser.web_vital.delta`, and `browser.web_vital.id`.
The main registry deprecates `gen_ai.*`; instrumentation using the relocated
conventions needs the corresponding `schema_url` from the dedicated repository.
Capture `http.request.body.content` or `http.response.body.content` only when
body capture is explicitly enabled; both may contain sensitive information.
Default URL sanitization treats `AWSAccessKeyId` and `Signature` as sensitive.
## Prometheus labels, histograms, and delivery
In the SDK Prometheus exporter, rename `without_scope_info` and
`without_target_info` to `scope_info_enabled` and `target_info_enabled`, inverting
both booleans. Rename `with_resource_constant_labels` to `resource_constant_labels`.
Collector `prometheus` and `prometheus_remote_write` exporters instead migrate
deprecated `resource_to_telemetry_conversion` to `resource_constant_labels`
with `included` and `excluded` wildcard patterns.
Contrib 0.166.0 disables legacy resource conversion by default on `prometheus`
through the beta `exporter.prometheus.DisableResourceToTelemetryConversion` gate.
Explicitly disabling that gate temporarily restores legacy conversion.
Both Prometheus exporters always preserve leading and consecutive underscores
in 0.164.0; remove disabling flags for `pkg.translator.prometheus.PermissiveLabelSanitization`.
For Remote Write export in 0.164.0, `timeout` bounds each attempt, while
`retry_on_failure.max_elapsed_time` bounds the whole batch, including splits by
`max_batch_size_bytes`. Rejected WAL batches are dropped even with
`retry_on_failure` enabled in 0.166.0; the reference lists the drop counters.
Both exporters drop exponential histogram points without a sum in 0.164.0.
In 0.166.0, `convert_explicit_histograms_to_nhcb` also drops explicit histogram
points with an unset sum.
Remote Write 2.0 ingestion requires POST and validates `Content-Type` and `mode`
in Contrib 0.166.0. The default `compression_algorithms: ["snappy"]` accepts block
Snappy and rejects framed Snappy; explicitly enable `x-snappy-framed` for framed streams.
The alpha `receiver.prometheus_remote_write.disableJobSplit` gate maps the whole
`job` label to `service.name`, keeping `payments/api` intact.
## Sampling and derived span metrics
Contrib 0.160.0 replaces `dynamic_sampling` with `adaptive_tail_sampling` and
renames `dynamic_percentage` and `dynamic_throughput` to `adaptive_percentage`
and `adaptive_throughput`. Use `fingerprint_attributes` instead of `key_attributes`
and qualify selectors. In 0.162.0, use `root.span.attributes["http.route"]`
instead of `root.attributes["http.route"]`.
Adaptive Tail Sampling decides at `span_limit` (default `10000`) and reuses the
cached decision for later spans; `span_limit: 0` removes the cap. In 0.162.0,
omitted `max_keys` means `500`, while explicit `0` allows unlimited keys.
In Contrib 0.163.0, the processor ships at alpha and adds `fleet_tracker` to divide
each adaptive throughput goal by the live Collector count. Contrib 0.164.0
provides `redis_fleet_tracker` to supply that count.
Tail Sampling's `num_shards` defaults to `1`; higher values shard by trace ID.
Trace capacity, expected trace rate, decision caches, and policy rates are
divided across shards, with the full `burst_capacity` available per shard.
Without `upper_threshold_ms`, latency `threshold_ms` is an exclusive lower bound.
For Span Metrics self time in Contrib 0.166.0, set `histogram.self_time: true`
on `span_metrics` and put `groupbytrace` upstream for complete traces.
The connector subtracts merged direct-child time from each parent and emits
`traces.span.metrics.duration_self_time` only for complete traces.
## Useful configuration and SDK features
Use `service.telemetry.resource.detection/development.detectors` for Collector
self-telemetry resource detection with `container`, `host`, `process`, or `service`.
The alpha `service.partialReload` and beta `service.partialReloadReceivers` gates
restart only receivers when all non-receiver configuration is unchanged.
In 0.166.0, partial reload rebuilds a shared receiver for every signal it serves.
File Log `ordering_criteria.top_n: 0` matches all files; `1` keeps the
highest-priority file. The opt-in `filelog.requireExplicitTopN` gate makes an
omitted value a startup error when `ordering_criteria.sort_by` is configured.
SQL Query's collection interval becomes 60 seconds in Contrib 0.166.0;
set `collection_interval: 10s` to retain its previous cadence.
OTTL provides lambda converters including `When`, `MapEach`, `Filter`, and `Reduce`.
In 0.163.0, enable `pkg.ottl.functions.enableExperimental` for experimental functions.
Literal slice arguments must be lists, such as `keep_keys(attributes, ["http.method"])`.
Contrib 0.165.0 introduces `processor.transform.enableExperimentalFunctions`
for new Transform functions while experimental. The processing reference
contains the Go import migrations, profile APIs, and experimental context details.
Use `maxExportBatchSize` on a periodic exporting `MetricReader` to limit each
export batch; it becomes stable in Specification 1.61.0. The environment setting
is `OTEL_METRIC_EXPORT_MAX_BATCH_SIZE`. A periodic reader's `Shutdown` must
include the effects of `ForceFlush`.
Trace, metric, and log exporter `Export` calls must have a finite upper bound,
except synchronous output through an API supporting neither deadlines nor cancellation.
The OTLP exporter timeout covers all attempts and retry waits for the batch;
an earlier caller deadline takes precedence.
`OTEL_EXPERIMENTAL_ENTITIES_ENABLED=true` opts in to entity generation by
resource detectors; with it, detectors should be entity-aware. SDK startup
resource assembly from entities remains in development in Specification 1.62.0.
Declarative SDK configuration should continue startup for an unrecognized
resource detector; a missing component for any other SDK plugin is an error.