Skip to content

Commit

Permalink
[APM] prefer ECS field names for HTTP and URL
Browse files Browse the repository at this point in the history
  • Loading branch information
axw committed Nov 14, 2021
1 parent bb5e183 commit ec1e2ae
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,12 @@ 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 httpContext = span.http || span.span.http;
const url = span.url || httpContext?.url;
const spanTypes = getSpanTypes(span);
const spanHttpStatusCode = httpContext?.response?.status_code;
const spanHttpUrl = httpContext?.url?.original;
const spanHttpMethod = httpContext?.method;
const spanHttpUrl = url?.original;
const spanHttpMethod = httpContext?.request?.method || httpContext?.method;

return (
<EuiPortal>
Expand Down

0 comments on commit ec1e2ae

Please sign in to comment.