Skip to content

Commit c44e50d

Browse files
committed
OCI APM Support with Traceloop library
OCI APM Support with Traceloop library
1 parent 93a40e7 commit c44e50d

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
548 KB
Loading
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: "LLM Observability with Oracle Cloud Infrastructure Application Performance Monitoring(APM) service"
3+
sidebarTitle: "OCI Application Performance Monitoring"
4+
---
5+
6+
<Frame>
7+
<img src="/img/integrations/ociapm-traceexplorer.png" />
8+
</Frame>
9+
10+
11+
[Oracle Cloud Infrastructure Application Performance Monitoring(APM) service](https://docs.oracle.com/en-us/iaas/application-performance-monitoring/home.htm) natively supports and can ingest OpenTelemetry (OTLP) spans and metrics. Traceloop's OpenLLMetry library enables instrumenting LLM frameworks and applications in Open Telemetry format and can be routed to OCI Application Performance Monitoring for observability and evaluation of LLM applications.
12+
13+
## Initialize and export directly from application code
14+
15+
```python
16+
APM_BASE_URL=<OCI APM dataUploadEndpoint>/20200101/opentelemetry/private"
17+
APM_DATA_KEY="datakey <OCI APM Private Data Key>"
18+
APM_SERVICE_NAME=“My LLM Service”
19+
20+
Traceloop.init(
21+
disable_batch=True,
22+
app_name=APM_SERVICE_NAME,
23+
api_endpoint=APM_BASE_URL,
24+
headers={
25+
"Authorization": APM_DATA_KEY
26+
}
27+
)
28+
```
29+
30+
## Initialize using environment variables
31+
32+
```bash
33+
export TRACELOOP_BASE_URL=<OCI APM dataUploadEndpoint>/20200101/opentelemetry/private
34+
export TRACELOOP_HEADERS="Authorization=dataKey <OCI APM Private Data Key>"
35+
```
36+
37+
## Using an OpenTelemetry Collector
38+
If you are using an OpenTelemetry Collector, you can route metrics and traces to OCI APM by simply adding an OTLP exporter to your collector configuration.
39+
40+
```yaml
41+
receivers:
42+
otlp:
43+
protocols:
44+
http:
45+
endpoint: 0.0.0.0:4318
46+
processors:
47+
batch:
48+
exporters:
49+
otlphttp/apm:
50+
endpoint: "<OCI APM dataUploadEndpoint>/20200101/opentelemetry/private"
51+
headers:
52+
"Authorization": "dataKey <OCI APM Private Data Key>"
53+
service:
54+
pipelines:
55+
traces:
56+
receivers: [otlp]
57+
processors: [batch]
58+
exporters: [otlphttp/apm]
59+
```
60+
61+
For more information check out the [docs link](https://docs.oracle.com/en-us/iaas/application-performance-monitoring/doc/configure-open-source-tracing-systems.html#GUID-4D941163-F357-4839-8B06-688876D4C61F).

0 commit comments

Comments
 (0)