Skip to content

Commit

Permalink
Merge pull request #157 from buildkite/pie-985-add-annotation-instruc…
Browse files Browse the repository at this point in the history
…tions-to-the-ruby

Document the annotation method
  • Loading branch information
swebb authored Oct 3, 2022
2 parents 291a08f + 8a02e9d commit 32407ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ git commit -am "Add Buildkite Test Analytics"
git push origin add-buildkite-test-analytics
```

## 🗨️ Annotations

This gem allows adding custom annotations to the span data sent to Buildkite using the [.annotate](https://github.com/buildkite/test-collector-ruby/blob/d9fe11341e4aa470e766febee38124b644572360/lib/buildkite/test_collector.rb#L64) method. For example:

```ruby
Buildkite::TestCollector.annotate("User logged in successfully")
```

This is particularly useful for tests that generate a lot of span data such as system/feature tests.

## 🔍 Debugging

To enable debugging output, set the `BUILDKITE_ANALYTICS_DEBUG_ENABLED` environment variable to `true`.
Expand Down

0 comments on commit 32407ca

Please sign in to comment.