From 6223316dbc7ae773dafd9410089f3ccf6ffa53a6 Mon Sep 17 00:00:00 2001 From: Christian Simon Date: Mon, 16 Dec 2024 17:20:03 +0000 Subject: [PATCH] Update tools to include tinyhttp (#3784) --- .../nodejs/tinyhttp/package.json | 2 +- .../nodejs/tinyhttp/yarn.lock | 19 ++++++++++--------- tools/update_examples.go | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/examples/language-sdk-instrumentation/nodejs/tinyhttp/package.json b/examples/language-sdk-instrumentation/nodejs/tinyhttp/package.json index 9adec12261..7616c1eecf 100644 --- a/examples/language-sdk-instrumentation/nodejs/tinyhttp/package.json +++ b/examples/language-sdk-instrumentation/nodejs/tinyhttp/package.json @@ -14,7 +14,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "@pyroscope/nodejs": "^0.4.0", + "@pyroscope/nodejs": "v0.4.2", "@tinyhttp/app": "^2.4.0", "@tinyhttp/logger": "^2.0.0" } diff --git a/examples/language-sdk-instrumentation/nodejs/tinyhttp/yarn.lock b/examples/language-sdk-instrumentation/nodejs/tinyhttp/yarn.lock index 444c708077..48681f2831 100644 --- a/examples/language-sdk-instrumentation/nodejs/tinyhttp/yarn.lock +++ b/examples/language-sdk-instrumentation/nodejs/tinyhttp/yarn.lock @@ -2,10 +2,10 @@ # yarn lockfile v1 -"@datadog/pprof@^5.3.0": - version "5.3.0" - resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.3.0.tgz#c2f58d328ecced7f99887f1a559d7fe3aecb9219" - integrity sha512-53z2Q3K92T6Pf4vz4Ezh8kfkVEvLzbnVqacZGgcbkP//q0joFzO8q00Etw1S6NdnCX0XmX08ULaF4rUI5r14mw== +"@datadog/pprof@^5.4.1": + version "5.4.1" + resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.4.1.tgz#08c9bcf5d8efb2eeafdfc9f5bb5402f79fb41266" + integrity sha512-IvpL96e/cuh8ugP5O8Czdup7XQOLHeIDgM5pac5W7Lc1YzGe5zTtebKFpitvb1CPw1YY+1qFx0pWGgKP2kOfHg== dependencies: delay "^5.0.0" node-gyp-build "<4.0" @@ -13,15 +13,16 @@ pprof-format "^2.1.0" source-map "^0.7.4" -"@pyroscope/nodejs@^0.4.0": - version "0.4.0" - resolved "https://registry.yarnpkg.com/@pyroscope/nodejs/-/nodejs-0.4.0.tgz#913bfdeb764462fb46d8f6defabd682631c21542" - integrity sha512-To75AyiEr7eS74fLXZUDlSHAWuOfBh/euL3JvYK376WoubtoaafPLzSgK/7XtWxYk+7ogjYQYpnuFk9/w+cgXA== +"@pyroscope/nodejs@v0.4.2": + version "0.4.2" + resolved "https://registry.yarnpkg.com/@pyroscope/nodejs/-/nodejs-0.4.2.tgz#1c61238dd8825aab57f66c7064ed2a9db422dc69" + integrity sha512-qqLJGLfs45enyJPwMoaTc9vakjxYZX/hxBHsD3jUVJEifDIsgVcm2jvqyBTZuiYRBt9O0MYPeSPoNnkUD3mHfQ== dependencies: - "@datadog/pprof" "^5.3.0" + "@datadog/pprof" "^5.4.1" axios "^0.28.0" debug "^4.3.3" form-data "^4.0.0" + p-limit "^3.1.0" regenerator-runtime "^0.13.11" source-map "^0.7.3" diff --git a/tools/update_examples.go b/tools/update_examples.go index eede77dd5a..7a734ec7c4 100644 --- a/tools/update_examples.go +++ b/tools/update_examples.go @@ -60,7 +60,7 @@ func updateNodeJS() { replPackageJson := fmt.Sprintf(` "@pyroscope/nodejs": "v%s",`, last.version()) rePackageJson := regexp.MustCompile(` "@pyroscope/nodejs": "[^"]+",`) - for _, x := range []string{"express", "express-pull", "express-ts", "express-ts-inline"} { + for _, x := range []string{"express", "express-pull", "express-ts", "express-ts-inline", "tinyhttp"} { path := filepath.Join("examples/language-sdk-instrumentation/nodejs", x) replaceInplace(rePackageJson, filepath.Join(path, "package.json"), replPackageJson) s.sh(fmt.Sprintf(`cd "%s" && yarn`, path))