Skip to content

Commit

Permalink
Update Azure Functions operation name to azure.functions.invoke (#4914)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpharvey authored Nov 25, 2024
1 parent d3b9b3a commit 7571290
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/datadog-instrumentations/src/azure-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const {
const shimmer = require('../../datadog-shimmer')
const dc = require('dc-polyfill')

const azureFunctionsChannel = dc.tracingChannel('datadog:azure-functions:invoke')
const azureFunctionsChannel = dc.tracingChannel('datadog:azure:functions:invoke')

addHook({ name: '@azure/functions', versions: ['>=4'] }, azureFunction => {
const { app } = azureFunction
Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-plugin-azure-functions/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class AzureFunctionsPlugin extends TracingPlugin {
static get kind () { return 'server' }
static get type () { return 'serverless' }

static get prefix () { return 'tracing:datadog:azure-functions:invoke' }
static get prefix () { return 'tracing:datadog:azure:functions:invoke' }

bindStart (ctx) {
const { functionName, methodName } = ctx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('esm', () => {
assert.strictEqual(payload.length, 1)
assert.isArray(payload[0])
assert.strictEqual(payload[0].length, 1)
assert.propertyVal(payload[0][0], 'name', 'azure-functions.invoke')
assert.propertyVal(payload[0][0], 'name', 'azure.functions.invoke')
})
}).timeout(50000)
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { identityService } = require('../util')
const serverless = {
server: {
'azure-functions': {
opName: () => 'azure-functions.invoke',
opName: () => 'azure.functions.invoke',
serviceName: identityService
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const { identityService } = require('../util')
const serverless = {
server: {
'azure-functions': {
opName: () => 'azure-functions.invoke',
opName: () => 'azure.functions.invoke',
serviceName: identityService
}
}
Expand Down

0 comments on commit 7571290

Please sign in to comment.