Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Oct 16, 2024
1 parent ad28001 commit 9d68a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/dd-trace/src/llmobs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const { storage } = require('../../../datadog-core')
const { channel } = require('dc-polyfill')
const injectCh = channel('dd-trace:span:inject')

// this is where we will enable and disable LLMObs plugins
function enable (config) {
injectCh.subscribe(handleLLMObsParentIdInjection)
}
Expand Down
7 changes: 3 additions & 4 deletions packages/dd-trace/test/llmobs/sdk/integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ describe('end to end sdk integration tests', () => {
EvalMetricsWriter.prototype.append.resetHistory()

process.removeAllListeners('beforeExit')

llmobs.disable()
llmobs.enable({ mlApp: 'test', apiKey: 'test' })
})

after(() => {
Expand Down Expand Up @@ -242,10 +245,6 @@ describe('end to end sdk integration tests', () => {
]

check(expected, llmobsSpans)

// restore original mlApp
llmobs.disable()
llmobs.enable({ mlApp: 'test' })
})

it('submits evaluations', () => {
Expand Down

0 comments on commit 9d68a0c

Please sign in to comment.