Skip to content

Commit

Permalink
Upgrade pyroscope-nodejs to v0.2.9 (#3032)
Browse files Browse the repository at this point in the history
* Fix memory collection for express-pull example

* Upgrade pyroscope-nodejs to v0.2.9

* Remove unused dependencies after pr review
  • Loading branch information
simonswine committed Feb 29, 2024
1 parent 2a03044 commit a0cfe0f
Show file tree
Hide file tree
Showing 13 changed files with 1,047 additions and 592 deletions.
Expand Up @@ -2,8 +2,8 @@ FROM node:latest

WORKDIR /app

COPY package.json .
RUN npm install
COPY package.json yarn.lock .
RUN yarn install
COPY index.js .

ENV DEBUG=pyroscope
Expand Down
Expand Up @@ -26,4 +26,9 @@ pyroscope.scrape "default" {
{"__address__" = "ap-south:5000", "service_name"="nodejs"},
]
forward_to = [pyroscope.write.example.receiver]
profiling_config {
profile.memory { // disable memory, use godeltaprof_memory instead
path = "/debug/pprof/heap"
}
}
}
Expand Up @@ -8,7 +8,7 @@ services:
agent:
image: grafana/agent:latest
volumes:
- ./agent.config.river:/etc/agent-config/config.river
- ./agent.config.river:/etc/agent-config/config.river:ro
command:
- run
- /etc/agent-config/config.river
Expand Down
Expand Up @@ -11,8 +11,7 @@
"dependencies": {
"@pyroscope/nodejs": "^0.2.x",
"express": "^4.17.3",
"morgan": "^1.10.0",
"pprof": "^3.2.0"
"morgan": "^1.10.0"
},
"resolutions": {
"protobufjs": "^7.2.4"
Expand Down
270 changes: 184 additions & 86 deletions examples/language-sdk-instrumentation/nodejs/express-pull/yarn.lock

Large diffs are not rendered by default.

Expand Up @@ -2,7 +2,7 @@ FROM node:latest

WORKDIR /app

COPY package.json .
COPY package.json yarn.lock .
COPY tsconfig.json .
RUN yarn
COPY *.ts .
Expand Down
Expand Up @@ -11,10 +11,8 @@
"license": "Apache-2.0",
"dependencies": {
"@pyroscope/nodejs": "^0.2.x",
"axios": "^0.26.1",
"express": "^4.17.3",
"morgan": "^1.10.0",
"pprof": "^3.2.0",
"typescript": "^4.6.2"
},
"devDependencies": {
Expand Down
669 changes: 423 additions & 246 deletions examples/language-sdk-instrumentation/nodejs/express-ts/yarn.lock

Large diffs are not rendered by default.

Expand Up @@ -2,8 +2,8 @@ FROM node:latest

WORKDIR /app

COPY package.json .
RUN npm install
COPY package.json yarn.lock .
RUN yarn install
COPY index.js .

ENV DEBUG=pyroscope
Expand Down
Expand Up @@ -11,8 +11,7 @@
"dependencies": {
"@pyroscope/nodejs": "^0.2.x",
"express": "^4.17.3",
"morgan": "^1.10.0",
"pprof": "^3.2.0"
"morgan": "^1.10.0"
},
"resolutions": {
"protobufjs": "^7.2.4"
Expand Down

0 comments on commit a0cfe0f

Please sign in to comment.