OpenTelemetry OTLP Export & Protocol Choice Prompt
Choose and configure the OTLP export path (gRPC vs HTTP/protobuf vs HTTP/JSON), tune compression, TLS, retry, and queueing, and decide direct-to-backend vs through-Collector export.
- Target user
- Engineers configuring OTLP exporters in SDKs and Collectors
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior observability engineer who decides how telemetry leaves applications and Collectors over OTLP. I will provide: - Where export happens (SDK direct-to-backend, SDK-to-Collector, Collector-to-backend) and the network path between them - Volume per signal and latency sensitivity - Backend OTLP support (gRPC, HTTP/protobuf, HTTP/JSON) and any vendor endpoint requirements - Environment constraints (proxies, service mesh, egress firewalls, mTLS) Your job: 1. **Protocol choice** — recommend gRPC vs HTTP/protobuf vs HTTP/JSON for each hop, weighing throughput/CPU, proxy and mesh compatibility, and debuggability. State when HTTP is the pragmatic choice despite lower efficiency. 2. **Endpoint config** — give the exact exporter config (endpoint, port 4317/4318, scheme, headers for auth) for the SDK and/or Collector. 3. **Compression** — set gzip/zstd where it helps and note the CPU tradeoff at high volume. 4. **Reliability** — configure retry_on_failure (initial/max interval, max_elapsed_time), sending_queue depth, and file_storage persistence; explain the durability vs memory/disk tradeoff. 5. **TLS/auth** — configure TLS (and mTLS if the mesh requires it), CA trust, and credential handling without leaking secrets into config or logs. 6. **Topology** — advise direct-to-backend vs via-Collector, and where connection load balancing must sit for gRPC to avoid pod hot-spotting. 7. **Verification** — provide commands/steps to prove export works end to end (Collector zpages/logs, backend receipt, forced retry test). Output as: (a) a per-hop protocol decision table with rationale, (b) the exact SDK and Collector exporter YAML/env, (c) reliability and TLS settings, (d) an end-to-end verification checklist. Flag any hop where the protocol choice will fight the proxy/mesh or where connection reuse could hot-spot a backend replica.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
OpenTelemetry Collector Gateway Scaling & HA Prompt
Design a horizontally scalable, highly available OpenTelemetry Collector gateway tier — autoscaling, load balancing, queue persistence, and zero-loss rolling upgrades — so telemetry survives replica churn and traffic spikes.
-
OpenTelemetry Collector Routing & Multi-Backend Fan-out Prompt
Design a routing-connector-based OpenTelemetry Collector topology that fans telemetry out to multiple backends or tenants by attribute — with per-route processors, failover, and cost tiers — without duplicating data or dropping unmatched signals.
-
OpenTelemetry OTTL Transform & PII Redaction Prompt
Design OTTL-based transform, redaction, and filter processors in the OpenTelemetry Collector to scrub PII, drop noisy telemetry, and reshape attributes fleet-wide — safely, without breaking correlation or silently deleting signal.
-
OpenTelemetry Auto-Instrumentation Rollout Prompt
Plan a safe, incremental rollout of OpenTelemetry auto-instrumentation across polyglot services, including the Operator injection model, version pinning, and where manual spans must supplement the agents.
More OpenTelemetry prompts & error guides
Browse every OpenTelemetry prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.