Skip to content

Commit

Permalink
Update tools to include tinyhttp (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonswine authored Dec 16, 2024
1 parent ba94b1a commit 6223316
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
19 changes: 10 additions & 9 deletions examples/language-sdk-instrumentation/nodejs/tinyhttp/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,27 @@
# 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"
p-limit "^3.1.0"
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"

Expand Down
2 changes: 1 addition & 1 deletion tools/update_examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 6223316

Please sign in to comment.