HyperDX Integration | Mirascope
MirascopeLilypad

HyperDX

Mirascope provides out-of-the-box integration with HyperDX.

You can install the necessary packages directly or using the hyperdx extras flag:

pip install "mirascope[hyperdx]"

You can then use the with_hyperdx decorator to automatically log calls:

from mirascope import llm
from mirascope.integrations.otel import with_hyperdx 


@with_hyperdx() 
@llm.call(provider="openai", model="gpt-4o-mini")
def recommend_book(genre: str) -> str:
    return f"Recommend a {genre} book."


print(recommend_book("fantasy"))

This decorator is a simple wrapper on top of our OpenTelemetry integration.