Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mike dupont committed Jan 2, 2025
1 parent f96f2c8 commit 46412e8
Show file tree
Hide file tree
Showing 58 changed files with 2,723 additions and 55 deletions.
28 changes: 17 additions & 11 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,39 +26,45 @@
"@elizaos/client-discord": "workspace:*",
"@elizaos/client-farcaster": "workspace:*",
"@elizaos/client-lens": "workspace:*",
"@elizaos/client-slack": "workspace:*",
"@elizaos/client-telegram": "workspace:*",
"@elizaos/client-twitter": "workspace:*",
"@elizaos/client-slack": "workspace:*",
"@elizaos/core": "workspace:*",
"@elizaos/plugin-0g": "workspace:*",
"@elizaos/plugin-3d-generation": "workspace:*",
"@elizaos/plugin-abstract": "workspace:*",
"@elizaos/plugin-aptos": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@elizaos/plugin-bootstrap": "workspace:*",
"@elizaos/plugin-intiface": "workspace:*",
"@elizaos/plugin-coinbase": "workspace:*",
"@elizaos/plugin-conflux": "workspace:*",
"@elizaos/plugin-cronoszkevm": "workspace:*",
"@elizaos/plugin-evm": "workspace:*",
"@elizaos/plugin-flow": "workspace:*",
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-gitbook": "workspace:*",
"@elizaos/plugin-story": "workspace:*",
"@elizaos/plugin-goat": "workspace:*",
"@elizaos/plugin-icp": "workspace:*",
"@elizaos/plugin-image-generation": "workspace:*",
"@elizaos/plugin-intiface": "workspace:*",
"@elizaos/plugin-multiversx": "workspace:*",
"@elizaos/plugin-near": "workspace:*",
"@elizaos/plugin-nft-generation": "workspace:*",
"@elizaos/plugin-node": "workspace:*",
"@elizaos/plugin-solana": "workspace:*",
"@elizaos/plugin-starknet": "workspace:*",
"@elizaos/plugin-ton": "workspace:*",
"@elizaos/plugin-story": "workspace:*",
"@elizaos/plugin-sui": "workspace:*",
"@elizaos/plugin-tee": "workspace:*",
"@elizaos/plugin-multiversx": "workspace:*",
"@elizaos/plugin-near": "workspace:*",
"@elizaos/plugin-zksync-era": "workspace:*",
"@elizaos/plugin-ton": "workspace:*",
"@elizaos/plugin-twitter": "workspace:*",
"@elizaos/plugin-cronoszkevm": "workspace:*",
"@elizaos/plugin-3d-generation": "workspace:*",
"@elizaos/plugin-fuel": "workspace:*",
"@elizaos/plugin-avalanche": "workspace:*",
"@elizaos/plugin-zksync-era": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"readline": "1.3.0",
"ws": "8.18.0",
"yargs": "17.7.2"
Expand Down
45 changes: 45 additions & 0 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
//import * from "./otelapis";
/*instrumentation.ts*/
import { NodeSDK } from '@opentelemetry/sdk-node';
import { ConsoleSpanExporter } from '@opentelemetry/sdk-trace-node';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { PeriodicExportingMetricReader, ConsoleMetricExporter,} from '@opentelemetry/sdk-metrics';

import * as opentelemetry from '@opentelemetry/api';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { ZipkinExporter } from '@opentelemetry/exporter-zipkin';

//Specify zipkin url. default url is http://localhost:9411/api/v2/spans
const zipkinUrl = 'http://localhost';
const zipkinPort = '9411';
const zipkinPath = '/api/v2/spans';
const zipkinURL = `${zipkinUrl}:${zipkinPort}${zipkinPath}`;

const options = {
headers: {
'module': 'mainai16z',
},
url: zipkinURL,
//serviceName: 'your-application-name',

// optional interceptor
getExportRequestHeaders: () => {
return {
'module': 'mainai16z',
}
}
}
const traceExporter_zipkin = new ZipkinExporter(options);
// parts from https://stackoverflow.com/questions/71654897/opentelemetry-typescript-project-zipkin-exporter

const sdk = new NodeSDK({
//traceExporter: new ConsoleSpanExporter(),
traceExporter: traceExporter_zipkin,
metricReader: new PeriodicExportingMetricReader({
exporter: new ConsoleMetricExporter(),
}),
instrumentations: [getNodeAutoInstrumentations()],
});

sdk.start();

import { PostgresDatabaseAdapter } from "@elizaos/adapter-postgres";
import { SqliteDatabaseAdapter } from "@elizaos/adapter-sqlite";
import { AutoClientInterface } from "@elizaos/client-auto";
Expand Down
6 changes: 6 additions & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
},
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@radix-ui/react-dialog": "1.1.2",
"@radix-ui/react-separator": "1.1.0",
"@radix-ui/react-slot": "1.1.0",
Expand Down
45 changes: 45 additions & 0 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,49 @@
/*instrumentation.ts*/
import { NodeSDK } from '@opentelemetry/sdk-node';
import { ConsoleSpanExporter } from '@opentelemetry/sdk-trace-node';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
import { PeriodicExportingMetricReader, ConsoleMetricExporter,} from '@opentelemetry/sdk-metrics';

