INNER CODE UNIT · C++

path

ClickHouse/ai-sdk-cpp · src/langfuse/tracer.cpp:215

  std::string path = s.base_path + kIngestionPath;
  auto res =
      s.client.Post(path.c_str(), s.headers, serialized, "application/json");

  if (!res) {
    ai::logger::log_error("Langfuse ingestion failed: {}",
                          httplib::to_string(res.error()));
    return false;
  }
  if (res->status >= 200 && res->status < 300) {
    ai::logger::log_debug("Langfuse ingestion accepted ({}): {}", res->status,
                          res->body);
    return true;
  }
  ai::logger::log_error("Langfuse ingestion non-2xx ({}): {}", res->status,
                        res->body);
  return false;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…