Skip to content

Commit

Permalink
Merge branch 'main' into mysql2-execute-span
Browse files Browse the repository at this point in the history
  • Loading branch information
xuan-cao-swi authored Jan 9, 2025
2 parents b0da5a8 + e3c020f commit 241c7b4
Show file tree
Hide file tree
Showing 223 changed files with 2,258 additions and 691 deletions.
5 changes: 3 additions & 2 deletions .github/actions/test_gem/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
# ...but not for appraisals, sadly.
- name: Install Ruby ${{ inputs.ruby }} with dependencies
if: "${{ steps.setup.outputs.appraisals == 'false' }}"
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: "${{ inputs.ruby }}"
working-directory: "${{ steps.setup.outputs.gem_dir }}"
Expand All @@ -77,7 +77,7 @@ runs:
# If we're using appraisals, do it all manually.
- name: Install Ruby ${{ inputs.ruby }} without dependencies
if: "${{ steps.setup.outputs.appraisals == 'true' }}"
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: "${{ inputs.ruby }}"
bundler: "latest"
Expand All @@ -95,6 +95,7 @@ runs:
run: |
# 💎 Install dependencies and generate appraisals 💎
bundle install --quiet --jobs=3 --retry=4
bundle exec appraisal clean
bundle exec appraisal generate
working-directory: "${{ steps.setup.outputs.gem_dir }}"

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-contrib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-helpers-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"

propagators:
strategy:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-propagator-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"

resource-detectors:
strategy:
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"

processors:
strategy:
Expand Down Expand Up @@ -191,4 +191,4 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-processor-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"
2 changes: 1 addition & 1 deletion .github/workflows/ci-instrumentation-with-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"
services:
memcached:
image: memcached:alpine
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-instrumentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ jobs:
uses: ./.github/actions/test_gem
with:
gem: "opentelemetry-instrumentation-${{ matrix.gem }}"
ruby: "jruby-9.4.8.0"
ruby: "jruby-9.4.9.0"
13 changes: 8 additions & 5 deletions .github/workflows/ci-markdown-link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ name: Markdown Link Check

on:
pull_request:
paths:
- '**/*.md'

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: "Markdown Link Check"
uses: gaurav-nelson/github-action-markdown-link-check@v1
# equivalent cli: linkspector check
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
config-file: '.markdown-link-check.json'
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
fail_on_error: true
2 changes: 1 addition & 1 deletion .github/workflows/ci-markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

# equivalent cli: markdownlint-cli2 "**/*.md" "#**/CHANGELOG.md" --config .markdownlint.json
- name: "Markdown Lint Check"
uses: DavidAnson/markdownlint-cli2-action@v17
uses: DavidAnson/markdownlint-cli2-action@v19
with:
fix: false
globs: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/installation-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
fail-fast: false
matrix:
ruby-version:
- 3.4
- 3.3
- 3.2
- 3.1
- 3.0
name: ${{ matrix.ruby-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ATTENTION: Dependabot does not know how to update shared actions file.
# If you see it update setup-ruby here also update it as part of actions/test_gem/action.yml
- uses: ruby/setup-ruby@v1.198.0
- uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ matrix.ruby-version }}
- name: "Install Latest Gem Versions on ${{ matrix.ruby-version }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-hook-on-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-hook-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-perform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
- uses: ruby/setup-ruby@v1.198.0
- uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: "3.0"
bundler: latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-request-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-retry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Install Ruby ${{ env.ruby_version }}
uses: ruby/setup-ruby@v1.198.0
uses: ruby/setup-ruby@v1.207.0
with:
ruby-version: ${{ env.ruby_version }}
- name: Checkout repo
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

# Appraisals
instrumentation/**/gemfiles
instrumentation/**/tmp/**/*

# Sqlite file for tests
instrumentation/active_record/db
Expand All @@ -26,3 +27,4 @@ instrumentation/active_record/db
.ruby-version

