Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
import React from 'react';
import styled from 'react-emotion';
import SentryTypes from 'app/sentryTypes';
import SearchBar from 'app/components/searchBar';
import PropTypes from 'prop-types';

import {t} from 'app/locale';
import SearchBar from 'app/components/searchBar';
import SentryTypes from 'app/sentryTypes';
import {Panel} from 'app/components/panels';
import space from 'app/styles/space';
import EventView from 'app/views/eventsV2/eventView';

import {SentryTransactionEvent} from './types';
import TraceView from './traceView';

type PropType = {
orgId: string;
event: SentryTransactionEvent;
eventView: EventView;
};

type State = {
Expand All @@ -21,6 +25,7 @@ type State = {
class SpansInterface extends React.Component<PropType, State> {
static propTypes = {
event: SentryTypes.Event.isRequired,
orgId: PropTypes.string.isRequired,
};

state: State = {
Expand All @@ -34,7 +39,7 @@ class SpansInterface extends React.Component<PropType, State> {
};

render() {
const {event} = this.props;
const {event, orgId, eventView} = this.props;

return (
<div>
Expand All @@ -45,7 +50,12 @@ class SpansInterface extends React.Component<PropType, State> {
onSearch={this.handleSpanFilter}
/>
<Panel>
<TraceView event={event} searchQuery={this.state.searchQuery} />
<TraceView
event={event}
searchQuery={this.state.searchQuery}
orgId={orgId}
eventView={eventView}
/>
</Panel>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import space from 'app/styles/space';
import Count from 'app/components/count';
import Tooltip from 'app/components/tooltip';
import InlineSvg from 'app/components/inlineSvg';
import EventView from 'app/views/eventsV2/eventView';

import {
toPercent,
Expand Down Expand Up @@ -164,6 +165,7 @@ const getDurationDisplay = ({
};

type SpanBarProps = {
orgId: string;
trace: Readonly<ParsedTraceType>;
span: Readonly<SpanType>;
spanBarColour: string;
Expand All @@ -177,6 +179,7 @@ type SpanBarProps = {
isRoot?: boolean;
toggleSpanTree: () => void;
isCurrentSpanFilteredOut: boolean;
eventView: EventView;
};

type SpanBarState = {
Expand Down Expand Up @@ -218,9 +221,11 @@ class SpanBar extends React.Component<SpanBarProps, SpanBarState> {
return null;
}

const {span} = this.props;
const {span, orgId, isRoot, eventView} = this.props;

return <SpanDetail span={span} />;
return (
<SpanDetail span={span} orgId={orgId} isRoot={!!isRoot} eventView={eventView} />
);
};

getBounds = (): {
Expand Down
Loading