open-telemetry / opentelemetry.io

The OpenTelemetry website and documentation
https://opentelemetry.io
Creative Commons Attribution 4.0 International
556 stars 1.21k forks source link

[Page feedback]: otelcol_version removed? #5656

Open agardnerIT opened 1 day ago

agardnerIT commented 1 day ago

URL

https://opentelemetry.io/docs/collector/custom-collector/

Description

I'm trying to build a custom collector using ocb on 0.114.0:

Following the docs, my manifest is:

dist:
  name: otelcol-dev
  description: Basic OTel Collector distribution for Developers
  output_path: ./otelcol-dev
  otelcol_version: 0.114.0

  receivers:
    - gomod:
        github.com/open-telemetry/opentelemetry-collector-contrib/receiver/filelogreceiver v0.114.0

  processors:
    - gomod:
        github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.114.0
        github.com/open-telemetry/opentelemetry-collector-contrib/processor/transformprocessor v0.114.0
        github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor v0.114.0
        github.com/open-telemetry/opentelemetry-collector-contrib/processor/logdedupprocessor v0.114.0

  exporters:
    - gomod:
        github.com/open-telemetry/opentelemetry-collector/exporter/otlphttp v0.114.0

The Error

2024-11-21T15:24:32.701+1000    INFO    internal/command.go:97  OpenTelemetry Collector Builder {"version": "0.114.0"}

I receive an error:

ocb.exe --config manifest.yaml
2024-11-21T15:23:55.397+1000    INFO    internal/command.go:97  OpenTelemetry Collector Builder {"version": "0.114.0"}
2024-11-21T15:23:55.398+1000    INFO    internal/command.go:102 Using config file       {"path": "manifest.yaml"}
Error: invalid configuration: `otelcol_version` has been removed. To build with an older Collector API, use an older (aligned) builder version instead
svrnm commented 1 day ago

thanks for reporting @agardnerIT !

@open-telemetry/collector-approvers PTAL!

mx-psi commented 1 day ago

This indeed needs fixing, cc @bogdandrutu