Skip to content

Commit 1e8c2b2

Browse files
committed
remove zero as reference name
1 parent 5104dd8 commit 1e8c2b2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

opentelemetry-auto-instrumentation/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Opentelemetry Auto Instrumentation
22

3-
The `opentelemetry-auto-instrumentation` gem provides an easy way to load and initialize opentelemetry-ruby for zero-code instrumentation.
3+
The `opentelemetry-auto-instrumentation` gem provides an easy way to load and initialize opentelemetry-ruby for auto instrumentation.
44

55
## What is OpenTelemetry?
66

@@ -131,7 +131,7 @@ These environment variables are not standard OpenTelemetry environment variables
131131
| `OTEL_RUBY_OPERATOR` | Set to `true` to set the binding path for the OpenTelemetry Operator. | `/otel-auto-instrumentation-ruby` | N/A |
132132
| `OTEL_RUBY_RESOURCE_DETECTORS` | Determine what kind of resource detector is needed. Currently supports `container`, `azure`, and `google_cloud_platform`. Use commas to separate multiple detectors. | nil | `container,azure` |
133133
| `OTEL_RUBY_ENABLED_INSTRUMENTATIONS` | Shortcut used when you only want to instrument one or a couple of particular libraries. | nil | `redis,active_record` |
134-
| `OTEL_RUBY_ZERO_CODE_DEBUG` | Set to `true` if want to see some debug information. This to avoid preload logger gem | nil | N/A |
134+
| `OTEL_RUBY_AUTO_INSTRUMENTATION_DEBUG` | Set to `true` if want to see some debug information. This to avoid preload logger gem | nil | N/A |
135135
| `OTEL_RUBY_UNLOAD_LIBRARY` | Use OTEL_RUBY_UNLOAD_LIBRARY to avoid certain gem preload (esp. google protobuf) | nil | N/A |
136136

137137
## How can I get involved?

opentelemetry-auto-instrumentation/lib/opentelemetry-auto-instrumentation.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def determine_enabled_instrumentation
8282

8383
def require_otel
8484
lib = File.expand_path('..', __dir__)
85-
$LOAD_PATH.reject! { |path| path.include?('zero-code-instrumentation') }
85+
$LOAD_PATH.reject! { |path| path.include?('opentelemetry-auto-instrumentation') }
8686
$LOAD_PATH.unshift(lib)
8787

8888
begin
@@ -115,7 +115,7 @@ def require_otel
115115
# /otel-auto-instrumentation-ruby is set in opentelemetry-operator ruby.go
116116
operator_gem_path = ENV['OTEL_RUBY_OPERATOR'].nil? || ENV['OTEL_RUBY_OPERATOR'] == 'true' ? '/otel-auto-instrumentation-ruby' : nil
117117
additional_gem_path = operator_gem_path || ENV['OTEL_RUBY_ADDITIONAL_GEM_PATH'] || Gem.dir
118-
puts "Loading the additional gem path from #{additional_gem_path}" if ENV['OTEL_RUBY_ZERO_CODE_DEBUG'] == 'true'
118+
puts "Loading the additional gem path from #{additional_gem_path}" if ENV['OTEL_RUBY_AUTO_INSTRUMENTATION_DEBUG'] == 'true'
119119

120120
# use OTEL_RUBY_UNLOAD_LIBRARY to avoid certain gem preload (esp. google protobuf)
121121
# e.g export OTEL_RUBY_UNLOAD_LIBRARY=google-protobuf;googleapis-common-protos-types
@@ -126,13 +126,13 @@ def require_otel
126126
(file_path.include?('opentelemetry') || file_path.include?('google')) && !unload_libraries.include?(gem_name)
127127
end
128128

129-
puts "Loaded Library File Paths #{loaded_library_file_path.join(',')}" if ENV['ZERO_CODE_DEBUG'] == 'true'
129+
puts "Loaded Library File Paths #{loaded_library_file_path.join(',')}" if ENV['OTEL_RUBY_AUTO_INSTRUMENTATION_DEBUG'] == 'true'
130130

131131
loaded_library_file_path.each do |file_path|
132132
$LOAD_PATH.unshift("#{file_path}/lib")
133133
end
134134

135-
puts "$LOAD_PATH after unshift: #{$LOAD_PATH.join(',')}" if ENV['OTEL_RUBY_ZERO_CODE_DEBUG'] == 'true'
135+
puts "$LOAD_PATH after unshift: #{$LOAD_PATH.join(',')}" if ENV['OTEL_RUBY_AUTO_INSTRUMENTATION_DEBUG'] == 'true'
136136

137137
require 'opentelemetry-sdk'
138138
require 'opentelemetry-instrumentation-all'

opentelemetry-auto-instrumentation/opentelemetry-auto-instrumentation.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Gem::Specification.new do |spec|
1414
spec.authors = ['OpenTelemetry Authors']
1515
spec.email = ['[email protected]']
1616

17-
spec.summary = 'Zero-code instrumentation for opentelemetry ruby'
18-
spec.description = 'Zero-code instrumentation for opentelemetry ruby'
17+
spec.summary = 'auto-instrumentation for opentelemetry ruby'
18+
spec.description = 'auto-instrumentation for opentelemetry ruby'
1919
spec.homepage = 'https://github.com/open-telemetry/opentelemetry-ruby-contrib'
2020
spec.license = 'Apache-2.0'
2121

@@ -46,7 +46,7 @@ Gem::Specification.new do |spec|
4646

4747
if spec.respond_to?(:metadata)
4848
spec.metadata['changelog_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}/file/CHANGELOG.md"
49-
spec.metadata['source_code_uri'] = 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/zero-code-instrumentation'
49+
spec.metadata['source_code_uri'] = 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/opentelemetry-auto-instrumentation'
5050
spec.metadata['bug_tracker_uri'] = 'https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues'
5151
spec.metadata['documentation_uri'] = "https://rubydoc.info/gems/#{spec.name}/#{spec.version}"
5252
end

opentelemetry-auto-instrumentation/test/opentelemetry-auto-instrumentation_test.rb

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

77
require 'test_helper'
88

9-
describe 'ZeroCodeInstrumentation' do
9+
describe 'AutoInstrumentation' do
1010
before do
1111
OpenTelemetry::TestHelpers.reset_opentelemetry
1212
end

0 commit comments

Comments
 (0)