{"repo":"langfuse/langfuse-java","free":true,"listed":false,"github":"https://github.com/langfuse/langfuse-java","clone":"git clone https://github.com/langfuse/langfuse-java.git","description":"🪢 Auto-generated Java Client for Langfuse API","language":"Java","stars":72,"topics":["analytics","java","langfuse","large-language-models","llm","llm-observability","llmops","monitoring","observability","open-source"],"license":"MIT","category":"analytics","readme_excerpt":"langfuse-java This repository contains an auto-generated Langfuse API client for Java based on our API specification. See the Langfuse API reference for more details on the available endpoints. Note: We recommend to solve tracing via the OpenTelemetry Instrumentation instead of using the Ingestion API directly. You can use the OpenTelemetry Java SDK and export spans to the Langfuse OTel endpoint. This allows for a more detailed and standardized tracing experience without the need to handle batching and updates internally. Check out our Spring AI Example for more details. Installation The recommended way to install the langfuse-java API client is via Maven Central: Usage Instantiate the Langfuse Client with the respective endpoint and your API Keys. An async client is also available via AsyncLangfuseClient.builder() with the same configuration options. Make requests using the clients: Testing Unit tests Unit tests (deserialization, query string mapping) run without any credentials: Integration tests Integration tests connect to a real Langfuse project. They require credentials and are excluded from mvn test . 1. Copy .env.example to .env and fill in your API keys: 2. Ensure your Langfuse project contains the following prompts: - test-chat-prompt — chat type, at least one message with role and content - test-text-prompt — text type, non-empty prompt text 3. Run all tests (unit + integration): Or run only integration tests: Integration tests skip gracefully when credentials are ","default_branch":null,"files":null,"tree":[],"storefront":"/r/langfuse","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/langfuse/langfuse-java/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}