Skip to content

Commit

Permalink
Merge pull request #284 from kranzky/master
Browse files Browse the repository at this point in the history
Fix incorrect metrics usage in documentation
  • Loading branch information
reidmorrison authored Jun 27, 2024
2 parents 7f57034 + f766724 commit a448672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## [unreleased]

- Add support for Ruby 3.3
- Fix incorrect metrics usage examples in documentation

## [4.15.0]

Expand Down
4 changes: 2 additions & 2 deletions docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Send metrics to [Statsd](https://github.com/quasor/statsd) via UDP so it can rol
[graphite](http://graphite.wikidot.com/) or [mongodb](http://mongodb.org).

~~~ruby
subscriber = SemanticLogger::Metrics::Statsd.new(url: "udp://localhost:8125")
subscriber = SemanticLogger::Metric::Statsd.new(url: "udp://localhost:8125")
SemanticLogger.on_log(subscriber)
~~~

Expand All @@ -78,7 +78,7 @@ SemanticLogger.on_log(subscriber)
To forward metrics to New Relic so that they can be displayed using custom dashboards:

~~~ruby
subscriber = SemanticLogger::Metrics::NewRelic.new
subscriber = SemanticLogger::Metric::NewRelic.new
SemanticLogger.on_log(subscriber)
~~~

Expand Down

0 comments on commit a448672

Please sign in to comment.