You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# Serverless Middleware
2
2
3
-
Some helpers for writing API endpoints using AWS Lambda.
3
+
A helper for writing APIs using AWS Lambda functions.
4
+
5
+
### Features
6
+
7
+
- Dependency injection for easy unit testing.
8
+
- Pretty JSON error output, with status codes automatically determined based on error message.
9
+
- Easy access to query strings and JSON body properties.
10
+
- Serverless warmup plugin support.
11
+
- OpenTelemetry support and additional span attributes, for use with [opentelemetry-lambda](https://github.com/open-telemetry/opentelemetry-lambda).
4
12
5
13
---
6
14
@@ -47,6 +55,10 @@ serverless plugin.
47
55
Simply install the serverless plugin, no other changes to your code necessary.
48
56
The middleware will automatically prevent code execution on warmup requests.
49
57
58
+
### OpenTelemetry span enrichment
59
+
60
+
If an active OpenTelemetry span is detected, event and response properties will automatically be added.
0 commit comments