airfoil 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -11
- data/lib/airfoil/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19253bd2e6d9a47232400ac4ee4d7a1fe7953c462af51d419ce6d6fbc941dc50
|
4
|
+
data.tar.gz: '08854bb418dbf76f5254d4132ffaf9f9ba496e7c2398b214e51b55658321c504'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '084ee1915eca4bfe74e7743d439b5f8fd8db205fed067073a5ad320be13b7164c91a2008b9ec72c394b9cff2189ea1df1835f876a3d11f0a1254f8f72544e1a2'
|
7
|
+
data.tar.gz: 3f03cfdfd2baf6554d344cd2f79dbb6a24c9b71eef66178643f74c3d3edd32369fe85382d9c01f2afb93345fdaf917f9f5b99f182b6fd5f2f027e901de61f5be
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Airfoil
|
2
|
+
|
2
3
|
_Enough structure to get our Lambda handlers in the air._
|
3
4
|
|
4
5
|
Airfoil is curated middleware stack that abstracts away common infrastructure
|
@@ -14,11 +15,11 @@ gem 'airfoil'
|
|
14
15
|
|
15
16
|
And then execute:
|
16
17
|
|
17
|
-
|
18
|
+
bundle install
|
18
19
|
|
19
20
|
Or install it yourself as:
|
20
21
|
|
21
|
-
|
22
|
+
gem install airfoil
|
22
23
|
|
23
24
|
## Usage
|
24
25
|
|
@@ -56,35 +57,32 @@ Existing middleware include:
|
|
56
57
|
- `LogEvent` - log AWS events in a pretty format
|
57
58
|
- `SetRequestId` - set the `AWS_REQUEST_ID` environment variable for your function code
|
58
59
|
|
59
|
-
|
60
60
|
## Additional Middleware
|
61
|
+
|
61
62
|
There are additional middleware available as separate gems that provide specific functionality. They must be explicitly added to your middleware stack in `create_stack`.
|
62
63
|
|
63
64
|
### Sentry
|
65
|
+
|
64
66
|
Add the `airfoil-sentry` gem to your Gemfile.This provides three middlewares:
|
65
67
|
|
66
68
|
- `SentryCatcher` - catch exceptions and report them to Sentry, including context:
|
69
|
+
|
67
70
|
```ruby
|
68
71
|
b.use Airfoil::Middleware::SentryCatcher
|
69
72
|
```
|
70
73
|
|
71
74
|
- `SentryMonitoring` - instrument your function code for Sentry's performance monitoring
|
72
|
-
```ruby
|
73
|
-
b.use Airfoil::Middleware::SentryMonitoring
|
74
|
-
```
|
75
|
-
|
76
|
-
### Datadog
|
77
|
-
Add the `airfoil-datadog` gem to your Gemfile. This provides a single middleware:
|
78
75
|
|
79
|
-
- `Datadog` - wire up the Datadog Lambda SDK and report traces to it
|
80
76
|
```ruby
|
81
|
-
b.use Airfoil::Middleware::
|
77
|
+
b.use Airfoil::Middleware::SentryMonitoring
|
82
78
|
```
|
83
79
|
|
84
80
|
### ActiveRecord
|
81
|
+
|
85
82
|
Add the `airfoil-activerecord` gem to your Gemfile. This provides a single middleware:
|
86
83
|
|
87
84
|
- `DatabaseConnection` - Check a connection in/out and enable the query cache per handler
|
85
|
+
|
88
86
|
```ruby
|
89
87
|
b.use Airfoil::Middleware::DatabaseConnection
|
90
88
|
```
|
data/lib/airfoil/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: airfoil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Highwing Engineering
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-monads
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.4.
|
133
|
+
rubygems_version: 3.4.17
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Enough structure to get our Lambda handlers in the air
|