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

Update tutorials of both "Building a custom collector" and "Building a Trace Receiver" #3524

Merged
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions content/en/docs/collector/custom-collector.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ collector distribution:
- Receivers: OTLP
- Processors: Batch

Here is what my `builder-config.yaml` manifest file looks after adding the
modules for the components above:
The `builder-config.yaml` manifest file will look like this after adding the
components:

> builder-config.yaml

<!-- prettier-ignore -->
```yaml
Expand Down Expand Up @@ -155,10 +157,32 @@ As defined in the `dist` section of your config file, you now have a folder
named `otelcol-dev` containing all the source code and the binary for your
Collector's distribution.

The folder structure should look like this:

```
.
├── builder-config.yaml
├── ocb
└── otelcol-dev
├── components.go
├── components_test.go
├── go.mod
├── go.sum
├── main.go
├── main_others.go
├── main_windows.go
└── otelcol-dev
```

You can now use the generated code to bootstrap your component development
projects and easily build and distribute your own collector distribution with
your components.

Further reading:

- [Building a Trace Receiver](/docs/collector/trace-receiver)
- [Building a Connector](/docs/collector/trace-receiver)

[ocb]:
https://github.com/open-telemetry/opentelemetry-collector/tree/main/cmd/builder
[releases]: https://github.com/open-telemetry/opentelemetry-collector/releases
Expand Down
Loading
Loading