Skip to content

Commit caf24e3

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

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -395,46 +395,6 @@ For example, given `http.url = http://example.com/path?queryParam1=value1,queryP
395395
}
396396
```
397397

398-
The following sample shows how to process spans that have a span name that matches regex patterns.
399-
This processor removes the `token` attribute. It obfuscates the `password` attribute in spans where the span name matches `auth.*`
400-
and where the span name doesn't match `login.*`.
401-
402-
```json
403-
{
404-
"connectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000",
405-
"preview": {
406-
"processors": [
407-
{
408-
"type": "attribute",
409-
"include": {
410-
"matchType": "regexp",
411-
"spanNames": [
412-
"auth.*"
413-
]
414-
},
415-
"exclude": {
416-
"matchType": "regexp",
417-
"spanNames": [
418-
"login.*"
419-
]
420-
},
421-
"actions": [
422-
{
423-
"key": "password",
424-
"value": "obfuscated",
425-
"action": "update"
426-
},
427-
{
428-
"key": "token",
429-
"action": "delete"
430-
}
431-
]
432-
}
433-
]
434-
}
435-
}
436-
```
437-
438398
### Mask
439399

440400
For example, given `http.url = http://example.com/user/12345622` is updated to `http.url = http://example.com/user/****` based on the below configuration.

0 commit comments

Comments
 (0)