Integrate OpenTelemetry for Observability

implementationChallenge

Prompt Content

Instrument your Kong Gateway, MCP processing service, and Gemini API calls with OpenTelemetry. Ensure that traces capture the full request lifecycle, including distinct spans for each stage (gateway, MCP parsing, Gemini inference, MCP response serialization). Verify that relevant attributes (e.g., user_id, session_id, model_name) are attached to spans. Demonstrate this with the 'ObservabilityTrace' task.

Try this prompt

Open the workspace to execute this prompt with free credits, or use your own API keys for unlimited usage.

Usage Tips

Copy the prompt and paste it into your preferred AI tool (Claude, ChatGPT, Gemini)

Customize placeholder values with your specific requirements and context

For best results, provide clear examples and test different variations