Skip to content

Commit 83d9ae9

Browse files
committed
appease Rubocop after rebasing branch against main
1 parent de78cfc commit 83d9ae9

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

semantic_conventions/Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def semconvgen(semconvrepo, kind:, only:)
8585
end
8686

8787
task :update_includes do
88-
`sed -i.bak "s/::SemanticConventions_.*::/::SemanticConventions_#{SPEC_VERSION.tr(".", "_")}::/g" lib/opentelemetry/semantic_conventions/trace.rb`
89-
`sed -i.bak "s/::SemanticConventions_.*::/::SemanticConventions_#{SPEC_VERSION.tr(".", "_")}::/g" lib/opentelemetry/semantic_conventions/resource.rb`
90-
`sed -i.bak "s/#{PREV_SPEC_VERSION.to_s.gsub(/\./, "\\.")}/#{SPEC_VERSION}/" lib/opentelemetry/semantic_conventions.rb`
88+
`sed -i.bak "s/::SemanticConventions_.*::/::SemanticConventions_#{SPEC_VERSION.tr('.', '_')}::/g" lib/opentelemetry/semantic_conventions/trace.rb`
89+
`sed -i.bak "s/::SemanticConventions_.*::/::SemanticConventions_#{SPEC_VERSION.tr('.', '_')}::/g" lib/opentelemetry/semantic_conventions/resource.rb`
90+
`sed -i.bak "s/#{PREV_SPEC_VERSION.to_s.gsub('.', '\\.')}/#{SPEC_VERSION}/" lib/opentelemetry/semantic_conventions.rb`
9191
`rm lib/opentelemetry/semantic_conventions/trace.rb.bak`
9292
`rm lib/opentelemetry/semantic_conventions/resource.rb.bak`
9393
`rm lib/opentelemetry/semantic_conventions.rb.bak`

semantic_conventions/lib/opentelemetry/semantic_conventions/resource.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
module OpenTelemetry
88
module SemanticConventions
9+
# Semantic conventions for resource attributes
910
module Resource
1011
def self.const_missing(const_name)
1112
attribute_name = OpenTelemetry::SemanticConventions_1_20_0::Resource.const_get(const_name)

semantic_conventions/lib/opentelemetry/semantic_conventions/trace.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
module OpenTelemetry
88
module SemanticConventions
9+
# Semantic conventions for trace attributes
910
module Trace
1011
def self.const_missing(const_name)
1112
attribute_name = OpenTelemetry::SemanticConventions_1_20_0::Trace.const_get(const_name)

0 commit comments

Comments
 (0)