Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions packages/batch-submitter/src/exec/run-batch-submitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
const log = new Logger({
name: 'oe:batch-submitter:init',
sentryOptions: {
release: `@eth-optimism/batch-submitter@${process.env.npm_package_version}`,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this injected in at runtime by yarn?

@snario snario Apr 21, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally like this:

❯ cat exec/run-batch-submitter.js
console.log(process.env.npm_package_version);

❯ yarn start
$ node ./exec/run-batch-submitter.js
0.1.12

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that yarn or npm MUST be the entrypoint or it will be undefined

dsn: process.env.SENTRY_DSN,
tracesSampleRate: 0.05,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class L1TransportServer extends BaseService<L1TransportServerOptions> {
this.state.app = express()
Sentry.init({
dsn: this.options.sentryDsn,
release: `@eth-optimism/data-transport-layer@${process.env.npm_package_version}`,
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
new Tracing.Integrations.Express({
Expand Down