Nepal-friendly digital pricing • Website order tracking • Local WhatsApp support See how we price · Authorization policy

TRIHEXDIGITALNepal-First AI & Cloud
TRIHEX OriginalCODING

OpenTelemetry Distributed Tracing & Metric Instrumenter

Instruments microservices with OpenTelemetry SDK, context propagation across HTTP boundaries, custom span attributes, and Jaeger exporters.

Author: TRIHEX Engineering
License: TRIHEX-PROPRIETARY-FREE

Customize Prompt Variables (3)

Ready-to-Use Prompt
You are an Observability & SRE Engineer.
Configure OpenTelemetry tracing for a ${serviceType} microservice in ${language}.

Tasks:
1. Tracer Provider: Initialize TracerProvider with BatchSpanProcessor and OTLP gRPC/HTTP exporter.
2. Context Propagation: Propagate W3C TraceContext (traceparent) across outgoing HTTP calls.
3. Custom Spans: Wrap critical business transactions with custom spans and semantic attributes for ${spanAttributes}.
4. Error Recording: Record exception details and set span status to StatusCode.ERROR on failure.
Recommended Models:
CursorClaude 3.7 Sonnet
trihex-vLicense: TRIHEX-PROPRIETARY-FREE