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

Closed
agardnerIT opened this issue Nov 21, 2024 · 2 comments · Fixed by #5905
Closed

[Page feedback]: otelcol_version removed? #5656

agardnerIT opened this issue Nov 21, 2024 · 2 comments · Fixed by #5905
Labels
good first issue Good for newcomers help wanted Extra attention is needed sig:collector

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

@svrnm svrnm added help wanted Extra attention is needed good first issue Good for newcomers labels Nov 27, 2024
meswapnilk pushed a commit to meswapnilk/opentelemetry.io that referenced this issue Jan 9, 2025
Closes open-telemetry#5656

Signed-off-by: Swapnil <swapnil@cloudnativehero.com>
meswapnilk added a commit to meswapnilk/opentelemetry.io that referenced this issue Jan 9, 2025
Closes open-telemetry#5656

Signed-off-by: Swapnil <swapnil@cloudnativehero.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed sig:collector
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants