Traces: Move towards using OTEL naming conventions (#51379)
* Updates names * Update tests * Update betterer results * Updated betterer.results * Updated tests
This commit is contained in:
+1
-1
@@ -56,7 +56,7 @@ describe('AccordianLogs tests', () => {
|
||||
it('shows the number of log entries', () => {
|
||||
setup();
|
||||
|
||||
expect(screen.getByRole('switch', { name: 'Logs (2)' })).toBeInTheDocument();
|
||||
expect(screen.getByRole('switch', { name: 'Events (2)' })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('hides log entries when not expanded', () => {
|
||||
|
||||
@@ -90,7 +90,7 @@ export default function AccordianLogs(props: AccordianLogsProps) {
|
||||
return (
|
||||
<div className={styles.AccordianLogs}>
|
||||
<HeaderComponent className={styles.AccordianLogsHeader} {...headerProps}>
|
||||
{arrow} <strong>Logs</strong> ({logs.length})
|
||||
{arrow} <strong>Events</strong> ({logs.length})
|
||||
</HeaderComponent>
|
||||
{isOpen && (
|
||||
<div className={styles.AccordianLogsContent}>
|
||||
|
||||
@@ -146,14 +146,14 @@ describe('<SpanDetail>', () => {
|
||||
});
|
||||
|
||||
it('renders the span tags', () => {
|
||||
const target = <AccordianKeyValues data={span.tags} label="Tags" isOpen={detailState.isTagsOpen} />;
|
||||
const target = <AccordianKeyValues data={span.tags} label="Attributes" isOpen={detailState.isTagsOpen} />;
|
||||
expect(wrapper.containsMatchingElement(target)).toBe(true);
|
||||
wrapper.find({ data: span.tags }).simulate('toggle');
|
||||
expect(props.tagsToggle).toHaveBeenLastCalledWith(span.spanID);
|
||||
});
|
||||
|
||||
it('renders the process tags', () => {
|
||||
const target = <AccordianKeyValues data={span.process.tags} label="Process" isOpen={detailState.isProcessOpen} />;
|
||||
const target = <AccordianKeyValues data={span.process.tags} label="Resource" isOpen={detailState.isProcessOpen} />;
|
||||
expect(wrapper.containsMatchingElement(target)).toBe(true);
|
||||
wrapper.find({ data: span.process.tags }).simulate('toggle');
|
||||
expect(props.processToggle).toHaveBeenLastCalledWith(span.spanID);
|
||||
|
||||
@@ -213,7 +213,7 @@ export default function SpanDetail(props: SpanDetailProps) {
|
||||
<div>
|
||||
<AccordianKeyValues
|
||||
data={tags}
|
||||
label="Tags"
|
||||
label="Attributes"
|
||||
linksGetter={linksGetter}
|
||||
isOpen={isTagsOpen}
|
||||
onToggle={() => tagsToggle(spanID)}
|
||||
@@ -222,7 +222,7 @@ export default function SpanDetail(props: SpanDetailProps) {
|
||||
<AccordianKeyValues
|
||||
className={ubMb1}
|
||||
data={process.tags}
|
||||
label="Process"
|
||||
label="Resource"
|
||||
linksGetter={linksGetter}
|
||||
isOpen={isProcessOpen}
|
||||
onToggle={() => processToggle(spanID)}
|
||||
|
||||
Reference in New Issue
Block a user