AgentOps-AI / AgentOps-AI/agentops-ts

Fix trace processor registration upstream in OpenAI Agents

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
10
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The documentation states that we should call `addTraceProcessor` to register a new processor, but it does not work. Instead, we use this workaround and reference the global trace provider directly.

```ts
// this is the official method for registering a trace processor, but it
// does not work.
// addTraceProcessor(processor);

// instead, we get a reference to the global trace provider and register it directly.
const { getGlobalTraceProvider } = moduleExports;
const globalProvider = getGlobalTraceProvider();
globalProvider.registerProcessor(processor);
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.