Skip to content

Commit

Permalink
Fix typo typo in correlation context module
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlaurin committed May 14, 2020
1 parent dd8545b commit 9f68043
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sdk/lib/opentelemetry/sdk/correlation_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

module OpenTelemetry
module SDK
# Contains operational implementataions of the CorrelationContext::Manager
# Contains operational implementations of the CorrelationContext::Manager
module CorrelationContext
end
end
Expand Down
2 changes: 1 addition & 1 deletion sdk/lib/opentelemetry/sdk/resources/auto_detector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module AutoDetector
DETECTORS = [
OpenTelemetry::SDK::Resources::Detectors::GoogleCloudPlatform,
OpenTelemetry::SDK::Resources::Detectors::Telemetry
]
].freeze

def detect
resources = DETECTORS.map(&:detect)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def detect

def hostname
ENV['HOSTNAME'] || `hostname`&.strip
rescue StandardError => e
rescue StandardError
''
end
end
Expand Down
2 changes: 1 addition & 1 deletion sdk/opentelemetry-sdk.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.5.0'

spec.add_dependency 'opentelemetry-api', '~> 0.4.0'
spec.add_dependency 'google-cloud-env'
spec.add_dependency 'opentelemetry-api', '~> 0.4.0'

spec.add_development_dependency 'bundler', '>= 1.17'
spec.add_development_dependency 'faraday', '~> 0.13'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
mock = MiniTest::Mock.new
mock.expect(:compute_engine?, true)
mock.expect(:project_id, 'opentelemetry')
mock.expect(:instance_attribute, 'us-central1', %w(cluster-location))
mock.expect(:instance_attribute, 'us-central1', %w[cluster-location])
mock.expect(:instance_zone, 'us-central1-a')
mock.expect(:lookup_metadata, 'opentelemetry-test', %w(instance id))
mock.expect(:lookup_metadata, 'opentelemetry-test', %w(instance hostname))
mock.expect(:instance_attribute, 'opentelemetry-cluster', %w(cluster-name))
mock.expect(:lookup_metadata, 'opentelemetry-test', %w[instance id])
mock.expect(:lookup_metadata, 'opentelemetry-test', %w[instance hostname])
mock.expect(:instance_attribute, 'opentelemetry-cluster', %w[cluster-name])
mock.expect(:kubernetes_engine?, true)
mock.expect(:kubernetes_engine_namespace_id, 'default')

Expand Down

0 comments on commit 9f68043

Please sign in to comment.