Skip to content

Commit

Permalink
Remove deprecated code path. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored Jun 25, 2023
1 parent 3eee3c8 commit b5fccd2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/metrics/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,14 @@ def metrics_provider
end
end

module Deprecated
def metric(...)
warn "Metrics::Provider#metric is deprecated. Please use Metrics.metric instead."
Metrics.metric(...)
end
end

private_constant :Singleton

# Bail out if there is no backend configured.
if self.enabled?
# Extend the specified class in order to emit traces.
def self.Provider(klass, &block)
klass.extend(Singleton)

provider = klass.metrics_provider
provider.extend(Deprecated)

klass.prepend(provider)

provider.module_exec(&block) if block_given?
Expand Down

0 comments on commit b5fccd2

Please sign in to comment.