17 lines
502 B
TypeScript
17 lines
502 B
TypeScript
import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
|
|
import { emptyPluginConfigSchema } from "clawdbot/plugin-sdk";
|
|
|
|
import { createDiagnosticsOtelService } from "./src/service.js";
|
|
|
|
const plugin = {
|
|
id: "diagnostics-otel",
|
|
name: "Diagnostics OpenTelemetry",
|
|
description: "Export diagnostics events to OpenTelemetry",
|
|
configSchema: emptyPluginConfigSchema(),
|
|
register(api: ClawdbotPluginApi) {
|
|
api.registerService(createDiagnosticsOtelService());
|
|
},
|
|
};
|
|
|
|
export default plugin;
|