|
@@ -14,6 +14,7 @@ import useOrganization from 'sentry/utils/useOrganization';
|
|
|
import {normalizeUrl} from 'sentry/utils/withDomainRequired';
|
|
|
import {DurationComparisonCell} from 'sentry/views/starfish/components/samplesTable/common';
|
|
|
import {DurationCell} from 'sentry/views/starfish/components/tableCells/durationCell';
|
|
|
+import FilenameCell from 'sentry/views/starfish/components/tableCells/filenameCell';
|
|
|
import ResourceSizeCell from 'sentry/views/starfish/components/tableCells/resourceSizeCell';
|
|
|
import {
|
|
|
OverflowEllipsisTextContainer,
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
import type {SpanSample} from 'sentry/views/starfish/queries/useSpanSamples';
|
|
|
import {type ModuleName, SpanMetricsField} from 'sentry/views/starfish/types';
|
|
|
|
|
|
-const {HTTP_RESPONSE_CONTENT_LENGTH} = SpanMetricsField;
|
|
|
+const {HTTP_RESPONSE_CONTENT_LENGTH, SPAN_DESCRIPTION} = SpanMetricsField;
|
|
|
|
|
|
type Keys =
|
|
|
| 'transaction_id'
|
|
@@ -32,7 +33,8 @@ type Keys =
|
|
|
| 'duration'
|
|
|
| 'p95_comparison'
|
|
|
| 'avg_comparison'
|
|
|
- | 'http.response_content_length';
|
|
|
+ | 'http.response_content_length'
|
|
|
+ | 'span.description';
|
|
|
export type SamplesTableColumnHeader = GridColumnHeader<Keys>;
|
|
|
|
|
|
export const DEFAULT_COLUMN_ORDER: SamplesTableColumnHeader[] = [
|
|
@@ -92,7 +94,8 @@ export function SpanSamplesTable({
|
|
|
if (
|
|
|
column.key === 'p95_comparison' ||
|
|
|
column.key === 'avg_comparison' ||
|
|
|
- column.key === 'duration'
|
|
|
+ column.key === 'duration' ||
|
|
|
+ column.key === HTTP_RESPONSE_CONTENT_LENGTH
|
|
|
) {
|
|
|
return (
|
|
|
<TextAlignRight>
|
|
@@ -152,6 +155,10 @@ export function SpanSamplesTable({
|
|
|
return <ResourceSizeCell bytes={size} />;
|
|
|
}
|
|
|
|
|
|
+ if (column.key === SPAN_DESCRIPTION) {
|
|
|
+ return <FilenameCell url={row[SPAN_DESCRIPTION]} />;
|
|
|
+ }
|
|
|
+
|
|
|
if (column.key === 'profile_id') {
|
|
|
return (
|
|
|
<IconWrapper>
|