Skip to content

Commit

Permalink
Merge pull request #273 from Shopify/update-monitoring-example
Browse files Browse the repository at this point in the history
Update README monitoring example
  • Loading branch information
spike01 authored Oct 8, 2020
2 parents 55b7ba0 + 674a789 commit 0421d51
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,11 +648,11 @@ Semian internals. For example to instrument just events with
# `scope` is `connection` or `query` (others can be instrumented too from the adapter)
# `adapter` is the name of the adapter (mysql2, redis, ..)
Semian.subscribe do |event, resource, scope, adapter|
StatsD.increment("Shopify.#{adapter}.semian.#{event}", 1, tags: [
"resource:#{resource.name}",
"total_tickets:#{resource.tickets}",
"type:#{scope}",
])
StatsD.increment("semian.#{event}", 1, tags: {
resource: resource.name,
adapter: adapter,
type: scope,
})
end
```

Expand Down

0 comments on commit 0421d51

Please sign in to comment.