Skip to content

Commit

Permalink
chore: add language identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley committed May 29, 2023
1 parent 53cd95c commit 1e319ab
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ To extend instrumentation to designated functions and class methods, add them to
id="dumdbm-example"
title="Using dumbdbm"
>
In this example, you use the Python **dumbdbm** module and want to instrument the time it took to open a database, and then to write that database back to a file. In this case you would use:
In this example, you use the Python **`dumbdbm`** module and want to instrument the time it took to open a database, and then to write that database back to a file. In this case you would use:

```
```ini
transaction_tracer.function_trace = dumbdbm:open
dumbdbm:_Database._commit
```
Expand All @@ -48,14 +48,14 @@ When wrapping functions by listing them in the agent configuration file, you can

When using the `transaction_tracer.function_trace` setting in the agent configuration file, the name of the function will be used in the metric name, with it being classified as a `Function`. If it is necessary to override what function name may be used in the metric name or classify it differently, then an alternate means of defining the function trace in the configuration file can be used. The equivalent for:

```
```ini
transaction_tracer.function_trace = dumbdbm:open
dumbdbm:_Database._commit
```

would be to create two new configuration sections in the agent configuration file, one for each function to be traced:

```
```ini
[function-trace:dumbdbm-1]
enabled = true
function = dumbdbm:open
Expand Down

0 comments on commit 1e319ab

Please sign in to comment.