open-telemetry/opentelemetry-collector

Provide examples on how to create components

Open

#5,675 opened on Jul 12, 2022

View on GitHub
 (33 comments) (0 reactions) (0 assignees)Go (2,146 forks)auto 404
area:documentationeasygood first issue

Repository metrics

Stars
 (7,237 stars)
PR merge metrics
 (PR metrics pending)

Description

EDIT: I have kept all original text (with strikethrough) but have made modifications based on feedback

It would be very helpful and improve usability if an examples were was provided for the different a components like receivers, processor, exporters and extensions. This would simplify the process of creating a component for new users.

Examples could be added to the Go documentation for the component package. Refer to Testable Examples in Go for more details.

This request follows a discussion with @mx-psi.

Tasks

Modules where we would want to have testable examples:

Contributor guide