-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix dd trace log and trace correlation (#862)
* fix dd trace log and trace corelation * update * update
- Loading branch information
1 parent
63fbfec
commit 0518b31
Showing
4 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,22 +13,35 @@ RUN unlink /usr/bin/python && \ | |
|
||
COPY . . | ||
RUN yarn install --immutable | ||
RUN yarn workspace @acala-network/eth-rpc-adapter ncc:pack | ||
RUN yarn build | ||
|
||
|
||
# ============= | ||
|
||
FROM node:16-alpine | ||
LABEL maintainer="[email protected]" | ||
|
||
COPY --from=builder /app/packages/eth-rpc-adapter/dist /app | ||
COPY --from=builder /app/package.json /app/.yarnrc.yml /app/ | ||
COPY --from=builder /app/node_modules /app/node_modules | ||
|
||
WORKDIR /app | ||
COPY --from=builder /app/packages/eth-rpc-adapter/package.json /app/packages/eth-rpc-adapter/package.json | ||
COPY --from=builder /app/packages/eth-transactions/package.json /app/packages/eth-transactions/package.json | ||
COPY --from=builder /app/packages/eth-providers/package.json /app/packages/eth-providers/package.json | ||
|
||
COPY --from=builder /app/packages/eth-rpc-adapter/lib /app/packages/eth-rpc-adapter/lib | ||
COPY --from=builder /app/packages/eth-transactions/lib /app/packages/eth-transactions/lib | ||
COPY --from=builder /app/packages/eth-providers/lib /app/packages/eth-providers/lib | ||
|
||
COPY --from=builder /app/packages/eth-rpc-adapter/node_modules /app/packages/eth-rpc-adapter/node_modules | ||
COPY --from=builder /app/packages/eth-transactions/node_modules /app/packages/eth-transactions/node_modules | ||
# COPY --from=builder /app/packages/eth-providers/node_modules /app/packages/eth-providers/node_modules # don't exist | ||
|
||
WORKDIR /app/packages/eth-rpc-adapter | ||
|
||
EXPOSE 8545 | ||
|
||
USER node | ||
|
||
ENV NODE_ENV=production | ||
|
||
ENTRYPOINT ["node", "index.js" ] | ||
ENTRYPOINT ["node", "lib/index.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export const DONT_TRACE_ETH_RPCS = ['net_health']; | ||
|
||
// we can also config these in dd agent, but with code it is more flexible | ||
export const shouldNotTrace = (ethRpcName: string) => DONT_TRACE_ETH_RPCS.includes(ethRpcName); |