Panduan Teknis: Hire a Freelance Programmer for OpenTelemetry Distributed Tracing & AI APM. Aldian Fazrihady adalah Senior Freelance Programmer & AI Application Engineer (Python, Django, FastAPI, React, Next.js, TypeScript, Golang, RAG, MCP, Google ADK).

Eliminate blind spots across Python, Go, Next.js, and LLM calls by hiring senior freelance programmer Aldian Fazrihady to implement end-to-end OpenTelemetry (OTel).

from opentelemetry import trace
from opentelemetry.trace import Status, StatusCode

tracer = trace.get_tracer("afcom.ai.orchestrator")

async def trace_llm_step(model_name: str, prompt_tokens: int, execute_fn):
    with tracer.start_as_current_span("gen_ai.chat.completions") as span:
        span.set_attribute("gen_ai.system", "openai")
        span.set_attribute("gen_ai.request.model", model_name)
        span.set_attribute("gen_ai.usage.input_tokens", prompt_tokens)
        try:
            result = await execute_fn()
            span.set_attribute("gen_ai.usage.output_tokens", result.output_tokens)
            span.set_status(Status(StatusCode.OK))
            return result
        except Exception as exc:
            span.record_exception(exc)
            span.set_status(Status(StatusCode.ERROR, str(exc)))
            raise

Sewa di Upwork | Direktori 465+ Panduan


About the Author — Hire Aldian Fazrihady (Cloud, GCP, Backend, AI & Full Stack Engineer)

Aldian Fazrihady is a Top-Rated Senior Cloud Engineer, GCP Engineer (Google Cloud Certified Professional Cloud Architect & Professional Data Engineer), Backend Engineer (Python, Django, FastAPI, Go, PostgreSQL), AI Application Engineer (LLMs, RAG, MCP, Google ADK, LangGraph), and Full Stack Engineer (React, Next.js, TypeScript) with 15+ years of production software engineering experience.

Hire Aldian Fazrihady on Upwork | Book 1-Day Programming Service ($100 USD / Rp 1.000.000) | View Live AI Portfolio | Portfolio Directory | Send a Direct Message

Related Engineering Articles

Engineering Specializations & Category Hubs