Public
Edited
Mar 1, 2023
Insert cell
Insert cell
markdownTable = import("https://cdn.skypack.dev/markdown-table@3")
Insert cell
colorTable = {
const buildRow = (tagKey, description) => ([ "`" + tagKey + "`", description ]);

const SEMANTIC_TAG_DESCRIPTIONS = [

// Standard Attributes
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)`),

// CI
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/)`),

// RUM
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\`.`),

// Synthetics
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();
}
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more