Use tags to attach important business context to a transaction, such as a customer ID or order ID,
Tags let you attach important business context to a transaction, such as a customer ID, order ID, tenant ID, etc.Tags use the trace0.tag.* namespace and can be added through logs or span attributes.1. LogsTags can be included in standard log messages:
log.info("Processing order trace0.tag.customer.id=12345");
Trace0 extracts these values and displays them as Tags on the corresponding transaction.You can include tags in natual language search and in Trace0QL queries.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Trace0","description":"Trace0 is an modern, easy-to-use observability platform that gives you traces, metrics, logs, and alerting in one place — without the complexity or cost of traditional monitoring tools.","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/trace0/eJDnICviDmAmZWXG/images/Trace0_Text_Logo.svg?fit=max\u0026auto=format\u0026n=eJDnICviDmAmZWXG\u0026q=85\u0026s=1558cc79d3b16deda8f654083b44a8f3","dark":"https://mintcdn.com/trace0/eJDnICviDmAmZWXG/images/Trace0_Text_Logo.svg?fit=max\u0026auto=format\u0026n=eJDnICviDmAmZWXG\u0026q=85\u0026s=1558cc79d3b16deda8f654083b44a8f3","href":"https://trace0hq.com"},"favicon":{"light":"https://mintcdn.com/trace0/b9GIRkJPD1PyIwI9/images/Trace0_Logo.svg?fit=max\u0026auto=format\u0026n=b9GIRkJPD1PyIwI9\u0026q=85\u0026s=0c92e83d1a97188a065b3ae014bec5ab","dark":"https://mintcdn.com/trace0/b9GIRkJPD1PyIwI9/images/Trace0_Logo.svg?fit=max\u0026auto=format\u0026n=b9GIRkJPD1PyIwI9\u0026q=85\u0026s=0c92e83d1a97188a065b3ae014bec5ab"},"background":{"color":{"light":"#ffffff","dark":"#111827"}},"navbar":{"links":[{"href":"https://app.trace0hq.com","label":"Dashboard"}],"primary":{"type":"button","label":"Sign Up Free","href":"https://app.trace0hq.com/signup"}},"footer":{"socials":{"github":"https://github.com/Trace0-HQ","linkedin":"https://www.linkedin.com/company/trace0","website":"https://trace0hq.com"}},"styling":{"codeblocks":{"languages":{"custom":["/languages/trace0ql.tmLanguage.json"]}},"latex":false},"integrations":{"plausible":{"domain":"trace0hq.com"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trace0","hasAudioNarration":false,"actualSubdomain":"trace0","customDomains":["docs.trace0hq.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-trace0-3437c245","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0240b53ca2a55c0065e54c","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Platform","count":19},{"language":"default","tag":"Metrics","count":10},{"language":"default","tag":"Setup Guides","count":8},{"language":"default","tag":"Transactions","count":7},{"language":"default","tag":"Database Metrics","count":5},{"language":"default","tag":"Application Metrics","count":4},{"language":"default","tag":"Java","count":3},{"language":"default","tag":"Search","count":2},{"language":"default","tag":"Node.js","count":2},{"language":"default","tag":"Python","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"platform/transactions/tags","slug":"/platform/transactions/tags","pageMetadata":{"title":"Transaction Tags","sidebarTitle":"Tags","description":"Use tags to attach important business context to a transaction, such as a customer ID or order ID,","href":"/platform/transactions/tags"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Tags let you attach important business context to a transaction, such as a customer ID, order ID, tenant ID, etc.`}),`\n`,_jsxs(_components.p,{children:[`Tags use the `,_jsx(_components.code,{children:`trace0.tag.*`}),` namespace and can be added through logs or span attributes.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`1. Logs`})}),`\n`,_jsx(_components.p,{children:`Tags can be included in standard log messages:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`info`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processing order trace0.tag.customer.id=12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or as fields when using structured logging:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Processing order\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"trace0.tag.customer.id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[``,_jsx(_components.strong,{children:`2. Span attributes`})]}),`\n`,_jsx(_components.p,{children:`Tags can also be added directly as OpenTelemetry span attributes:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`span`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`setAttribute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"trace0.tag.customer.id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"12345\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Trace0 extracts these values and displays them as Tags on the corresponding transaction.`}),`\n`,_jsx(OptimizedImage,{className:`mint-block dark:mint-hidden`,alt:`Transaction Tags Light`,src:`https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=ca45b1868e554fc3bb5529abcb93a9af`,\"data-og-width\":`2864`,width:`2864`,\"data-og-height\":`1428`,height:`1428`,\"data-path\":`images/transaction-tags-light.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=280\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=ddbe806c65e68af568fcaaf0597eff6d 280w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=560\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=4fe7f7a287b49a9db96ac902a57efa40 560w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=840\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=73351a046b5bae4b87c0ea047ceed4e7 840w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=1100\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=c6332b33c8270457dc81b44c1285f7fa 1100w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=1650\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=5862a7800a00fb88f1178abc0e2b3905 1650w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-light.png?w=2500\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=e7a1c3d48243b35a4313971607e78cbc 2500w`}),`\n`,_jsx(OptimizedImage,{className:`mint-hidden dark:mint-block`,alt:`Transaction Tags Light`,src:`https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=132b4b35cd1f25f4ec40a84190a7b1c5`,\"data-og-width\":`2862`,width:`2862`,\"data-og-height\":`1428`,height:`1428`,\"data-path\":`images/transaction-tags-dark.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=280\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=923a4ab5c3084f95063d2bbbbf9bce45 280w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=560\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=05cbf6a1b16be90c1edc2dcaef8dab33 560w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=840\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=3676618bf4c58c3b4a9d13ee1432f8b5 840w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=1100\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=fe7034dcbc1ce1610e293664cc7fad9c 1100w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=1650\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=31960f2b68515617b2058adae254fea7 1650w, https://mintcdn.com/trace0/k4iKF3hacuwsSLr5/images/transaction-tags-dark.png?w=2500\u0026fit=max\u0026auto=format\u0026n=k4iKF3hacuwsSLr5\u0026q=85\u0026s=d215d261e84e4f165bdc017d0478c35c 2500w`}),`\n`,_jsx(_components.p,{children:`You can include tags in natual language search and in Trace0QL queries.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"languages":{"custom":["/languages/trace0ql.tmLanguage.json"]}},"config":{},"pageMetadata":{"title":"Transaction Tags","sidebarTitle":"Tags","description":"Use tags to attach important business context to a transaction, such as a customer ID or order ID,","href":"/platform/transactions/tags"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-block {\n display: block\n}\n.mint-hidden {\n display: none\n}\n.dark\\:mint-block:is(.dark *) {\n display: block\n}\n.dark\\:mint-hidden:is(.dark *) {\n display: none\n}","subdomain":"trace0","siteName":"Trace0","title":"Transaction Tags - Trace0","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-11T02:04:22.408Z","originalFileLocation":"platform/transactions/tags.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trace0\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Transaction Tags - Trace0\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trace0\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trace0hq.com/platform/transactions/tags\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trace0.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Transaction+Tags\u0026amp;description=Use+tags+to+attach+important+business+context+to+a+transaction%2C+such+as+a+customer+ID+or+order+ID%2C\u0026amp;theme=612cd906e721caa0747efe20\u0026amp;signature=3289ca85b8855a47534a8e02ba9c4a07854ce675edcb5f3eb74f26f215b61e34\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Transaction Tags - Trace0\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trace0.mintlify.site/_mintlify/api/og/v2?division=Transactions\u0026amp;title=Transaction+Tags\u0026amp;description=Use+tags+to+attach+important+business+context+to+a+transaction%2C+such+as+a+customer+ID+or+order+ID%2C\u0026amp;theme=612cd906e721caa0747efe20\u0026amp;signature=3289ca85b8855a47534a8e02ba9c4a07854ce675edcb5f3eb74f26f215b61e34\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/trace0/ncQpxOszPVjSnwQd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trace0\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trace0hq.com/platform/transactions/tags\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platform/transactions/tags.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trace0hq.com/#organization\",\"name\":\"Trace0\",\"url\":\"https://docs.trace0hq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trace0/eJDnICviDmAmZWXG/images/Trace0_Text_Logo.svg?fit=max\u0026auto=format\u0026n=eJDnICviDmAmZWXG\u0026q=85\u0026s=1558cc79d3b16deda8f654083b44a8f3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trace0hq.com#website\",\"name\":\"Trace0\",\"url\":\"https://docs.trace0hq.com\",\"publisher\":{\"@id\":\"https://docs.trace0hq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trace0hq.com/platform/transactions/tags#webpage\",\"url\":\"https://docs.trace0hq.com/platform/transactions/tags\",\"name\":\"Transaction Tags\",\"description\":\"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\",\"dateModified\":\"2026-11-11T02:04:22.408Z\",\"isPartOf\":{\"@id\":\"https://docs.trace0hq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trace0hq.com/platform/transactions/tags#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trace0hq.com/platform/transactions/tags#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform\",\"item\":\"https://docs.trace0hq.com/platform/transactions/search/natural-language-search\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transactions\",\"item\":\"https://docs.trace0hq.com/platform/transactions\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Transaction Tags\",\"item\":\"https://docs.trace0hq.com/platform/transactions/tags\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.trace0hq.com/platform/transactions/tags#article\",\"headline\":\"Transaction Tags\",\"name\":\"Transaction Tags\",\"description\":\"Use tags to attach important business context to a transaction, such as a customer ID or order ID,\",\"url\":\"https://docs.trace0hq.com/platform/transactions/tags\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trace0hq.com/platform/transactions/tags#webpage\"},\"dateModified\":\"2026-11-11T02:04:22.408Z\",\"publisher\":{\"@id\":\"https://docs.trace0hq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trace0hq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Trace0\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Trace0\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/platform/transactions/tags.md","siteName":"Trace0","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"What is Trace0?","href":"/introduction/what-is-trace0"}]},{"group":"Getting Started","pages":[{"title":"Getting Started","href":"/getting-started/overview"}]},{"group":"Platform","pages":[{"group":"Transactions","root":{"title":"Transactions","href":"/platform/transactions"},"pages":[{"group":"Search","pages":[{"title":"Natural Language Search","sidebarTitle":"Natural Language Search","href":"/platform/transactions/search/natural-language-search"},{"title":"Trace0QL","sidebarTitle":"Trace0QL","href":"/platform/transactions/search/trace0ql"}]},{"title":"Transaction Details","sidebarTitle":"Details","href":"/platform/transactions/details"},{"title":"Transaction Errors","sidebarTitle":"Errors","description":"Identify, investigate, and understand errors occurring within your application transactions.","href":"/platform/transactions/errors"},{"title":"Transaction Tags","sidebarTitle":"Tags","href":"/platform/transactions/tags"},{"title":"Asynchronous Transactions","sidebarTitle":"Asynchronous Transactions","description":null,"href":"/platform/transactions/asynchronous-transactions"}]},{"title":"Logs","href":"/platform/logs"},{"group":"Metrics","pages":[{"group":"Application Metrics","root":{"title":"Application Metrics","href":"/platform/metrics/application-metrics"},"pages":[{"title":"JVM Metrics","href":"/platform/metrics/application-metrics/jvm-metrics"},{"title":"Python Metrics","href":"/platform/metrics/application-metrics/python-metrics"},{"title":"Node.js Metrics","href":"/platform/metrics/application-metrics/node-metrics"}]},{"group":"Database Metrics","root":{"title":"Database Metrics","href":"/platform/metrics/database-metrics"},"pages":[{"title":"DynamoDB Metrics","href":"/platform/metrics/database-metrics/dynamodb-metrics"},{"title":"Redis Metrics","href":"/platform/metrics/database-metrics/redis-metrics"},{"title":"PostgreSQL Metrics","href":"/platform/metrics/database-metrics/postgresql-metrics"},{"title":"MongoDB Metrics","href":"/platform/metrics/database-metrics/mongodb-metrics"}]},{"title":"Cloud Service Metrics","href":"/platform/metrics/cloud-service-metrics"}]},{"title":"Alerts","href":"/platform/alerts"}]},{"group":"Agents","pages":[{"title":"MCP Server","href":"/ai/mcp"}]},{"group":"Setup Guides","pages":[{"group":"Java","pages":[{"title":"Java - Containers \u0026 VMs","href":"/setup/java/containers-and-vms"},{"title":"Java - Spring Boot","href":"/setup/java/spring-boot"},{"title":"Java - AWS Lambda","href":"/setup/java/lambda"}]},{"group":"Node.js","pages":[{"title":"Node.js - Containers \u0026 VMs","href":"/setup/javascript/containers-and-vms"},{"title":"Node.js - AWS Lambda","href":"/setup/javascript/lambda"}]},{"group":"Python","pages":[{"title":"Python - Containers \u0026 VMs","href":"/setup/python/containers-and-vms"},{"title":"Python - AWS Lambda","href":"/setup/python/lambda"}]},{"title":"Browser JavaScript","href":"/setup/browser-javascript"}]},{"group":"Pricing","pages":[{"title":"Pricing","href":"/pricing/pricing"}]},{"group":"Security","pages":[{"title":"Security","href":"/security/security"}]},{"group":"FAQ","pages":[{"title":"What is OpenTelemetry?","href":"/faq/what-is-opentelemetry"}]}]},"basePath":"","title":"Transaction Tags - Trace0","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BQ4tbj_9.js","lightbox-handle-r17bVUz3.js"]}