Skip to content

Commit

Permalink
feat: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
xuan-cao-swi committed Nov 21, 2023
1 parent 1f1256f commit cc0b1df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def encode(metrics_data) # rubocop:disable Metrics/MethodLength, Metrics/Cycloma
# current metric sdk only implements instrument: :counter -> :sum, :histogram -> :histogram
#
# metrics [MetricData]
def as_otlp_metrics(metrics) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
def as_otlp_metrics(metrics) # rubocop:disable Metrics/MethodLength
case metrics.instrument_kind
when :observable_gauge
Opentelemetry::Proto::Metrics::V1::Metric.new(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@
counter.add(5, attributes: { 'foo' => 'bar' })

histogram = meter.create_histogram('test_histogram', unit: 'smidgen', description: 'a small amount of something')
histogram.record(10, attributes: {'oof' => 'rab'})
histogram.record(10, attributes: { 'oof' => 'rab' })
exporter.pull
meter_provider.shutdown

Expand Down

0 comments on commit cc0b1df

Please sign in to comment.