-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into ACT-1532-create-linea-pages-dynamically
- Loading branch information
Showing
10 changed files
with
168 additions
and
35 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
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
7 changes: 5 additions & 2 deletions
7
services/reference/_partials/trace-methods/_trace_callmany-parameters.mdx
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). | ||
- `options`: A list of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. | ||
- `trace call parameters`: _[Required]_ Array of trace call parameters. | ||
Each trace call parameter itself is an array containing the following: | ||
- `transaction call object`: _[Required]_ Transaction call object containing the same data as in the [`trace_call`](../../ethereum/json-rpc-methods/trace-methods/trace_call.mdx#parameters) parameter. | ||
- `options`:_[Optional]_ An array of tracing options. Tracing options are [`trace`](../../ethereum/json-rpc-methods/trace-methods/index.md#trace) and [`stateDiff`](../../ethereum/json-rpc-methods/trace-methods/index.md#statediff). Specify both options or none. | ||
- `block parameter`: _[Required]_ The hexadecimal block number, or the string `latest`, `earliest`, or `pending`. See the [default block parameter](https://ethereum.org/en/developers/docs/apis/json-rpc/#default-block). The block parameter is applied uniformly to all trace calls in the `trace call parameters` array. |
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,21 @@ | ||
import * as path from "path"; | ||
|
||
const SentryPlugin = () => { | ||
return { | ||
name: "docusaurus-plugin-sentry", | ||
getClientModules() { | ||
return [path.resolve(__dirname, "./sentry")]; | ||
}, | ||
configureWebpack() { | ||
return { | ||
resolve: { | ||
alias: { | ||
"sentry-plugin": path.resolve(__dirname, "./sentry.ts"), | ||
}, | ||
}, | ||
}; | ||
}, | ||
}; | ||
}; | ||
|
||
export default SentryPlugin; |
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,16 @@ | ||
{ | ||
"name": "docusaurus-plugin-sentry", | ||
"version": "1.0.0", | ||
"description": "A Sentry plugin to initialize the Sentry SDK", | ||
"main": "index.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"docusaurus-plugin", | ||
"sentry-plugin", | ||
"sentry" | ||
], | ||
"author": "Vlad Lo.", | ||
"license": "MIT" | ||
} |
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,28 @@ | ||
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment"; | ||
import siteConfig from "@generated/docusaurus.config"; | ||
import * as Sentry from "@sentry/browser"; | ||
|
||
const isProd = process.env.NODE_ENV === "production"; | ||
|
||
export default (function () { | ||
if (!ExecutionEnvironment.canUseDOM) { | ||
return null; | ||
} | ||
|
||
const { SENTRY_KEY } = siteConfig.customFields; | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_KEY as string, | ||
replaysOnErrorSampleRate: isProd ? 1.0 : 0, | ||
replaysSessionSampleRate: isProd ? 1.0 : 0, | ||
sampleRate: isProd ? 0.25 : 0, | ||
tracesSampleRate: 0, | ||
debug: !isProd, | ||
}); | ||
|
||
Sentry.replayIntegration({ | ||
maskAllText: false, | ||
}); | ||
|
||
return Sentry; | ||
})(); |
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