forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-merge-to-di' into base-merge
* master-merge-to-di: (37 commits) Revert "Revert "DEBUG-2334 Add Debugger component (DataDog#3640)"" Update lockfiles for release 2.0.0 Bump version 2.0.0.rc1 to 2.0.0 Add 2.0.0 to CHANGELOG.md Add missing Apache 2.0 license from gemspec Use ffi 1.16.3 Add platform Output gem version Output debug logs Fix spec to exclude .vscode directory Fix docker run command Add vscode settings for dockerfile file associations Update gem version Update gemfiles/* Update `ffi` in Gemfile Remove experimental warning from OpenTelemetry.md Remove latest tag on docker images add installer system tests Extract trace id format helper method (DataDog#3670) Remaps http status code tag for otel span for trace metrics (DataDog#3664) ...
- Loading branch information
Showing
771 changed files
with
3,501 additions
and
961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
mkdir sources | ||
|
||
cp -r ../tmp/* sources | ||
sed -i "s#/opt/datadog/apm/library/ruby/#/opt/datadog-packages/datadog-apm-library-ruby/$RUBY_PACKAGE_VERSION/#g" sources/host_inject.rb | ||
|
||
echo -n "$RUBY_PACKAGE_VERSION" > sources/version | ||
|
||
datadog-package create \ | ||
--version="$RUBY_PACKAGE_VERSION" \ | ||
--package="datadog-apm-library-ruby" \ | ||
--archive=true \ | ||
--archive-path="datadog-apm-library-ruby-$RUBY_PACKAGE_VERSION-$ARCH.tar" \ | ||
--arch "$ARCH" \ | ||
--os "linux" \ | ||
./sources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env ruby | ||
|
||
require 'bundler/inline' | ||
|
||
gemfile { gem 'gems', source: 'https://rubygems.org' } | ||
|
||
require 'rubygems' | ||
require 'gems' | ||
|
||
version = ARGV[0].chomp | ||
version = version.delete_prefix('v') if version.start_with?('v') | ||
|
||
candidate = Gem::Version.new(version) | ||
|
||
retry_count = 0 | ||
max_retries = 60 | ||
interval = 60 | ||
|
||
loop do | ||
versions = Gems.versions('datadog').map { |h| Gem::Version.new(h['number']) } | ||
|
||
if versions.include?(candidate) | ||
puts "Gem version #{candidate} found!" | ||
exit 0 | ||
else | ||
retry_count += 1 | ||
puts "Attempt(#{retry_count}): Gem 'datadog' version '#{candidate}' not found." | ||
|
||
if retry_count >= max_retries | ||
puts "Max retries(#{max_retries}) reached, stopping..." | ||
exit 1 | ||
else | ||
puts "Retrying in #{interval} seconds..." | ||
sleep interval | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.