Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Page feedback]: otelcol_version removed? #5656

Open
agardnerIT opened this issue Nov 21, 2024 · 2 comments
Open

[Page feedback]: otelcol_version removed? #5656

agardnerIT opened this issue Nov 21, 2024 · 2 comments

Comments

@agardnerIT
Copy link

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
Copy link
Member

svrnm commented Nov 21, 2024

thanks for reporting @agardnerIT !

@open-telemetry/collector-approvers PTAL!

@mx-psi
Copy link
Member

mx-psi commented Nov 21, 2024

This indeed needs fixing, cc @bogdandrutu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants