colorTable = {
const buildRow = (tagKey, description) => ([ "`" + tagKey + "`", description ]);
const SEMANTIC_TAG_DESCRIPTIONS = [
buildRow('status', `Used by [Logs standard attributes](https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#reserved-attributes) and [Datadog Security](https://docs.datadoghq.com/security/) for severity level. Also supports generic success, fail, pass, error for convenience with custom metrics.`),
buildRow('http.status_code', `Standard tag used in many integrations. Colors are assigned based on HTTP status code family (1xx, 2xx, 3xx, 4xx, 5xx)`),
buildRow('@ci.status', `Used by [CI Visibility](https://www.datadoghq.com/product/ci-cd-monitoring/)`),
buildRow('@test.status', `Used by [CI Visibility](https://www.datadoghq.com/product/ci-cd-monitoring/)`),
buildRow('evaluation', `Used by [CI Visibility](https://www.datadoghq.com/product/ci-cd-monitoring/)`),
buildRow('@resource.status_code', `Used by [RUM & Session Replay](https://docs.datadoghq.com/real_user_monitoring/). Uses the same colors as \`http.status_code\`.`),
buildRow('@error.resource.status_code', `Used by [RUM & Session Replay](https://docs.datadoghq.com/real_user_monitoring/). Uses the same colors as \`http.status_code\`.`),
buildRow('@batch.status', `Used by [Synthetic Monitoring](https://docs.datadoghq.com/synthetics/) for test batch results.`),
];
function colorTableTemplate() {
return markdownTable.markdownTable([['Tag Key', 'Description'], ...SEMANTIC_TAG_DESCRIPTIONS], {
align: ['l', 'l']
});
}
return colorTableTemplate();
}