Skip to content

Commit

Permalink
style: Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
kaylareopelle committed Sep 12, 2024
1 parent b2a3764 commit 38fc818
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 14 deletions.
15 changes: 14 additions & 1 deletion exporter/otlp-logs/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
inherit_from:
- ../../contrib/rubocop.yml

AllCops:
Exclude:
- "lib/opentelemetry/proto/**/*"
- "vendor/**/*"

Naming/FileName:
Exclude:
- "lib/opentelemetry-exporter-otlp-logs.rb"
- lib/opentelemetry-exporter-otlp-logs.rb
Style/StringLiterals:
Exclude:
- gemfiles/**/*
Style/FrozenStringLiteralComment:
Exclude:
- gemfiles/**/*
Metrics/BlockLength:
Enabled: false
8 changes: 0 additions & 8 deletions exporter/otlp-logs/test/.rubocop.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@
describe 'ssl_verify_mode:' do
it 'can be set to VERIFY_NONE by an envvar' do
exp = OpenTelemetry::TestHelpers.with_env('OTEL_RUBY_EXPORTER_OTLP_SSL_VERIFY_NONE' => 'true') do
binding.irb
OpenTelemetry::Exporter::OTLP::LogsExporter.new
end
http = exp.instance_variable_get(:@http)
Expand Down Expand Up @@ -561,7 +560,7 @@
severity_text: 'DEBUG',
severity_number: 5,
body: 'log_1',
attributes: { 'b'=> true },
attributes: { 'b' => true },
trace_id: OpenTelemetry::Trace.generate_trace_id,
span_id: OpenTelemetry::Trace.generate_span_id,
trace_flags: OpenTelemetry::Trace::TraceFlags::DEFAULT,
Expand All @@ -574,7 +573,7 @@
severity_text: 'WARN',
severity_number: 13,
body: 'log_1',
attributes: { 'a'=> false },
attributes: { 'a' => false },
trace_id: OpenTelemetry::Trace.generate_trace_id,
span_id: OpenTelemetry::Trace.generate_span_id,
trace_flags: OpenTelemetry::Trace::TraceFlags::DEFAULT,
Expand All @@ -587,7 +586,7 @@
severity_text: 'ERROR',
severity_number: 17,
body: 'log_1',
attributes: { 'c'=> 12345 },
attributes: { 'c' => 12_345 },
trace_id: OpenTelemetry::Trace.generate_trace_id,
span_id: OpenTelemetry::Trace.generate_span_id,
trace_flags: OpenTelemetry::Trace::TraceFlags::DEFAULT,
Expand Down Expand Up @@ -661,7 +660,7 @@
severity_text: lr3[:severity_text],
body: Opentelemetry::Proto::Common::V1::AnyValue.new(string_value: lr3[:body]),
attributes: [
Opentelemetry::Proto::Common::V1::KeyValue.new(key: 'c', value: Opentelemetry::Proto::Common::V1::AnyValue.new(int_value: 12345))
Opentelemetry::Proto::Common::V1::KeyValue.new(key: 'c', value: Opentelemetry::Proto::Common::V1::AnyValue.new(int_value: 12_345))
],
dropped_attributes_count: 0,
flags: lr3[:trace_flags].instance_variable_get(:@flags),
Expand Down

0 comments on commit 38fc818

Please sign in to comment.