Observability for Quarkus LangChain4j with Opik
Quarkus LangChain4j uses Quarkus OpenTelemetry configuration in application.properties.
When this guide applies
Use this if your app is Quarkus + LangChain4j and you want OTEL traces to land in Opik.
Opik OTLP endpoint modes
For full endpoint/header details, see Opik OpenTelemetry overview.
- Cloud endpoint:
https://www.comet.com/opik/api/v1/private/otel - Enterprise endpoint:
https://<comet-deployment-url>/opik/api/v1/private/otel - Self-hosted endpoint:
http://localhost:5173/api/v1/private/otel
Example (application.properties)
Intent: Configure Quarkus OTEL trace exporter to target Opik directly.
Applies when: You are using Quarkus-native OTEL exporter settings.
Required fields:
quarkus.otel.enabled=truequarkus.otel.traces.enabled=truequarkus.otel.exporter.otlp.traces.endpointquarkus.otel.exporter.otlp.traces.protocol=http/protobuf
Optional fields:
quarkus.otel.exporter.otlp.traces.headers(projectNamestrongly recommended)quarkus.application.name(forservice.nameattribution)
Minimal valid setup:
Validation
- Start your Quarkus app with OTEL enabled.
- Trigger a LangChain4j-backed endpoint/action.
- Confirm spans with your configured
service.nameand project headers arrive in Opik.