Skip to content

Commit 79a0ba2

Browse files
jason-price-mongodbandf-mongodb
authored andcommitted
DOCS-13337 include example of comment
1 parent 26f6b40 commit 79a0ba2

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

source/reference/method/db.setProfilingLevel.txt

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,26 @@ Definition
2929

3030
- Description
3131

32-
* - ``level``
32+
* - :ref:`level <set-profiling-level-level>`
3333

3434
- integer
3535

36-
- Configures the profiler level.
36+
- .. _set-profiling-level-level:
37+
38+
Configures the profiler level.
3739
The following profiler levels are available:
3840

3941
.. include:: /includes/database-profiler-levels.rst
4042

4143

4244

43-
* - ``options``
45+
* - :ref:`options <set-profiling-level-options>`
4446

4547
- document or integer
4648

47-
- Optional. Accepts an integer or an options document. If an integer value is
49+
- .. _set-profiling-level-options:
50+
51+
Optional. Accepts an integer or an options document. If an integer value is
4852
passed as the ``options`` argument instead of a document, the value is
4953
assigned to ``slowms``.
5054
The following options are available:
@@ -53,8 +57,11 @@ Definition
5357
:stub-columns: 1
5458
:widths: 15 85
5559

56-
* - slowms
57-
- | Default: 100
60+
* - :ref:`slowms <set-profiling-level-options-slowms>`
61+
62+
- .. _set-profiling-level-options-slowms:
63+
64+
| Default: 100
5865
| Type: integer
5966

6067
.. include:: /includes/dbcommand-slowms-definition.rst
@@ -63,8 +70,11 @@ Definition
6370
This argument affects the same setting as the configuration
6471
file option :setting:`~operationProfiling.slowOpThresholdMs`.
6572

66-
* - sampleRate
67-
- | Default: 1.0
73+
* - :ref:`sampleRate <set-profiling-level-options-sampleRate>`
74+
75+
- .. _set-profiling-level-options-sampleRate:
76+
77+
| Default: 1.0
6878
| Type: double
6979

7080
The fraction of *slow* operations that should be profiled.

0 commit comments

Comments
 (0)