gen_ai.tool.name');
+ expect(html).toContain(ATTRIBUTE_METADATA['gen_ai.tool.name'].type);
+ expect(html).toContain(ATTRIBUTE_METADATA['gen_ai.tool.name'].brief);
+ });
+
+ it('appends page-specific notes to the description', () => {
+ const html = renderToStaticMarkup(
+ '${ATTRIBUTE_METADATA['gen_ai.tool.call.arguments'].example}'`.replaceAll(
+ '"',
+ '"'
+ )
+ );
+ expect(html).toContain(
+ `"${ATTRIBUTE_METADATA['gen_ai.tool.name'].example}"`
+ );
+ });
+});
diff --git a/src/components/conventionAttributes/index.tsx b/src/components/conventionAttributes/index.tsx
new file mode 100644
index 0000000000000..77b4fa4a1d7f4
--- /dev/null
+++ b/src/components/conventionAttributes/index.tsx
@@ -0,0 +1,72 @@
+import {
+ ATTRIBUTE_METADATA,
+ type AttributeMetadata,
+ type AttributeValue,
+} from '@sentry/conventions/attributes';
+import {micromark} from 'micromark';
+
+type Props = {
+ attributes: (string | {key: string; notes?: string})[];
+};
+
+const metadata: Record/, '') + .replace(/<\/p>$/, ''); + return {key, attribute, description}; + }); + + return ( +
| Attribute | +Type | +Description | +Example | +
|---|---|---|---|
+ {key}
+ |
+ {attribute.type} | + {/* Briefs are long; override the site's nowrap rule for non-last columns. */} ++ |
+ {attribute.example !== undefined && (
+ {formatExample(attribute.example)}
+ )}
+ |
+