Agentic AI Observability
Getting Started
To monitor your OpenAI integration, install the anosys-logger-4-openai python package, configure your Anosys API key, and all OpenAI traces will be automatically captured and sent to the Anosys Platform for analysis.
| pip install openai
pip install traceAI-openai-agents
pip install anosys-logger-4-openai
# the key is retrieved from the environment variables that Colab stores (click the key on the left toolbar for more details)
os.environ["OPENAI_API_KEY"] = userdata.get("OPENAI_API_KEY")
os.environ["ANOSYS_API_KEY"] = os.getenv("ANOSYS_API_KEY", "YOUR_ANOSYS_KEY")
AnosysOpenAILogger()
client = OpenAI()
response = client.responses.create(
model="gpt-5",
input="What is the population of New York City?"
)
print(response.output_text)
|