We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07cfcc4 commit 1cbe900Copy full SHA for 1cbe900
packages/datadog-plugin-azure-functions/src/index.js
@@ -1,5 +1,6 @@
1
'use strict'
2
3
+const { http } = require('../../dd-trace/src/plugins')
4
const TracingPlugin = require('../../dd-trace/src/plugins/tracing')
5
const web = require('../../dd-trace/src/plugins/util/web')
6
@@ -35,7 +36,7 @@ class AzureFunctionsPlugin extends TracingPlugin {
35
36
const path = (new URL(httpRequest.url)).pathname
37
const req = {
38
method: httpRequest.method,
- headers: httpRequest.headers,
39
+ headers: Object.fromEntries(httpRequest.headers),
40
url: path,
41
}
42
// Patch the request to create web context
0 commit comments