# Other containers and orchestrators Use the same instrumented application and OTLP contract when the deployment runs on Podman, Nomad, a custom container scheduler, or another platform. The runtime's networking, lifecycle, secret delivery, and host visibility determine where the Collector belongs. ## Choose a placement | Placement | Configure | | --- | --- | | Collector sidecar sharing the application network namespace | Application exporter points to loopback; keep the Collector alive long enough to flush when the workload exits. | | Separate Collector service | Resolve its private service address from the application; configure receiver authentication/TLS for the trust boundary. | | Host agent | Point applications at a reachable host address; give only the required host metrics/log permissions. | | Direct export | Load the Corridora endpoint/key in the application and manage batching, retries, and shutdown in its SDK. | Two containers on the same bridge network do not necessarily share `localhost`. Conversely, containers in one Kubernetes pod share a network namespace. Verify the actual runtime's model before copying an endpoint. ## Deployment procedure 1. Build and test application instrumentation using the appropriate [language guide](../languages/README.md). 2. Provision the Collector image or binary and the [base configuration](../../../../examples/otel-collector.yaml). The [Collector guide](../../../collector.md) lists required components. 3. Load `CORRIDORA_OTLP_ENDPOINT` and `CORRIDORA_INGEST_KEY` into the Collector using the platform's secret/configuration mechanism. 4. Bind receiver ports to the intended private interface and publish them only to authorized senders. 5. Configure the application's exporter with the reachable receiver address and matching HTTP/gRPC protocol. 6. Set stable application resource attributes and instance metadata that survives scaling without turning every replica into a new service. 7. Configure readiness, bounded retries, restart policy, and a shutdown grace period for both application and Collector. 8. Exercise a fresh request and perform the [verification procedure](../../verification.md). Readiness of the Collector is not proof of downstream ingestion. Monitor exporter errors separately from receiver health. If a gateway scales horizontally, stateless OTLP receipt and per-trace tail sampling have different routing requirements; keep all relevant spans together when a stateful sampling decision requires it. ## Runtime-specific collection Use [host metrics](hosts.md) when the Collector can access the actual host. Use the runtime's supported statistics interface for container metrics. A Docker-compatible API is not automatically compatible with every Docker receiver feature; validate its version and returned metrics before adopting the [Docker recipe](docker.md). For logs, identify the supported driver or file interface and its rotation format. Give a file receiver an explicit path and parser. Do not infer that mounting an application volume also exposes its stdout stream. Serverless platforms can suspend or terminate the process after a response. Use their supported telemetry integration or an SDK lifecycle hook; a background export thread alone is not a delivery guarantee. See the [cloud guides](../../clouds/README.md) for platform-specific examples.