Skip to content

Commit

Permalink
Merge pull request #29 from instana/co-traceloop
Browse files Browse the repository at this point in the history
Collect metrics from Traceloop instrumentation
  • Loading branch information
jinsongo authored May 8, 2024
2 parents 2765a09 + b8b59d2 commit 9a0aa6b
Show file tree
Hide file tree
Showing 24 changed files with 559 additions and 333 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ODCD (OpenTelemetry based Data Collector for Telemetry Data) is a collection of
### Requirements
- Data Collectors for Host **Java 8+**
- Data Collectors for Databases **Java 8+**
- Data Collectors for AI **Java 11+**
- Data Collectors for LLM **Java 11+**

## Build & Installation

Expand All @@ -38,11 +38,11 @@ cd otel-dc/host
```bash
cd otel-dc/rdb
```
- Data Collectors for AI
- Data Collectors for LLM
```bash
cd otel-dc/ai
cd otel-dc/llm
```
3) Build with Gradle
1) Build with Gradle
```bash
./gradlew clean build
```
Expand Down Expand Up @@ -115,17 +115,17 @@ export JAVA_OPTS=-Dconfig/logging.properties
nohup bin/otel-dc-host > /dev/null 2>&1 &
```

- **ai**
- **llm**
```bash
export DC_CONFIG=config/config.yaml
export JAVA_OPTS=-Dconfig/logging.properties
bin/otel-dc-ai
bin/otel-dc-llm
```
Or run Data Collector in background
```bash
export DC_CONFIG=config/config.yaml
export JAVA_OPTS=-Dconfig/logging.properties
nohup bin/otel-dc-ai > /dev/null 2>&1 &
nohup bin/otel-dc-llm > /dev/null 2>&1 &
```

*Note:*
Expand Down
9 changes: 0 additions & 9 deletions ai/config/config.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions ai/settings.gradle

This file was deleted.

237 changes: 0 additions & 237 deletions ai/src/main/java/com/instana/dc/ai/impl/llm/LLMDc.java

This file was deleted.

2 changes: 1 addition & 1 deletion ai/CHANGELOG.md → llm/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Changelog
==========

## Version 0.0.1
## Version 1.0.0
18 changes: 7 additions & 11 deletions ai/README.md → llm/DEVELOP.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ODCAI (OTel based Data Collector for AI)
# ODCL (OTel based Data Collector for LLM)

**[Semantic Convention](docs/semconv)** |
**[Support](docs/support/README.md)** |
Expand All @@ -7,7 +7,7 @@
**[License](LICENSE)**

---
ODCAI (OTel based Data Collector for AI) is the tool or template to generate OpenTelemetry metrics for various
ODCL (OTel based Data Collector for LLM) is the tool or template to generate OpenTelemetry metrics for various
LLM and LLM Applications. All implementation are based on predefined OpenTelemetry Semantic Conventions.

## Requirements
Expand All @@ -24,7 +24,7 @@ java -version
2) Get the source code from `github.ibm.com`.
```bash
git clone https://github.ibm.com/instana-llmetry/otel-dc.git
cd otel-dc/ai
cd otel-dc/llm
```

3) Build with Gradle
Expand All @@ -33,7 +33,7 @@ cd otel-dc/ai
```
*Note: gradle 7.4 will be installed if you do not have it.*

## Run ODCAI
## Run ODCL

1) Make sure code is built with Java SDK 11+.

Expand All @@ -48,17 +48,13 @@ cd otel-dc/ai
```
1) Option-2: Extract deployment package generated by gradle:
```bash
tar vxf otel-dc-ai-*.tar
cd otel-dc-ai-*
tar vxf otel-dc-llm-*.tar
cd otel-dc-llm-*
```

Then, user can create the proper configuration files:
- config/config.yaml
- config/logging.properties

Run the Data Collector with following command according to your current OS:
- bin/odcai

## Create a new data collector

Please refer to "[How to create a new data collector](docs/developer/new-llm.md)".
- bin/odcl
Loading

0 comments on commit 9a0aa6b

Please sign in to comment.