import * as opentelemetry from '@opentelemetry/api';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { ZipkinExporter } from '@opentelemetry/exporter-zipkin';

//Specify zipkin url. default url is http://localhost:9411/api/v2/spans
const zipkinUrl = 'http://localhost';
const zipkinPort = '9411';
const zipkinPath = '/api/v2/spans';
const zipkinURL = `${zipkinUrl}:${zipkinPort}${zipkinPath}`;

const options = {
headers: {
'module': 'mainai16z',
},
url: zipkinURL,
//serviceName: 'your-application-name',

// optional interceptor
getExportRequestHeaders: () => {
return {
'module': 'mainai16z',
}
}
}
const traceExporter_zipkin = new ZipkinExporter(options);
// parts from https://stackoverflow.com/questions/71654897/opentelemetry-typescript-project-zipkin-exporter

const sdk = new NodeSDK({
//traceExporter: new ConsoleSpanExporter(),
traceExporter: traceExporter_zipkin,
metricReader: new PeriodicExportingMetricReader({
exporter: new ConsoleMetricExporter(),
}),
instrumentations: [getNodeAutoInstrumentations()],
});

sdk.start();

import "./App.css";
//import "./otelapis";
import Agents from "./Agents";

function App() {
Expand Down
6 changes: 6 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/theme-mermaid": "3.6.3",
"@mdx-js/react": "3.0.1",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"clsx": "2.1.1",
"docusaurus-lunr-search": "3.5.0",
"dotenv": "^16.4.7",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/pg": "8.11.10",
"pg": "8.13.1"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"ioredis": "5.4.2"
},
"devDependencies": {
Expand Down
8 changes: 7 additions & 1 deletion packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/better-sqlite3": "7.6.12",
"better-sqlite3": "11.6.0",
"better-sqlite3": "11.7.0",
"sqlite-vec": "0.1.6"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-sqljs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/sql.js": "1.4.9",
"sql.js": "1.12.0",
"uuid": "11.0.3"
Expand Down
6 changes: 6 additions & 0 deletions packages/adapter-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@supabase/supabase-js": "2.46.2"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/client-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/body-parser": "1.19.5",
"@types/cors": "2.8.17",
"@types/express": "5.0.0",
Expand Down
10 changes: 8 additions & 2 deletions packages/client-direct/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"dependencies": {
"@elizaos/core": "workspace:*",
"@elizaos/plugin-image-generation": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/body-parser": "1.19.5",
"@types/cors": "2.8.17",
"@types/express": "5.0.0",
Expand All @@ -17,8 +23,8 @@
"multer": "1.4.5-lts.1"
},
"devDependencies": {
"tsup": "8.3.5",
"@types/multer": "^1.4.12"
"@types/multer": "^1.4.12",
"tsup": "8.3.5"
},
"scripts": {
"build": "tsup --format esm --dts",
Expand Down
10 changes: 8 additions & 2 deletions packages/client-discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
"type": "module",
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@elizaos/plugin-node": "workspace:*",
"@discordjs/opus": "github:discordjs/opus",
"@discordjs/rest": "2.4.0",
"@discordjs/voice": "0.17.0",
"@elizaos/core": "workspace:*",
"@elizaos/plugin-node": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"discord.js": "14.16.3",
"libsodium-wrappers": "0.7.15",
"prism-media": "1.3.5",
Expand Down
8 changes: 7 additions & 1 deletion packages/client-farcaster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@neynar/nodejs-sdk": "^2.0.3"
"@neynar/nodejs-sdk": "^2.0.3",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0"
},
"devDependencies": {
"tsup": "^8.3.5"
Expand Down
6 changes: 6 additions & 0 deletions packages/client-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"@elizaos/core": "workspace:*",
"@octokit/rest": "20.1.1",
"@octokit/types": "12.6.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"glob": "10.4.5",
"simple-git": "3.27.0"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/client-lens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"@elizaos/core": "workspace:*",
"@lens-protocol/client": "2.2.0",
"@lens-protocol/metadata": "1.2.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"axios": "^1.7.9"
},
"devDependencies": {
Expand Down
6 changes: 6 additions & 0 deletions packages/client-slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"dependencies": {
"@elizaos/core": "workspace:*",
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@slack/events-api": "^3.0.1",
"@slack/web-api": "^6.8.1",
"body-parser": "^1.20.2",
Expand Down
6 changes: 6 additions & 0 deletions packages/client-telegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@telegraf/types": "7.1.0",
"telegraf": "4.16.3",
"zod": "3.23.8"
Expand Down
6 changes: 6 additions & 0 deletions packages/client-twitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"types": "dist/index.d.ts",
"dependencies": {
"@elizaos/core": "workspace:*",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"agent-twitter-client": "0.0.18",
"glob": "11.0.0",
"zod": "3.23.8"
Expand Down
6 changes: 6 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@
"@ai-sdk/openai": "1.0.5",
"@anthropic-ai/sdk": "0.30.1",
"@fal-ai/client": "1.2.0",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-zipkin": "^1.30.0",
"@opentelemetry/sdk-metrics": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@types/uuid": "10.0.0",
"ai": "3.4.33",
"anthropic-vertex-ai": "1.0.2",
Expand Down
Loading

0 comments on commit 46412e8

Please sign in to comment.