Documentation ¶
Overview ¶
Package languagedetection implements the language detection patcher. The patcher is a component of the language detection feature that is responsible for patching pod owner resources (such as deployments, statefulsets, daemonsets, etc.) with language annotations based on languages detected by the process agent.
The language detection patcher subscribes to workloadmeta events. When it receives a notification from workloadmeta it does the following:
- Reads the entity data contained in the event
- Extracts the `detected_languages` and `injectable_languages` from the entity data
- Constructs the annotations patch
- Patches the owner resource with language annotations (i.e. deployment, statefulset, etc.)
For more information about the language detection and library injection feature, refer to this document.
Click to show internal directories.
Click to hide internal directories.