Skip to content

Commit

Permalink
feat(openai): add Rollbar environment tags to OpenAI observer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jan 15, 2025
1 parent decb182 commit 252a454
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { observeOpenAI } from 'langfuse';
const openai = observeOpenAI(
new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
}),
{
tags: [process.env.ROLLBAR_ENV],
}
);

export default openai;

0 comments on commit 252a454

Please sign in to comment.