Skip to content

Add indexed fields to span.context.http.#1438

Merged
simitt merged 3 commits intoelastic:masterfrom
simitt:1435-add-span-context-http-fields
Oct 18, 2018
Merged

Add indexed fields to span.context.http.#1438
simitt merged 3 commits intoelastic:masterfrom
simitt:1435-add-span-context-http-fields

Conversation

@simitt
Copy link
Copy Markdown
Contributor

@simitt simitt commented Oct 16, 2018

Add status_code and method to span.context.http and index them. The new fields are added to v1 and v2 as they are an extension of the current schema.

There wasn't a big discussion about whether or not to index the fields, but they both seem reasonable to index.

The changes do not automatically show up in the UI, so this would require some work from the @elastic/apm-ui team.

implements #1435

@simitt simitt force-pushed the 1435-add-span-context-http-fields branch from 9cf8e34 to 083a16b Compare October 16, 2018 11:39
Comment thread docs/fields.asciidoc Outdated
--
type: long

The status code of the http request.
Copy link
Copy Markdown
Contributor

@jalvz jalvz Oct 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: this is actually the HTTP response.

i am also seeing that we write indifferently HTTP and http, maybe you want to use this opportunity to grep and replace to all caps everywhere in fields ymls / asciidocs

@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Oct 16, 2018

@elastic/apm-server any concerns about indexing those fields? Otherwise I go forward with it.

@simitt simitt changed the base branch from v2 to master October 16, 2018 12:57
@simitt simitt force-pushed the 1435-add-span-context-http-fields branch from 083a16b to 539999c Compare October 16, 2018 16:01
@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Oct 16, 2018

After another discussion with @eyalkoren I went ahead with only indexing context.http.status_code but not context.http.method, as this doesn't seem to be necessary for now.

@simitt simitt force-pushed the 1435-add-span-context-http-fields branch from 539999c to 1f63501 Compare October 17, 2018 14:40
@simitt
Copy link
Copy Markdown
Contributor Author

simitt commented Oct 17, 2018

jenkins, retest this please

Add `status_code` and `method` to `span.context.http` and index them.
@simitt simitt force-pushed the 1435-add-span-context-http-fields branch from 1f63501 to 635072d Compare October 18, 2018 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants