concepts / log-json-schema / contexts / release-context

Log JSON Schema - context.release

Note: This context is automatically added to your logs through our libraries

The release context adds data about the current release (or deployment) of your application.

Example JSON Structure

1
2
3
4
5
6
7
8
9
{
  "context": {
    "http": {
      "commit_hash": "xf45j3kdk3k7l89j3jf",
      "created_at": "2017-01-01T01:02:23.432322Z",
      "version": "v2.1.2"
    }
  }
}

Field descriptions

NameTypeDescription
context.release.commit_hashstringThe CVS commit hash for the current release. optional
context.release.created_atstringWhen the release was created. optional
context.release.versionstringThe version of the current release. optional

All fields are optional, but one must be supplied.

Using this data

  1. Search it with queries like: release.version:1.2.1 or has:release.version
  2. Alert on it with threshold based alerts
  3. Graph & visualize it
  4. Access this data by viewing the log's metadata
Questions?

Chat with us, just click the talk button in the bottom right of this page.

Chat with us
Sign Up

Log better and solve problems faster, today. Install in under a minute.

Sign Up