diff --git a/.github/component_owners.yml b/.github/component_owners.yml index 347224bafc..739960cbc1 100644 --- a/.github/component_owners.yml +++ b/.github/component_owners.yml @@ -2,6 +2,8 @@ components: instrumentation/active_storage: - ymtdzzz + instrumentation/anthropic: + - robertlaurin instrumentation/aws_sdk: - jterapin - alextwoods diff --git a/.github/workflows/ci-instrumentation-full.yml b/.github/workflows/ci-instrumentation-full.yml index 20a6976f3a..2e2f8f672f 100644 --- a/.github/workflows/ci-instrumentation-full.yml +++ b/.github/workflows/ci-instrumentation-full.yml @@ -15,6 +15,7 @@ on: - 'instrumentation/active_record/**' - 'instrumentation/active_storage/**' - 'instrumentation/active_support/**' + - 'instrumentation/anthropic/**' - 'instrumentation/aws_sdk/**' - 'instrumentation/aws_lambda/**' - 'instrumentation/base/**' @@ -74,6 +75,7 @@ jobs: - active_record - active_storage - active_support + - anthropic - aws_sdk - aws_lambda - base diff --git a/instrumentation/anthropic/Appraisals b/instrumentation/anthropic/Appraisals index 455df1f70e..ea4b6271c8 100644 --- a/instrumentation/anthropic/Appraisals +++ b/instrumentation/anthropic/Appraisals @@ -4,10 +4,13 @@ # # SPDX-License-Identifier: Apache-2.0 -appraise 'anthropic-latest' do - gem 'anthropic' -end +# Anthropic gem requires Ruby 3.2 +if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.2.0') + appraise 'anthropic-latest' do + gem 'anthropic' + end -appraise 'anthropic-1.9.0' do - gem 'anthropic', '~> 1.9.0' + appraise 'anthropic-1.9.0' do + gem 'anthropic', '~> 1.9.0' + end end diff --git a/instrumentation/anthropic/Gemfile b/instrumentation/anthropic/Gemfile index 328c9497a4..e04a52a1c1 100644 --- a/instrumentation/anthropic/Gemfile +++ b/instrumentation/anthropic/Gemfile @@ -10,7 +10,6 @@ gemspec group :test do gem 'appraisal', '~> 2.5' - gem 'debug' gem 'bundler', '~> 2.4' gem 'minitest', '~> 5.0' gem 'opentelemetry-instrumentation-net_http', path: '../net_http' diff --git a/instrumentation/anthropic/test/test_helper.rb b/instrumentation/anthropic/test/test_helper.rb index 6ab0dbbbbc..02fc552bfd 100644 --- a/instrumentation/anthropic/test/test_helper.rb +++ b/instrumentation/anthropic/test/test_helper.rb @@ -10,7 +10,6 @@ require 'minitest/autorun' require 'webmock/minitest' require 'anthropic' -require 'debug/prelude' require 'opentelemetry-instrumentation-net_http' # global opentelemetry-sdk setup: diff --git a/releases/Gemfile b/releases/Gemfile index a23243daf7..ef1f02d1ae 100644 --- a/releases/Gemfile +++ b/releases/Gemfile @@ -4,6 +4,7 @@ source 'https://rubygems.org' gem 'mutex_m' if Gem::Requirement.new('>= 3.4').satisfied_by?(Gem::Version.new(RUBY_VERSION)) +gem 'anthropic' gem 'aws_sdk' gem 'bunny' gem 'concurrent-ruby'