Skip to content

Commit 9b24b9a

Browse files
authored
chore(llmobs): add enable and disable debug logs (#5987)
* add enablement/disable logs
1 parent 4349e82 commit 9b24b9a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dd-trace/src/llmobs/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const LLMObsTagger = require('./tagger')
2222
const LLMObsSpanWriter = require('./writers/spans')
2323
const { setAgentStrategy } = require('./writers/util')
2424

25+
const util = require('node:util')
26+
2527
/**
2628
* Setting writers and processor globally when LLMObs is enabled
2729
* We're setting these in this module instead of on the SDK.
@@ -75,6 +77,7 @@ function enable (config) {
7577
spanWriter?.setAgentless(useAgentless)
7678

7779
telemetry.recordLLMObsEnabled(startTime, config)
80+
log.debug(`[LLMObs] Enabled LLM Observability with configuration: ${util.inspect(config.llmobs)}`)
7881
})
7982
}
8083

@@ -90,6 +93,8 @@ function disable () {
9093

9194
spanWriter = null
9295
evalWriter = null
96+
97+
log.debug('[LLMObs] Disabled LLM Observability')
9398
}
9499

95100
// since LLMObs traces can extend between services and be the same trace,

0 commit comments

Comments
 (0)