Skip to content

Commit aee36c6

Browse files
authored
Update java-standalone-telemetry-processors-examples.md
1 parent caf24e3 commit aee36c6

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

articles/azure-monitor/app/java-standalone-telemetry-processors-examples.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,34 @@ For example, given `http.url = http://example.com/path?queryParam1=value1,queryP
397397

398398
### Mask
399399

400-
For example, given `http.url = http://example.com/user/12345622` is updated to `http.url = http://example.com/user/****` based on the below configuration.
400+
For example, given `http.url = https://example.com/user/12345622` is updated to `http.url = https://example.com/user/****` based on the below configuration.
401+
402+
403+
First configuration example:
404+
405+
```json
406+
{
407+
"connectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000",
408+
"preview": {
409+
"processors": [
410+
{
411+
"type": "attribute",
412+
"actions": [
413+
{
414+
"key": "http.url",
415+
"pattern": "user\\/\\d+",
416+
"replace": "user\\/****",
417+
"action": "mask"
418+
}
419+
]
420+
}
421+
]
422+
}
423+
}
424+
```
425+
426+
427+
Second configuration example expression group name:
401428

402429
```json
403430
{

0 commit comments

Comments
 (0)