Skip to content

Commit

Permalink
Enabled Telemetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Buhake Sindi committed Dec 14, 2024
1 parent da182a5 commit 2711775
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
26 changes: 26 additions & 0 deletions examples/liberty-car-booking/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@
<scope>provided</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-api -->
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
<version>1.44.1</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
<version>2.10.0</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>io.smallrye.llm</groupId>
<artifactId>smallrye-llm-langchain4j-config-mpconfig</artifactId>
Expand Down Expand Up @@ -119,6 +134,17 @@
<type>pom</type>
</dependency>

<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
</dependency>

<!-- https://mvnrepository.com/artifact/io.opentelemetry.instrumentation/opentelemetry-instrumentation-annotations -->
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-annotations</artifactId>
</dependency>

<dependency>
<groupId>io.smallrye.llm</groupId>
<artifactId>smallrye-llm-langchain4j-config-mpconfig</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<webApplication location="${project.name}.war" contextRoot="/">
<appProperties>
<property name="app.docs-for-rag.dir" value="${docragdir}"/>
<property name="app.docs-for-rag.dir" value="${docragdir}" />
</appProperties>

<!-- enable visibility to third party apis -->
Expand All @@ -18,5 +18,9 @@
<applicationMonitor updateTrigger="mbean" /><!-- Or "disabled. This is required since liberty-maven-plugin causes the application to deploy twice in dev mode. -->

<mpMetrics authentication="false"/>
<mpTelemetry source="message, trace, ffdc"/>

<!--
<logging consoleLogLevel="INFO"/>
</server>
-->
</server>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ fraud.memory.max.messages=20
# Location of documents to RAG
app.docs-for-rag.dir=docs-for-rag

# Micrprofile Telemetry
otel.service.name=liberty-car-booking
otel.sdk.disabled=false
otel.service.name=api
#otel.traces.exporter=otlp
otel.logs.exporter=otlp,console
otel.metrics.exporter=otlp,console
otel.traces.exporter=otlp,console

0 comments on commit 2711775

Please sign in to comment.