atatus 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +57 -0
- data/LICENSE +65 -0
- data/LICENSE-THIRD-PARTY +205 -0
- data/README.md +13 -0
- data/Rakefile +19 -0
- data/atatus.gemspec +36 -0
- data/atatus.yml +2 -0
- data/bench/.gitignore +2 -0
- data/bench/app.rb +53 -0
- data/bench/benchmark.rb +36 -0
- data/bench/report.rb +55 -0
- data/bench/rubyprof.rb +39 -0
- data/bench/stackprof.rb +23 -0
- data/bin/build_docs +5 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/bin/with_framework +7 -0
- data/lib/atatus.rb +325 -0
- data/lib/atatus/agent.rb +260 -0
- data/lib/atatus/central_config.rb +141 -0
- data/lib/atatus/central_config/cache_control.rb +34 -0
- data/lib/atatus/collector/base.rb +329 -0
- data/lib/atatus/collector/builder.rb +317 -0
- data/lib/atatus/collector/transport.rb +72 -0
- data/lib/atatus/config.rb +248 -0
- data/lib/atatus/config/bytes.rb +25 -0
- data/lib/atatus/config/duration.rb +23 -0
- data/lib/atatus/config/options.rb +134 -0
- data/lib/atatus/config/regexp_list.rb +13 -0
- data/lib/atatus/context.rb +33 -0
- data/lib/atatus/context/request.rb +11 -0
- data/lib/atatus/context/request/socket.rb +19 -0
- data/lib/atatus/context/request/url.rb +42 -0
- data/lib/atatus/context/response.rb +22 -0
- data/lib/atatus/context/user.rb +42 -0
- data/lib/atatus/context_builder.rb +97 -0
- data/lib/atatus/deprecations.rb +22 -0
- data/lib/atatus/error.rb +22 -0
- data/lib/atatus/error/exception.rb +46 -0
- data/lib/atatus/error/log.rb +24 -0
- data/lib/atatus/error_builder.rb +76 -0
- data/lib/atatus/instrumenter.rb +224 -0
- data/lib/atatus/internal_error.rb +6 -0
- data/lib/atatus/logging.rb +55 -0
- data/lib/atatus/metadata.rb +19 -0
- data/lib/atatus/metadata/process_info.rb +18 -0
- data/lib/atatus/metadata/service_info.rb +61 -0
- data/lib/atatus/metadata/system_info.rb +35 -0
- data/lib/atatus/metadata/system_info/container_info.rb +121 -0
- data/lib/atatus/metadata/system_info/hw_info.rb +118 -0
- data/lib/atatus/metadata/system_info/os_info.rb +31 -0
- data/lib/atatus/metrics.rb +98 -0
- data/lib/atatus/metrics/cpu_mem.rb +240 -0
- data/lib/atatus/metrics/vm.rb +60 -0
- data/lib/atatus/metricset.rb +19 -0
- data/lib/atatus/middleware.rb +76 -0
- data/lib/atatus/naively_hashable.rb +21 -0
- data/lib/atatus/normalizers.rb +68 -0
- data/lib/atatus/normalizers/action_controller.rb +27 -0
- data/lib/atatus/normalizers/action_mailer.rb +26 -0
- data/lib/atatus/normalizers/action_view.rb +77 -0
- data/lib/atatus/normalizers/active_record.rb +45 -0
- data/lib/atatus/opentracing.rb +346 -0
- data/lib/atatus/rails.rb +61 -0
- data/lib/atatus/railtie.rb +30 -0
- data/lib/atatus/span.rb +125 -0
- data/lib/atatus/span/context.rb +40 -0
- data/lib/atatus/span_helpers.rb +44 -0
- data/lib/atatus/spies.rb +86 -0
- data/lib/atatus/spies/action_dispatch.rb +28 -0
- data/lib/atatus/spies/delayed_job.rb +68 -0
- data/lib/atatus/spies/elasticsearch.rb +36 -0
- data/lib/atatus/spies/faraday.rb +70 -0
- data/lib/atatus/spies/http.rb +44 -0
- data/lib/atatus/spies/json.rb +22 -0
- data/lib/atatus/spies/mongo.rb +87 -0
- data/lib/atatus/spies/net_http.rb +70 -0
- data/lib/atatus/spies/rake.rb +45 -0
- data/lib/atatus/spies/redis.rb +27 -0
- data/lib/atatus/spies/sequel.rb +47 -0
- data/lib/atatus/spies/sidekiq.rb +89 -0
- data/lib/atatus/spies/sinatra.rb +41 -0
- data/lib/atatus/spies/tilt.rb +27 -0
- data/lib/atatus/sql_summarizer.rb +35 -0
- data/lib/atatus/stacktrace.rb +16 -0
- data/lib/atatus/stacktrace/frame.rb +52 -0
- data/lib/atatus/stacktrace_builder.rb +104 -0
- data/lib/atatus/subscriber.rb +77 -0
- data/lib/atatus/trace_context.rb +85 -0
- data/lib/atatus/transaction.rb +100 -0
- data/lib/atatus/transport/base.rb +174 -0
- data/lib/atatus/transport/connection.rb +156 -0
- data/lib/atatus/transport/connection/http.rb +116 -0
- data/lib/atatus/transport/connection/proxy_pipe.rb +75 -0
- data/lib/atatus/transport/filters.rb +43 -0
- data/lib/atatus/transport/filters/secrets_filter.rb +74 -0
- data/lib/atatus/transport/serializers.rb +93 -0
- data/lib/atatus/transport/serializers/context_serializer.rb +85 -0
- data/lib/atatus/transport/serializers/error_serializer.rb +77 -0
- data/lib/atatus/transport/serializers/metadata_serializer.rb +70 -0
- data/lib/atatus/transport/serializers/metricset_serializer.rb +28 -0
- data/lib/atatus/transport/serializers/span_serializer.rb +80 -0
- data/lib/atatus/transport/serializers/transaction_serializer.rb +37 -0
- data/lib/atatus/transport/worker.rb +73 -0
- data/lib/atatus/util.rb +42 -0
- data/lib/atatus/util/inflector.rb +93 -0
- data/lib/atatus/util/lru_cache.rb +48 -0
- data/lib/atatus/util/prefixed_logger.rb +18 -0
- data/lib/atatus/util/throttle.rb +35 -0
- data/lib/atatus/version.rb +5 -0
- data/vendor/.gitkeep +0 -0
- metadata +190 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5404a3f0f7c5ebac24d42dc0e52a3e039627e985d8e5fcf9473c485c33154cd2
|
4
|
+
data.tar.gz: ec420ee8f2ff19f32bb3bf49c0d5ddddb106fbfec4add1c2c98a8103b455e08c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a595c22ae3e30caf7db053d5bc354e9c1ab11824bbc8ea9d8846aca1ad29a1ffea8fce445a76b86c0ae715a18c9f85cb4910a8a51f8461cf3b83fd653e0228e
|
7
|
+
data.tar.gz: 87afe8b5bba6161baeffc5520f49ab924e0cd4c468d5f758b0f84a62e17b992403e9322a30ea17bf6a214b3829616373a23f950ef284b1eb9454bb49c07d436d
|
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
|
8
|
+
## 1.0.0 (Tue, 29 October 2019)
|
9
|
+
|
10
|
+
- General availability release of the Ruby agent.
|
11
|
+
|
data/Gemfile
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source 'https://rubygems.org'
|
4
|
+
|
5
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
6
|
+
|
7
|
+
gemspec
|
8
|
+
|
9
|
+
gem 'rack-test'
|
10
|
+
gem 'rspec'
|
11
|
+
gem 'rspec-its'
|
12
|
+
gem 'rubocop', require: nil
|
13
|
+
gem 'timecop'
|
14
|
+
gem 'webmock'
|
15
|
+
|
16
|
+
gem 'elasticsearch', require: nil
|
17
|
+
gem 'fakeredis', require: nil
|
18
|
+
gem 'faraday', require: nil
|
19
|
+
gem 'json-schema', require: nil
|
20
|
+
gem 'mongo', require: nil
|
21
|
+
gem 'opentracing', require: nil
|
22
|
+
gem 'rake', require: nil
|
23
|
+
gem 'sequel', require: nil
|
24
|
+
gem 'sidekiq', require: nil
|
25
|
+
gem 'simplecov', require: false, group: :test
|
26
|
+
gem 'simplecov-cobertura', require: false, group: :test
|
27
|
+
gem 'yard', require: nil
|
28
|
+
gem 'yarjuf'
|
29
|
+
|
30
|
+
if RUBY_PLATFORM == 'java'
|
31
|
+
gem 'jdbc-sqlite3'
|
32
|
+
else
|
33
|
+
gem 'sqlite3'
|
34
|
+
end
|
35
|
+
|
36
|
+
framework, *version = ENV.fetch('FRAMEWORK', 'rails').split('-')
|
37
|
+
version = version.join('-')
|
38
|
+
|
39
|
+
case version
|
40
|
+
when 'master'
|
41
|
+
gem framework, github: "#{framework}/#{framework}"
|
42
|
+
when /.+/
|
43
|
+
gem framework, "~> #{version}.0"
|
44
|
+
else
|
45
|
+
gem framework
|
46
|
+
end
|
47
|
+
|
48
|
+
gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
|
49
|
+
|
50
|
+
unless version =~ /^(master|6)/
|
51
|
+
gem 'delayed_job', require: nil
|
52
|
+
end
|
53
|
+
|
54
|
+
group :bench do
|
55
|
+
gem 'ruby-prof', require: nil, platforms: %i[ruby]
|
56
|
+
gem 'stackprof', require: nil, platforms: %i[ruby]
|
57
|
+
end
|
data/LICENSE
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
All components of this product are Copyright (c) 2019 Atatus. All rights reserved.
|
2
|
+
|
3
|
+
Except as otherwise expressly provided in this Agreement,
|
4
|
+
End User shall not (and shall not permit any third party to):
|
5
|
+
|
6
|
+
(a) sublicense, sell, resell, transfer, assign, distribute, share,
|
7
|
+
lease, make any external commercial use of, outsource, use on a timeshare
|
8
|
+
or service bureau basis, or use in an application service provider or
|
9
|
+
managed service provider environment, or otherwise generate income
|
10
|
+
from the Software;
|
11
|
+
|
12
|
+
(b) copy the Software onto any public or distributed network,
|
13
|
+
except for secure cloud computing environments;
|
14
|
+
|
15
|
+
(c) cause the decompiling, disassembly, or reverse engineering
|
16
|
+
of any portion of the Software, or attempt to discover any source code
|
17
|
+
or other operational mechanisms of the Software (except where such restriction
|
18
|
+
is expressly prohibited by law without the possibility of waiver, and
|
19
|
+
then only upon prior written notice to Atatus);
|
20
|
+
|
21
|
+
(d) modify, adapt, translate or create derivative works based on
|
22
|
+
all or any part of the Software;
|
23
|
+
|
24
|
+
(e) use any Third Party Software (as defined below) provided with the
|
25
|
+
Software other than with the Software;
|
26
|
+
|
27
|
+
(f) modify any proprietary rights notices that appear in the Software
|
28
|
+
or components thereof;
|
29
|
+
|
30
|
+
(g) publish the results of any benchmarking tests run on any Third Party Software;
|
31
|
+
|
32
|
+
(h) use the Software in violation of any applicable laws and regulations;
|
33
|
+
|
34
|
+
(i) use the Software in support of any nuclear proliferation, chemical weapon,
|
35
|
+
biological weapon or missile proliferation activity;
|
36
|
+
|
37
|
+
(j) configure the Software to collect any (1) social security numbers or
|
38
|
+
other government-issued identification numbers, (2) unencrypted passwords
|
39
|
+
or other authentication credentials, (3) health information, biometric data,
|
40
|
+
genetic data or any other such information subject to HIPAA requirements
|
41
|
+
(4) payment, financial information, or any other such information subject
|
42
|
+
to PCI security standards, (5) any data relating to a person under the age
|
43
|
+
of 13 years old, or (6) any other data that is subject to regulatory or
|
44
|
+
contractual handling requirements pursuant to the Gramm-Leach-Bliley Act)
|
45
|
+
(collectively, “Prohibited Data”); or
|
46
|
+
|
47
|
+
(k) use the Software to (1) store, download or transmit infringing, libelous,
|
48
|
+
or otherwise unlawful or tortious material, or malicious code or malware, or
|
49
|
+
(2) engage in phishing, spamming, denial-of-service attacks or other
|
50
|
+
fraudulent or criminal activity, (3) interfere with or disrupt the integrity
|
51
|
+
or performance of third party systems, or the Software or data contained
|
52
|
+
therein, or (4) attempt to gain unauthorized access to the Software or
|
53
|
+
Atatus' systems or networks, or (5) perform, or engage any third party
|
54
|
+
to perform, authenticated or unauthenticated penetration testing,
|
55
|
+
vulnerability assessments or other security assessments on the SaaS
|
56
|
+
version of the Software.
|
57
|
+
|
58
|
+
Unless otherwise expressly agreed by Atatus in a separate written
|
59
|
+
license agreement, these files are provided AS IS, WITHOUT WARRANTY OF
|
60
|
+
ANY KIND, including without any implied warranties of MERCHANTABILITY,
|
61
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE, or NON-INFRINGEMENT. As a
|
62
|
+
condition to your use of these files, you are solely responsible for
|
63
|
+
such use. Atatus will have no liability to you for direct,
|
64
|
+
indirect, consequential, incidental, special, or punitive damages or
|
65
|
+
for lost profits or data.
|
data/LICENSE-THIRD-PARTY
ADDED
@@ -0,0 +1,205 @@
|
|
1
|
+
Third party licenses
|
2
|
+
====================
|
3
|
+
|
4
|
+
|
5
|
+
Apache License
|
6
|
+
Version 2.0, January 2004
|
7
|
+
http://www.apache.org/licenses/
|
8
|
+
|
9
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
10
|
+
|
11
|
+
1. Definitions.
|
12
|
+
|
13
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
14
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
15
|
+
|
16
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
17
|
+
the copyright owner that is granting the License.
|
18
|
+
|
19
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
20
|
+
other entities that control, are controlled by, or are under common
|
21
|
+
control with that entity. For the purposes of this definition,
|
22
|
+
"control" means (i) the power, direct or indirect, to cause the
|
23
|
+
direction or management of such entity, whether by contract or
|
24
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
25
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
26
|
+
|
27
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
28
|
+
exercising permissions granted by this License.
|
29
|
+
|
30
|
+
"Source" form shall mean the preferred form for making modifications,
|
31
|
+
including but not limited to software source code, documentation
|
32
|
+
source, and configuration files.
|
33
|
+
|
34
|
+
"Object" form shall mean any form resulting from mechanical
|
35
|
+
transformation or translation of a Source form, including but
|
36
|
+
not limited to compiled object code, generated documentation,
|
37
|
+
and conversions to other media types.
|
38
|
+
|
39
|
+
"Work" shall mean the work of authorship, whether in Source or
|
40
|
+
Object form, made available under the License, as indicated by a
|
41
|
+
copyright notice that is included in or attached to the work
|
42
|
+
(an example is provided in the Appendix below).
|
43
|
+
|
44
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
45
|
+
form, that is based on (or derived from) the Work and for which the
|
46
|
+
editorial revisions, annotations, elaborations, or other modifications
|
47
|
+
represent, as a whole, an original work of authorship. For the purposes
|
48
|
+
of this License, Derivative Works shall not include works that remain
|
49
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
50
|
+
the Work and Derivative Works thereof.
|
51
|
+
|
52
|
+
"Contribution" shall mean any work of authorship, including
|
53
|
+
the original version of the Work and any modifications or additions
|
54
|
+
to that Work or Derivative Works thereof, that is intentionally
|
55
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
56
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
57
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
58
|
+
means any form of electronic, verbal, or written communication sent
|
59
|
+
to the Licensor or its representatives, including but not limited to
|
60
|
+
communication on electronic mailing lists, source code control systems,
|
61
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
62
|
+
Licensor for the purpose of discussing and improving the Work, but
|
63
|
+
excluding communication that is conspicuously marked or otherwise
|
64
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
65
|
+
|
66
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
67
|
+
on behalf of whom a Contribution has been received by Licensor and
|
68
|
+
subsequently incorporated within the Work.
|
69
|
+
|
70
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
71
|
+
this License, each Contributor hereby grants to You a perpetual,
|
72
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
73
|
+
copyright license to reproduce, prepare Derivative Works of,
|
74
|
+
publicly display, publicly perform, sublicense, and distribute the
|
75
|
+
Work and such Derivative Works in Source or Object form.
|
76
|
+
|
77
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
78
|
+
this License, each Contributor hereby grants to You a perpetual,
|
79
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
80
|
+
(except as stated in this section) patent license to make, have made,
|
81
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
82
|
+
where such license applies only to those patent claims licensable
|
83
|
+
by such Contributor that are necessarily infringed by their
|
84
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
85
|
+
with the Work to which such Contribution(s) was submitted. If You
|
86
|
+
institute patent litigation against any entity (including a
|
87
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
88
|
+
or a Contribution incorporated within the Work constitutes direct
|
89
|
+
or contributory patent infringement, then any patent licenses
|
90
|
+
granted to You under this License for that Work shall terminate
|
91
|
+
as of the date such litigation is filed.
|
92
|
+
|
93
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
94
|
+
Work or Derivative Works thereof in any medium, with or without
|
95
|
+
modifications, and in Source or Object form, provided that You
|
96
|
+
meet the following conditions:
|
97
|
+
|
98
|
+
(a) You must give any other recipients of the Work or
|
99
|
+
Derivative Works a copy of this License; and
|
100
|
+
|
101
|
+
(b) You must cause any modified files to carry prominent notices
|
102
|
+
stating that You changed the files; and
|
103
|
+
|
104
|
+
(c) You must retain, in the Source form of any Derivative Works
|
105
|
+
that You distribute, all copyright, patent, trademark, and
|
106
|
+
attribution notices from the Source form of the Work,
|
107
|
+
excluding those notices that do not pertain to any part of
|
108
|
+
the Derivative Works; and
|
109
|
+
|
110
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
111
|
+
distribution, then any Derivative Works that You distribute must
|
112
|
+
include a readable copy of the attribution notices contained
|
113
|
+
within such NOTICE file, excluding those notices that do not
|
114
|
+
pertain to any part of the Derivative Works, in at least one
|
115
|
+
of the following places: within a NOTICE text file distributed
|
116
|
+
as part of the Derivative Works; within the Source form or
|
117
|
+
documentation, if provided along with the Derivative Works; or,
|
118
|
+
within a display generated by the Derivative Works, if and
|
119
|
+
wherever such third-party notices normally appear. The contents
|
120
|
+
of the NOTICE file are for informational purposes only and
|
121
|
+
do not modify the License. You may add Your own attribution
|
122
|
+
notices within Derivative Works that You distribute, alongside
|
123
|
+
or as an addendum to the NOTICE text from the Work, provided
|
124
|
+
that such additional attribution notices cannot be construed
|
125
|
+
as modifying the License.
|
126
|
+
|
127
|
+
You may add Your own copyright statement to Your modifications and
|
128
|
+
may provide additional or different license terms and conditions
|
129
|
+
for use, reproduction, or distribution of Your modifications, or
|
130
|
+
for any such Derivative Works as a whole, provided Your use,
|
131
|
+
reproduction, and distribution of the Work otherwise complies with
|
132
|
+
the conditions stated in this License.
|
133
|
+
|
134
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
135
|
+
any Contribution intentionally submitted for inclusion in the Work
|
136
|
+
by You to the Licensor shall be under the terms and conditions of
|
137
|
+
this License, without any additional terms or conditions.
|
138
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
139
|
+
the terms of any separate license agreement you may have executed
|
140
|
+
with Licensor regarding such Contributions.
|
141
|
+
|
142
|
+
6. Trademarks. This License does not grant permission to use the trade
|
143
|
+
names, trademarks, service marks, or product names of the Licensor,
|
144
|
+
except as required for reasonable and customary use in describing the
|
145
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
146
|
+
|
147
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
148
|
+
agreed to in writing, Licensor provides the Work (and each
|
149
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
150
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
151
|
+
implied, including, without limitation, any warranties or conditions
|
152
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
153
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
154
|
+
appropriateness of using or redistributing the Work and assume any
|
155
|
+
risks associated with Your exercise of permissions under this License.
|
156
|
+
|
157
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
158
|
+
whether in tort (including negligence), contract, or otherwise,
|
159
|
+
unless required by applicable law (such as deliberate and grossly
|
160
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
161
|
+
liable to You for damages, including any direct, indirect, special,
|
162
|
+
incidental, or consequential damages of any character arising as a
|
163
|
+
result of this License or out of the use or inability to use the
|
164
|
+
Work (including but not limited to damages for loss of goodwill,
|
165
|
+
work stoppage, computer failure or malfunction, or any and all
|
166
|
+
other commercial damages or losses), even if such Contributor
|
167
|
+
has been advised of the possibility of such damages.
|
168
|
+
|
169
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
170
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
171
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
172
|
+
or other liability obligations and/or rights consistent with this
|
173
|
+
License. However, in accepting such obligations, You may act only
|
174
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
175
|
+
of any other Contributor, and only if You agree to indemnify,
|
176
|
+
defend, and hold each Contributor harmless for any liability
|
177
|
+
incurred by, or claims asserted against, such Contributor by reason
|
178
|
+
of your accepting any such warranty or additional liability.
|
179
|
+
|
180
|
+
END OF TERMS AND CONDITIONS
|
181
|
+
|
182
|
+
APPENDIX: How to apply the Apache License to your work.
|
183
|
+
|
184
|
+
To apply the Apache License to your work, attach the following
|
185
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
186
|
+
replaced with your own identifying information. (Don't include
|
187
|
+
the brackets!) The text should be enclosed in the appropriate
|
188
|
+
comment syntax for the file format. We also recommend that a
|
189
|
+
file or class name and description of purpose be included on the
|
190
|
+
same "printed page" as the copyright notice for easier
|
191
|
+
identification within third-party archives.
|
192
|
+
|
193
|
+
Copyright 2017 Elasticsearch BV
|
194
|
+
|
195
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
196
|
+
you may not use this file except in compliance with the License.
|
197
|
+
You may obtain a copy of the License at
|
198
|
+
|
199
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
200
|
+
|
201
|
+
Unless required by applicable law or agreed to in writing, software
|
202
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
203
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
204
|
+
See the License for the specific language governing permissions and
|
205
|
+
limitations under the License.
|
data/README.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Atatus APM agent for ♦️Ruby
|
2
|
+
|
3
|
+
The official Rubygem for [Atatus Ruby APM Agent][https://www.atatus.com/].
|
4
|
+
|
5
|
+
|
6
|
+
## Documentation
|
7
|
+
|
8
|
+
[Full documentation at docs.atatus.com](https://docs.atatus.com/docs/application-monitoring/ruby-agent/rails.html).
|
9
|
+
|
10
|
+
|
11
|
+
## Getting help
|
12
|
+
|
13
|
+
If you find a bug or for any other assistance, please drop us an email at **success@atatus.com**.
|
data/Rakefile
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'bundler/gem_tasks'
|
4
|
+
|
5
|
+
Rake::Task[:release].enhance do
|
6
|
+
`git checkout 2.x &&
|
7
|
+
git rebase master &&
|
8
|
+
git push origin 2.x &&
|
9
|
+
git checkout master`
|
10
|
+
end
|
11
|
+
|
12
|
+
require 'rspec/core/rake_task'
|
13
|
+
RSpec::Core::RakeTask.new(:spec)
|
14
|
+
|
15
|
+
require 'yard'
|
16
|
+
YARD::Rake::YardocTask.new
|
17
|
+
task docs: :yard
|
18
|
+
|
19
|
+
task default: :spec
|
data/atatus.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'atatus/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'atatus'
|
7
|
+
spec.version = Atatus::VERSION
|
8
|
+
spec.authors = ['Atatus']
|
9
|
+
spec.email = 'success@atatus.com'
|
10
|
+
|
11
|
+
spec.summary = 'Atatus Ruby Agent'
|
12
|
+
spec.homepage = 'https://www.atatus.com'
|
13
|
+
spec.metadata = {
|
14
|
+
'changelog_uri' => 'https://docs.atatus.com/docs/release-notes/ruby.html',
|
15
|
+
'documentation_uri' => 'https://docs.atatus.com/docs/application-monitoring/ruby-agent/rails.html',
|
16
|
+
}
|
17
|
+
spec.date = Time.now.strftime('%Y-%m-%d')
|
18
|
+
spec.licenses = ['Atatus']
|
19
|
+
spec.required_ruby_version = ">= 2.3.0"
|
20
|
+
spec.extra_rdoc_files = [
|
21
|
+
"CHANGELOG.md",
|
22
|
+
"LICENSE",
|
23
|
+
"LICENSE-THIRD-PARTY",
|
24
|
+
"README.md",
|
25
|
+
"atatus.yml"
|
26
|
+
]
|
27
|
+
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r{^(test|spec|features|docs|releases)/}) || f.match(%r{^(CONTRIBUTING.md|RELEASE.md)})
|
30
|
+
end
|
31
|
+
|
32
|
+
spec.add_dependency('concurrent-ruby', '~> 1.0')
|
33
|
+
spec.add_dependency('http', '>= 3.0')
|
34
|
+
|
35
|
+
spec.require_paths = ['lib']
|
36
|
+
end
|
data/atatus.yml
ADDED
data/bench/.gitignore
ADDED