| 1 |
# General Information |
| 2 |
|
| 3 |
Extensions provide capabilities on top of the primary functionality of the |
| 4 |
collector. Generally, extensions are used for implementing components that can |
| 5 |
be added to the Collector, but which do not require direct access to telemetry |
| 6 |
data and are not part of the pipelines (like receivers, processors or |
| 7 |
exporters). Example extensions are: Memory Limiter extension that prevents |
| 8 |
out of memory situations or zPages extension that provides live data for |
| 9 |
debugging different components. |
| 10 |
|
| 11 |
Supported service extensions (sorted alphabetically): |
| 12 |
|
| 13 |
- [Memory Limiter](memorylimiterextension/README.md) |
| 14 |
- [zPages](zpagesextension/README.md) |
| 15 |
|
| 16 |
The [contributors |
| 17 |
repository](https://github.com/open-telemetry/opentelemetry-collector-contrib) |
| 18 |
may have more extensions that can be added to custom builds of the Collector. |
| 19 |
|
| 20 |
## Ordering Extensions |
| 21 |
|
| 22 |
The order extensions are specified for the service is important as this is the |
| 23 |
order in which each extension will be started and the reverse order in which they |
| 24 |
will be shutdown. The ordering is determined in the `extensions` tag under the |
| 25 |
`service` tag in the configuration file, example: |
| 26 |
|
| 27 |
```yaml |
| 28 |
service: |
| 29 |
# Extensions specified below are going to be loaded by the service in the |
| 30 |
# order given below, and shutdown on reverse order. |
| 31 |
extensions: [extension1, extension2] |
| 32 |
``` |