mjm-honeycomb Make Honeycomb events for DB queries

Pass context into DB methods so they can be associated with the request
that made the query.

Matt Moriarity avatar Matt Moriarity

Push event #274.1 passed

  • Ran for
AMD64
no language set
Git
.travis.yml
language: go
go: '1.10.3'
sudo: false

env:
  global:
  - UNAME="$(uname | tr '[:upper:]' '[:lower:]')"

addons:
  artifacts:
    paths:
    - './build/$UNAME/amd64/jb-server'
    target_paths:
    - 'travis-ci/jupiter-brain/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER'
    - 'travis-ci/jupiter-brain/$(git describe --always --dirty --tags)'
    - 'travis-ci/jupiter-brain/$TRAVIS_BRANCH'

before_install:
- go get github.com/FiloSottile/gvt

script:
- make deps
- make test
- make test-race
- git diff --exit-code
- git diff --cached --exit-code

after_success:
- mkdir -p build/$UNAME/amd64
- cp -v ~/gopath/bin/jb-server build/$UNAME/amd64/jb-server
- echo $ARTIFACTS_PATHS
Build Config
{
  "go": [
    "1.10.3"
  ],
  "os": [
    "linux"
  ],
  "env": {
    "global": [
      "UNAME=\"$(uname | tr '[:upper:]' '[:lower:]')\""
    ]
  },
  "dist": "trusty",
  "sudo": false,
  "addons": {
    "artifacts": {
      "paths": [
        "./build/$UNAME/amd64/jb-server"
      ],
      "enabled": true,
      "target_paths": [
        "travis-ci/jupiter-brain/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER",
        "travis-ci/jupiter-brain/$(git describe --always --dirty --tags)",
        "travis-ci/jupiter-brain/$TRAVIS_BRANCH"
      ]
    }
  },
  "script": [
    "make deps",
    "make test",
    "make test-race",
    "git diff --exit-code",
    "git diff --cached --exit-code"
  ],
  "language": "go",
  "after_success": [
    "mkdir -p build/$UNAME/amd64",
    "cp -v ~/gopath/bin/jb-server build/$UNAME/amd64/jb-server",
    "echo $ARTIFACTS_PATHS"
  ],
  "before_install": [
    "go get github.com/FiloSottile/gvt"
  ]
}