Skip to content

Commit 1cbe900

Browse files
committed
re add object.fromentries
1 parent 07cfcc4 commit 1cbe900

File tree

1 file changed

+2
-1
lines changed
  • packages/datadog-plugin-azure-functions/src

1 file changed

+2
-1
lines changed

packages/datadog-plugin-azure-functions/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
'use strict'
22

3+
const { http } = require('../../dd-trace/src/plugins')
34
const TracingPlugin = require('../../dd-trace/src/plugins/tracing')
45
const web = require('../../dd-trace/src/plugins/util/web')
56

@@ -35,7 +36,7 @@ class AzureFunctionsPlugin extends TracingPlugin {
3536
const path = (new URL(httpRequest.url)).pathname
3637
const req = {
3738
method: httpRequest.method,
38-
headers: httpRequest.headers,
39+
headers: Object.fromEntries(httpRequest.headers),
3940
url: path,
4041
}
4142
// Patch the request to create web context

0 commit comments

Comments
 (0)