Commit Graph

1 Commits

Author SHA1 Message Date
Heitor Ganzeli 2ecd0b7f95
Add documentation example for receiver package (#5675) (#12922)
#### Description

This PR introduces a testable example to the package
[receiver](/receiver). it's a similar example to the documentation one
on
https://opentelemetry.io/docs/collector/building/receiver/#designing-and-validating-receiver-settings

#### Issue:
https://github.com/open-telemetry/opentelemetry-collector/issues/5675#issuecomment-2796741807

#### Testing

the testable example was executed successfully


![image](https://github.com/user-attachments/assets/47454f60-25d8-411b-a78f-c3e855dfd04f)


#### Documentation

this testable example follows
https://go.dev/blog/examples#larger-examples format and should be
automatically added to `receiver` package documentation

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
2025-04-30 10:17:35 +00:00