{
"name": "policy-with-telemetry",
"actions": [
{"name": "sanitize", "priority": 1, "parallel": false, "settings": {"level": "standard"}},
{"name": "classify", "priority": 2, "parallel": false, "settings": {"labels": ["spam", "ham"]}}
],
"telemetry": {
"enable_request_traces": true,
"enable_plugin_traces": true,
"extra_params": {
"app_id": "12345"
},
"exporters": [
{
"name": "kafka",
"settings": {
"host": "localhost",
"port": "9092",
"topic": "metrics"
}
},
{
"name": "trustlens",
"settings": {
"host": "localhost",
"mapping": {
"input": {
"data_projection": {
"input": "payload.input"
}
},
"output": {}
},
"port": "9092",
"topic": "traces"
}
}
],
"header_mapping": {
"conversation_id": "X-CONV-ID",
"interaction_id": "X-INT-ID",
"session_id": "X-SESSION-ID"
}
}
}