minato-stackdriver 0.1.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fec7ca0c2258b554f08d5941fc177118cfd449dd5c9d9f92ade3364fc3df7261
4
+ data.tar.gz: 11e7f8d44396715f6c795bebcb0f7151c8ac717007ab86b6f2cb25094178388d
5
+ SHA512:
6
+ metadata.gz: f5ed2d211b91dcc0fc5684aacd589ed570cdfdbc300301cfdc5ac42cd1cae0da07d5eddfba7d54924b526110cecbd07ab61e69487010661e3c4c74e9fcf94291
7
+ data.tar.gz: 1b1d6308e62e36d1c1235651c94e81f90329cbcd4733780c4904549de23ff2d819afa22e00c8f5d424bf146115f049f6d769d8343a14e716cb469c930d91a455
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2024 TODO: Write your name
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,28 @@
1
+ # Minato::Stackdriver
2
+ Short description and motivation.
3
+
4
+ ## Usage
5
+ How to use my plugin.
6
+
7
+ ## Installation
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "minato-stackdriver"
12
+ ```
13
+
14
+ And then execute:
15
+ ```bash
16
+ $ bundle
17
+ ```
18
+
19
+ Or install it yourself as:
20
+ ```bash
21
+ $ gem install minato-stackdriver
22
+ ```
23
+
24
+ ## Contributing
25
+ Contribution directions go here.
26
+
27
+ ## License
28
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/setup"
4
+
5
+ require "bundler/gem_tasks"
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Minato
4
+ module Stackdriver
5
+ class Railtie < ::Rails::Railtie
6
+ initializer "minato_stackdriver_setup",
7
+ before: "load_environment_config" do |app|
8
+ require "stackdriver"
9
+ Minato::Stackdriver.init(app)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Minato
4
+ module Stackdriver
5
+ VERSION = "0.1.0-1"
6
+ end
7
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "minato/stackdriver/version"
4
+ require "minato/stackdriver/railtie"
5
+
6
+ module Minato
7
+ module Stackdriver
8
+ BLACKLIST_PATHS = ["/health/alive", "/health/ready"].freeze
9
+
10
+ def self.init(app)
11
+ app.config.google_cloud.use_logging = false
12
+ app.config.google_cloud.use_trace = true
13
+ app.config.google_cloud.trace_sampler = Google::Cloud::Trace::TimeSampler.new(path_blacklist: BLACKLIST_PATHS.dup)
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ # desc "Explaining what the task does"
3
+ # task :minato_stackdriver do
4
+ # # Task goes here
5
+ # end
metadata ADDED
@@ -0,0 +1,82 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: minato-stackdriver
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.1
5
+ platform: ruby
6
+ authors:
7
+ - Ferreri
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 7.0.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 7.0.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: stackdriver
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.21.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.21.1
41
+ description: Default setup of stackdriver gem in Minato Rails Apps.
42
+ email:
43
+ - contato@ferreri.co
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - MIT-LICENSE
49
+ - README.md
50
+ - Rakefile
51
+ - lib/minato/stackdriver.rb
52
+ - lib/minato/stackdriver/railtie.rb
53
+ - lib/minato/stackdriver/version.rb
54
+ - lib/tasks/minato/stackdriver_tasks.rake
55
+ homepage: https://gitlab.com/ferreri/minato/minato-stackdriver
56
+ licenses:
57
+ - MIT
58
+ metadata:
59
+ homepage_uri: https://gitlab.com/ferreri/minato/minato-stackdriver
60
+ source_code_uri: https://gitlab.com/ferreri/minato/minato-stackdriver
61
+ changelog_uri: https://gitlab.com/ferreri/minato/minato-stackdriver/-/blob/main/CHANGELOG.md?ref_type=heads
62
+ rubygems_mfa_required: 'true'
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: 2.6.0
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">"
75
+ - !ruby/object:Gem::Version
76
+ version: 1.3.1
77
+ requirements: []
78
+ rubygems_version: 3.4.1
79
+ signing_key:
80
+ specification_version: 4
81
+ summary: Stackdriver configuration for Minato Rails Apps.
82
+ test_files: []