Skip to content

Commit

Permalink
lingustic update
Browse files Browse the repository at this point in the history
  • Loading branch information
WriteMayur committed Dec 6, 2024
1 parent d9a6c17 commit 9929e46
Showing 1 changed file with 26 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2831,13 +2831,16 @@ This section defines the Node.js agent variables in the order they typically app
</tbody>
</table>

Prefix of attributes to exclude from transaction events. Allows `*` as wildcard at end. For example, in the config file, this would incldue all parameters execept `somethingSecret`:
Prefix of attributes to exclude from transaction events. Allows `*` as wildcard at end. For example, in the config file, this would include all parameters except `somethingSecret`:

```js
attributes: {
include: [ 'request.parameters.*' ],
exclude: [ 'request.parameters.somethingSecret' ]
}

attributes: {
include: [ 'request.parameters.*' ],
exclude: [ 'request.parameters.somethingSecret' ]
}
```

</Collapser>

<Collapser
Expand Down Expand Up @@ -2880,25 +2883,32 @@ This section defines the Node.js agent variables in the order they typically app

Prefix of attributes to include in transaction events. Allows `*` as wildcard at end.

For example, in the config file, this would incldue all parameters:
For example, in the `config` file, this would include all parameters:

```js
attributes: {
include: [ 'request.parameters.*' ]
}

attributes: {
include: [ 'request.parameters.*' ]
}

```

Given the following Express route definition and request url:
Enter the following Express route definition and request URL:

```js
app.get('/api/users/:id', myMiddleware, myController)
```
```js

app.get('/api/users/:id', myMiddleware, myController)

```

```sh

```sh
curl http://localhost:3000/api/users/abc123?id=true
```

The _route_ parameter is `id`, and has a value of `abc123`. This would become `request.parameters.route.id: abc123` on the Transaction, root Segment, and Span attributes. This example also has a _query_ parameter of `id`, which has a value of `true`. This would become `request.parameters.id: true` on the Transaction, root Segment, and Span attributes.
```

The `_route_ parameter` is `id`, and has a value of `abc123`. This becomes `request.parameters.route.id: abc123` on the Transaction, root Segment, and Span attributes. This example also has a `_query_ parameter `of `id`, which has a value of `true`. This would become `request.parameters.id: true` on the Transaction, root Segment, and Span attributes.

</Collapser>
</CollapserGroup>

Expand Down

0 comments on commit 9929e46

Please sign in to comment.