Files
zooqueen c30b709ce1 Make the tree compile, and the builder tests pass with it
`make gotest` failed at cmd/builder with 16 failures, but only one was about
the builder. The other three could not even build a collector — the tree they
compile has been broken since an incomplete sync left calls without their
definitions.

  confmap/internal/decoder.go called NewExpandedValueSanitizer and
    sanitizeToStr. Both exist under the names they were generated with:
    metadata.ConfmapNewExpandedValueSanitizerFeatureGate, and
    sanitizeExpanded(data, true) — the string arm of the same helper
    sanitize() takes the false arm of, which is what the comment above the
    call describes.

  service/metadata.yaml never declared telemetry.newPipelineTelemetry, so
    mdatagen never generated the gate that 22 call sites use. Declared it as
    the CHANGELOG describes it — alpha, v0.123.0, PR #12217 — and added the
    generated entry, because mdatagen itself does not build (undefined:
    cfggen, still outstanding).

  confmap/xconfmap declared WithForceUnmarshaler twice, byte for byte.

  otelcol wanted xconfmap.WithUnredacted. MarshalOptions.OpaqueUnredacted and
    its hook were both there; only the exported option was missing, in the
    package whose own comment says experimental options go there.

  receivertest called atomic.AddInt64 on an atomic.Int64.

  otelconftelemetry computed metricsHost from the localhost gate and then
    hardcoded ptr("localhost"), so the gate did nothing. The compiler said so:
    declared and not used.

  confighttp used slices.Backward without importing slices.

  multi_batcher's Shutdown still ranged over a sync.Map field the struct no
    longer has; partitions is a typed LRU now, and every other reader takes
    the lock, so this one does too.

  otelconf is v0.23.0, the first release where SDK exposes Resource(), which
    createResource calls.

The one real builder bug: Config's component lists had no omitempty, so
MarshalYAML wrote connectors: null and converters: null for a distribution
that declares neither. Its doc comment already said it omits zero values.

cmd/builder: 2 packages ok, 0 failures. confmap, service, otelcol, confighttp,
exporterhelper and receiver all build.
2026-08-12 19:03:45 -07:00

212 lines
5.7 KiB
YAML

display_name: Service
type: service
github_project: open-telemetry/opentelemetry-collector
status:
disable_codecov_badge: true
class: pkg
stability:
development: [traces, metrics, logs, profiles]
distributions: [core, contrib]
telemetry:
metrics:
connector.consumed.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items passed to the connector.
unit: "{item}"
sum:
value_type: int
monotonic: true
connector.consumed.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items passed to the connector, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
connector.produced.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items emitted from the connector.
unit: "{item}"
sum:
value_type: int
monotonic: true
connector.produced.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items emitted from the connector, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
exporter.consumed.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items passed to the exporter.
unit: "{item}"
sum:
value_type: int
monotonic: true
exporter.consumed.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items passed to the exporter, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
process_cpu_seconds:
enabled: true
stability: alpha
description: Total CPU user and system time in seconds
unit: s
sum:
async: true
value_type: double
monotonic: true
process_memory_rss:
enabled: true
stability: alpha
description: Total physical memory (resident set size)
unit: By
gauge:
async: true
value_type: int
process_runtime_heap_alloc_bytes:
enabled: true
stability: alpha
description: Bytes of allocated heap objects (see 'go doc runtime.MemStats.HeapAlloc')
unit: By
gauge:
async: true
value_type: int
process_runtime_total_alloc_bytes:
enabled: true
stability: alpha
description: Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalAlloc')
unit: By
sum:
async: true
value_type: int
monotonic: true
process_runtime_total_sys_memory_bytes:
enabled: true
stability: alpha
description: Total bytes of memory obtained from the OS (see 'go doc runtime.MemStats.Sys')
unit: By
gauge:
async: true
value_type: int
process_uptime:
enabled: true
stability: alpha
description: Uptime of the process
unit: s
sum:
async: true
value_type: double
monotonic: true
processor.consumed.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items passed to the processor.
unit: "{item}"
sum:
value_type: int
monotonic: true
processor.consumed.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items passed to the processor, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
processor.produced.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items emitted from the processor.
unit: "{item}"
sum:
value_type: int
monotonic: true
processor.produced.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items emitted from the processor, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
receiver.produced.items:
prefix: otelcol.
enabled: true
stability: development
description: Number of items emitted from the receiver.
unit: "{item}"
sum:
value_type: int
monotonic: true
receiver.produced.size:
prefix: otelcol.
enabled: false
stability: development
description: Size of items emitted from the receiver, based on ProtoMarshaler.Sizer.
unit: "{item}"
sum:
value_type: int
monotonic: true
feature_gates:
- id: service.AllowNoPipelines
description: 'Allow starting the Collector without starting any pipelines.'
stage: alpha
from_version: 'v0.122.0'
reference_url: 'https://github.com/open-telemetry/opentelemetry-collector/pull/12613'
- id: service.profilesSupport
description: 'Controls whether profiles support can be enabled'
stage: alpha
from_version: 'v0.112.0'
reference_url: 'https://github.com/open-telemetry/opentelemetry-collector/pull/11477'
- id: telemetry.newPipelineTelemetry
description: 'Inject component-identifying attributes in internal metrics.'
stage: alpha
from_version: 'v0.123.0'
reference_url: 'https://github.com/open-telemetry/opentelemetry-collector/pull/12217'
- id: telemetry.UseLocalHostAsDefaultMetricsAddress
description: 'Controls whether default Prometheus metrics server use localhost as the default host for their endpoints'
stage: beta
from_version: 'v0.111.0'
reference_url: 'https://github.com/open-telemetry/opentelemetry-collector/pull/11251'