tags
!**/*/.gitkeep
2 changes: 1 addition & 1 deletion .instrumentation_generator/templates/gemspec.tt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'opentelemetry-sdk', '~> 1.0'
spec.add_development_dependency 'opentelemetry-test-helpers', '~> 0.3'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rubocop', '~> 1.66.0'
spec.add_development_dependency 'rubocop', '~> 1.69.1'
spec.add_development_dependency 'rubocop-performance', '~> 1.19.1'
spec.add_development_dependency 'simplecov', '~> 0.17.1'
spec.add_development_dependency 'webmock', '~> 3.24.0'
Expand Down
10 changes: 0 additions & 10 deletions .markdown-link-check.json

This file was deleted.

87 changes: 44 additions & 43 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
{
"helpers/mysql": "0.1.1",
"helpers/sql_obfuscation": "0.1.1",
"instrumentation/base": "0.22.4",
"instrumentation/graphql": "0.28.2",
"helpers/sql-obfuscation": "0.2.0",
"instrumentation/action_mailer": "0.2.0",
"instrumentation/action_pack": "0.10.0",
"instrumentation/action_view": "0.7.3",
"instrumentation/active_job": "0.7.8",
"instrumentation/active_model_serializers": "0.20.2",
"instrumentation/active_record": "0.8.1",
"instrumentation/active_support": "0.6.0",
"instrumentation/all": "0.69.0",
"instrumentation/aws_lambda": "0.1.1",
"instrumentation/aws_sdk": "0.7.0",
"instrumentation/base": "0.22.6",
"instrumentation/bunny": "0.21.4",
"instrumentation/concurrent_ruby": "0.21.4",
"instrumentation/dalli": "0.25.4",
"instrumentation/delayed_job": "0.22.4",
"instrumentation/ethon": "0.21.8",
"instrumentation/excon": "0.22.4",
"instrumentation/faraday": "0.24.6",
"instrumentation/grape": "0.2.0",
"instrumentation/graphql": "0.28.4",
"instrumentation/gruf": "0.2.1",
"instrumentation/racecar": "0.3.2",
"instrumentation/rake": "0.2.2",
"instrumentation/rdkafka": "0.4.6",
"instrumentation/trilogy": "0.59.3",
"instrumentation/active_support": "0.5.1",
"instrumentation/action_mailer": "0.1.0",
"instrumentation/action_view": "0.7.0",
"instrumentation/action_pack": "0.9.0",
"instrumentation/active_job": "0.7.1",
"instrumentation/resque": "0.5.2",
"instrumentation/bunny": "0.21.3",
"instrumentation/active_record": "0.7.2",
"instrumentation/aws_sdk": "0.5.2",
"instrumentation/aws_lambda": "0.1.0",
"instrumentation/lmdb": "0.22.2",
"instrumentation/http": "0.23.3",
"instrumentation/http_client": "0.22.6",
"instrumentation/http": "0.23.4",
"instrumentation/http_client": "0.22.7",
"instrumentation/httpx": "0.1.2",
"instrumentation/koala": "0.20.5",
"instrumentation/active_model_serializers": "0.20.1",
"instrumentation/concurrent_ruby": "0.21.3",
"instrumentation/dalli": "0.25.3",
"instrumentation/delayed_job": "0.22.2",
"instrumentation/ethon": "0.21.7",
"instrumentation/excon": "0.22.3",
"instrumentation/faraday": "0.24.4",
"instrumentation/mongo": "0.22.3",
"instrumentation/mysql2": "0.27.1",
"instrumentation/net_http": "0.22.6",
"instrumentation/pg": "0.27.3",
"instrumentation/que": "0.8.1",
"instrumentation/rack": "0.24.5",
"instrumentation/rails": "0.30.2",
"instrumentation/grape": "0.1.8",
"instrumentation/redis": "0.25.6",
"instrumentation/restclient": "0.22.6",
"instrumentation/lmdb": "0.22.3",
"instrumentation/mongo": "0.22.4",
"instrumentation/mysql2": "0.28.0",
"instrumentation/net_http": "0.22.7",
"instrumentation/pg": "0.29.0",
"instrumentation/que": "0.8.4",
"instrumentation/racecar": "0.3.4",
"instrumentation/rack": "0.25.0",
"instrumentation/rails": "0.33.0",
"instrumentation/rake": "0.2.2",
"instrumentation/rdkafka": "0.4.8",
"instrumentation/redis": "0.25.7",
"instrumentation/resque": "0.5.2",
"instrumentation/restclient": "0.22.7",
"instrumentation/rspec": "0.3.3",
"instrumentation/ruby_kafka": "0.21.1",
"instrumentation/sidekiq": "0.25.5",
"instrumentation/sinatra": "0.23.5",
"instrumentation/all": "0.56.0",
"instrumentation/ruby_kafka": "0.21.3",
"instrumentation/sidekiq": "0.25.7",
"instrumentation/sinatra": "0.24.1",
"instrumentation/trilogy": "0.60.0",
"processor/baggage": "0.2.0",
"propagator/ottrace": "0.21.2",
"propagator/xray": "0.22.1",
"propagator/ottrace": "0.21.3",
"propagator/vitess": "0.1.0",
"propagator/xray": "0.22.2",
"resources/azure": "0.1.0",
"resources/container": "0.1.1",
"resources/google_cloud_platform": "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
source 'https://rubygems.org'

gem 'rake', '~> 13.0'
gem 'rubocop', '~> 1.67.0'
gem 'rubocop-performance', '~> 1.21.0'
gem 'rubocop', '~> 1.69.1'
gem 'rubocop-performance', '~> 1.23.0'
3 changes: 3 additions & 0 deletions POST_INSTALL_MESSAGE
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Ruby 3.0 has reached EoL 2024-04-23. OTel Ruby Contrib gems will no longer accept new features or bug fixes for Ruby 3.0 after 2025-01-15. Please upgrade to Ruby 3.1 or higher to continue receiving updates.

Rails 6.1 has reached EoL 2024-10-01. OTel Ruby Contrib gems will no longer accept new features or bug fixes for Rails 6.1 after 2025-01-15. Please upgrade to Rails 7.0 or higher to continue receiving updates.
36 changes: 36 additions & 0 deletions bin/sync-release-please
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env ruby

require 'json'

# Function to extract VERSION constant from a file
def extract_version(file_path)
version = nil
File.open(file_path, 'r') do |file|
file.each_line do |line|
if line =~ /VERSION\s*=\s*['"]([^'"]+)['"]/
version = $1
break
end
end
end
version
end

# Hash to store the directory names and their versions
versions = {}

# Find all version.rb files
Dir.glob('**/version.rb').each do |file_path|
# Extract the top 2 level directories
top_dirs = file_path.split('/')[0..1].join('/')
# Extract the version
version = extract_version(file_path)
# Store in the hash
versions[top_dirs] = version if version
end

# Write the hash to a JSON file
File.open('.release-please-manifest.json', 'w') do |file|
file.write(JSON.pretty_generate(versions))
file.write("\n")
end
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.5"

x-shared-config:
base: &base
command: /bin/bash
Expand Down
4 changes: 4 additions & 0 deletions helpers/mysql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History: opentelemetry-helpers-mysql

### v0.1.2 / 2024-11-26

* (No significant changes)

### v0.1.1 / 2024-06-18

* FIXED: Relax otel common gem constraints
Expand Down
2 changes: 1 addition & 1 deletion helpers/mysql/lib/opentelemetry/helpers/mysql/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
module OpenTelemetry
module Helpers
module MySQL
VERSION = '0.1.1'
VERSION = '0.1.2'
end
end
end
Loading

0 comments on commit 241c7b4

Please sign in to comment.