Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pyroscope-nodejs to v0.2.9 #3032

Merged
merged 3 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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"
}
}
}
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.

Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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.

Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading
Loading