mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[APM] prefer ECS field names for HTTP and URL (#118485)
This commit is contained in:
parent
e663777906
commit
1a321bce77
3 changed files with 9 additions and 4 deletions
|
@ -101,11 +101,11 @@ export function SpanFlyout({
|
|||
const stackframes = span.span.stacktrace;
|
||||
const codeLanguage = parentTransaction?.service.language?.name;
|
||||
const spanDb = span.span.db;
|
||||
const httpContext = span.span.http;
|
||||
const spanTypes = getSpanTypes(span);
|
||||
const spanHttpStatusCode = httpContext?.response?.status_code;
|
||||
const spanHttpUrl = httpContext?.url?.original;
|
||||
const spanHttpMethod = httpContext?.method;
|
||||
const spanHttpStatusCode =
|
||||
span.http?.response?.status_code || span.span?.http?.response?.status_code;
|
||||
const spanHttpUrl = span.url?.original || span.span?.http?.url?.original;
|
||||
const spanHttpMethod = span.http?.request?.method || span.span?.http?.method;
|
||||
|
||||
return (
|
||||
<EuiPortal>
|
||||
|
|
|
@ -8,4 +8,5 @@
|
|||
export interface Url {
|
||||
domain?: string;
|
||||
full: string;
|
||||
original?: string;
|
||||
}
|
||||
|
|
|
@ -7,8 +7,10 @@
|
|||
|
||||
import { APMBaseDoc } from './apm_base_doc';
|
||||
import { EventOutcome } from './fields/event_outcome';
|
||||
import { Http } from './fields/http';
|
||||
import { Stackframe } from './fields/stackframe';
|
||||
import { TimestampUs } from './fields/timestamp_us';
|
||||
import { Url } from './fields/url';
|
||||
|
||||
interface Processor {
|
||||
name: 'transaction';
|
||||
|
@ -67,4 +69,6 @@ export interface SpanRaw extends APMBaseDoc {
|
|||
id: string;
|
||||
};
|
||||
child?: { id: string[] };
|
||||
http?: Http;
|
||||
url?: Url;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue