|
1 |
| -console.log("hello sfm"); |
| 1 | +//console.log("hello sfm"); |
2 | 2 | //import { debug_tracing } from "./mytracing";
|
3 | 3 | //debug_tracing()
|
4 | 4 | // tracing.js
|
5 | 5 | console.log("DEBUG SOLFUNMEME")
|
6 | 6 |
|
7 |
| - |
8 |
| -// // do not set headers in exporterOptions, the OTel spec recommends setting headers through ENV variables |
9 |
| -// // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specifying-headers-via-environment-variables |
10 |
| - |
11 |
| -// const exporterOptions = { |
12 |
| -// url: 'https://ingest.us.signoz.cloud:443/v1/traces' |
13 |
| -// } |
14 |
| - |
15 |
| -// const traceExporter = new OTLPTraceExporter(exporterOptions); |
16 |
| -// const sdk = new opentelemetry.NodeSDK({ |
17 |
| -// traceExporter, |
18 |
| -// instrumentations: [getNodeAutoInstrumentations()], |
19 |
| -// resource: new Resource({ |
20 |
| -// [SemanticResourceAttributes.SERVICE_NAME]: 'eliza' |
21 |
| -// }) |
22 |
| -// }); |
23 |
| - |
24 |
| -// // initialize the SDK and register with the OpenTelemetry API |
25 |
| -// // this enables the API to record telemetry |
26 |
| -// sdk.start() |
27 |
| - |
28 |
| -// // gracefully shut down the SDK on process exit |
29 |
| -// process.on('SIGTERM', () => { |
30 |
| -// sdk.shutdown() |
31 |
| -// .then(() => console.log('Tracing terminated')) |
32 |
| -// .catch((error) => console.log('Error terminating tracing', error)) |
33 |
| -// .finally(() => process.exit(0)); |
34 |
| -// }); |
35 |
| - |
36 |
| -// export function debug_tracing():string { |
37 |
| -// console.log("tracing on") |
38 |
| -// return "hello" |
39 |
| -// } |
40 |
| - |
41 |
| -console.log("hello tracing"); |
42 | 7 | import { DirectClient } from "@elizaos/client-direct";
|
| 8 | +import { TwitterClient } from "@elizaos-plugins/client-twitter"; |
| 9 | +console.log("TwitterClient",TwitterClient) |
43 | 10 | import {
|
44 | 11 | AgentRuntime,
|
45 | 12 | CacheManager,
|
@@ -557,6 +524,9 @@ export async function initializeClients(
|
557 | 524 | elizaLogger.debug(
|
558 | 525 | `Initializing client: ${client.name}`
|
559 | 526 | );
|
| 527 | + |
| 528 | + console.log("DEBUG",client); |
| 529 | + |
560 | 530 | clients.push(startedClient);
|
561 | 531 | }
|
562 | 532 | }
|
@@ -716,6 +686,7 @@ async function startAgent(
|
716 | 686 | // start assigned clients
|
717 | 687 | runtime.clients = await initializeClients(character, runtime);
|
718 | 688 |
|
| 689 | + TwitterClient.registerAgent(runtime); |
719 | 690 | // add to container
|
720 | 691 | directClient.registerAgent(runtime);
|
721 | 692 |
|
|
0 commit comments