Skip to content

Commit

Permalink
rename channel
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrenner committed Jan 27, 2025
1 parent 6b75f18 commit 9d723ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/datadog-instrumentations/src/aws-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function wrapRequest (send) {
function wrapDeserialize (deserialize, serviceIdentifier) {
return function (response) {
const channelSuffix = getChannelSuffix(serviceIdentifier)
const headersCh = channel(`apm:aws:headers:deserialize:${channelSuffix}`)
const headersCh = channel(`apm:aws:response:deserialize:${channelSuffix}`)

headersCh.publish({ headers: response.headers })

Expand Down
2 changes: 1 addition & 1 deletion packages/dd-trace/src/llmobs/plugins/bedrockruntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BedrockRuntimeLLMObsPlugin extends BaseLLMObsPlugin {
this.setLLMObsTags({ request, span, response, modelProvider, modelName })
})

this.addSub('apm:aws:headers:deserialize:bedrockruntime', ({ headers }) => {
this.addSub('apm:aws:response:deserialize:bedrockruntime', ({ headers }) => {
const requestId = headers['x-amzn-requestid']
const inputTokenCount = headers['x-amzn-bedrock-input-token-count']
const outputTokenCount = headers['x-amzn-bedrock-output-token-count']
Expand Down

0 comments on commit 9d723ef

Please sign in to comment.