Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 1f772d2

Browse files
authored
docs: add documentation for common config parameters (#1172)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/cloud-debug-nodejs/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #1008 🦕
1 parent d477d1e commit 1f772d2

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

.readme-partials.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ body: |-
3232
* firebaseKeyPath - Default google application credentials are used if not
3333
provided.
3434
35+
Some key configuration options are:
36+
* allowExpressions - Whether or not it is permitted to evaluate
37+
epressions. Functionality is limited when this is not set, but there
38+
is some risk that malicious expressions can mutate program state.
39+
* serviceContext - This information is utilized in the UI to identify all
40+
the running instances of your service. Set this if you do not like the
41+
default values.
42+
* capture - Configuration options on what is captured on a snapshot. Set
43+
this if the default snapshot captures are too limited. Note that
44+
relaxing constraints may cause performance impact.
45+
3546
See [the agent configuration][config-ts] for a list of possible configuration
3647
options.
3748
@@ -70,6 +81,6 @@ body: |-
7081
* The root directory of your application needs to contain a `package.json`
7182
file.
7283
73-
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/master/src/agent/config.ts
84+
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/main/src/agent/config.ts
7485
[extension-page]: https://github.com/GoogleCloudPlatform/snapshot-debugger/tree/main/snapshot_dbg_extension
7586
[snapshot-debugger-readme]: https://github.com/GoogleCloudPlatform/snapshot-debugger#readme

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ The following options configure the connection to the Firebase database:
8282
* firebaseKeyPath - Default google application credentials are used if not
8383
provided.
8484

85+
Some key configuration options are:
86+
* allowExpressions - Whether or not it is permitted to evaluate
87+
epressions. Functionality is limited when this is not set, but there
88+
is some risk that malicious expressions can mutate program state.
89+
* serviceContext - This information is utilized in the UI to identify all
90+
the running instances of your service. Set this if you do not like the
91+
default values.
92+
* capture - Configuration options on what is captured on a snapshot. Set
93+
this if the default snapshot captures are too limited. Note that
94+
relaxing constraints may cause performance impact.
95+
8596
See [the agent configuration][config-ts] for a list of possible configuration
8697
options.
8798

@@ -120,7 +131,7 @@ leaks. See [#811](https://github.com/googleapis/cloud-debug-nodejs/issues/811)
120131
* The root directory of your application needs to contain a `package.json`
121132
file.
122133

123-
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/master/src/agent/config.ts
134+
[config-ts]: https://github.com/googleapis/cloud-debug-nodejs/blob/main/src/agent/config.ts
124135
[extension-page]: https://github.com/GoogleCloudPlatform/snapshot-debugger/tree/main/snapshot_dbg_extension
125136
[snapshot-debugger-readme]: https://github.com/GoogleCloudPlatform/snapshot-debugger#readme
126137

0 commit comments

Comments
 (0)