Musterby Elitery
Integrations

Firecrawl

Trace Firecrawl web scraping operations in Muster via the @observe decorator.

Firecrawl is a managed web-scraping service. Wrap its calls with Muster's @observe() decorator to capture inputs, outputs, and execution metrics.

Setup

%pip install langfuse firecrawl-py
import os

os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-..."
os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..."
os.environ["LANGFUSE_BASE_URL"] = "https://app.getmuster.io"
from firecrawl import FirecrawlApp

app = FirecrawlApp(api_key="fc-...")

Wrap a scrape

from langfuse import observe

@observe()
def scrape_website(url):
    return app.scrape_url(url, params={"formats": ["markdown", "html"]})

scrape_website("https://getmuster.io")

Firecrawl trace example in Muster

See also