From eb6502fd485cebc791fdb32ea9d50d407d2d6875 Mon Sep 17 00:00:00 2001 From: "samuel.ochsner" Date: Mon, 17 Jun 2024 22:13:59 +0200 Subject: [PATCH] chore: Update npm dependencies and add Azure Monitor instrumentation --- src/next.config.js | 2 +- src/package-lock.json | 34 +++++++++++++++++++--------------- src/package.json | 2 +- 3 files changed, 21 insertions(+), 17 deletions(-) diff --git a/src/next.config.js b/src/next.config.js index dee49b7f9..f82dfa9af 100644 --- a/src/next.config.js +++ b/src/next.config.js @@ -2,7 +2,7 @@ const nextConfig = { output: "standalone", experimental: { - serverComponentsExternalPackages: ["@azure/storage-blob"], + serverComponentsExternalPackages: ["@azure/storage-blob", "@azure/monitor-opentelemetry", "@opentelemetry/api", "@opentelemetry/instrumentation"], instrumentationHook: true, } }; diff --git a/src/package-lock.json b/src/package-lock.json index 228090981..6333bbfa6 100644 --- a/src/package-lock.json +++ b/src/package-lock.json @@ -2891,21 +2891,15 @@ "@types/node": "*" } }, - "node_modules/@types/hast": { - "version": "2.3.10", - "license": "MIT", - "dependencies": { - "@types/unist": "^2" - } - }, "node_modules/@types/json5": { "version": "0.0.29", "dev": true, "license": "MIT" }, "node_modules/@types/linkify-it": { - "version": "3.0.5", - "license": "MIT", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", "optional": true }, "node_modules/@types/markdown-it": { @@ -3000,10 +2994,6 @@ "version": "1.3.5", "license": "MIT" }, - "node_modules/@types/unist": { - "version": "2.0.10", - "license": "MIT" - }, "node_modules/@types/webrtc": { "version": "0.0.37", "license": "MIT" @@ -5133,6 +5123,19 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/hastscript/node_modules/@types/hast": { + "version": "2.3.10", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.10.tgz", + "integrity": "sha512-McWspRw8xx8J9HurkVBfYj0xKoE25tOFlHGdx4MJ5xORQrMGZNqJhVQWaIbm6Oyla5kYOXtDiopzKRJzEOkwJw==", + "dependencies": { + "@types/unist": "^2" + } + }, + "node_modules/hastscript/node_modules/@types/unist": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.10.tgz", + "integrity": "sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==" + }, "node_modules/highlight.js": { "version": "10.7.3", "license": "BSD-3-Clause", @@ -8298,8 +8301,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "7.5.9", - "license": "MIT", + "version": "7.5.10", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "engines": { "node": ">=8.3.0" }, diff --git a/src/package.json b/src/package.json index 03bbdecda..2c985ec6b 100644 --- a/src/package.json +++ b/src/package.json @@ -20,10 +20,10 @@ "@markdoc/markdoc": "^0.4.0", "@microsoft/applicationinsights-react-js": "^17.2.0", "@microsoft/applicationinsights-web": "^3.2.2", + "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation": "^0.52.0", "@opentelemetry/instrumentation-http": "^0.52.0", "@opentelemetry/sdk-node": "^0.52.0", - "@opentelemetry/api": "^1.9.0", "@radix-ui/react-accordion": "^1.1.2", "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-context-menu": "^2.1.5",