Skip to content

Commit

Permalink
chore: Revert "remove tracing for chat requests" (Issue #415) (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar authored Jan 4, 2024
1 parent 0ee18c7 commit ab0b0ae
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/opentelemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,7 @@ const sdk = new NodeSDK({
[SemanticResourceAttributes.SERVICE_VERSION]: pkg.version,
}),
),
instrumentations: [
new HttpInstrumentation({
ignoreOutgoingRequestHook: (request) =>
!!request.path?.match(
/^\/+openai\/deployments\/([-.@a-zA-Z0-9]+)\/(completions|chat\/completions|embeddings)/,
),
}),
],
instrumentations: [new HttpInstrumentation()],
spanProcessor,
});
sdk.start();

0 comments on commit ab0b0ae

Please sign in to comment.