opentelemetry-instrumentation-aws_lambda 0.6.0 → 0.7.1
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6c9ae0f2b3a374145bd72d4011aeab42b018452cd1baa420bc88a9694770bab
|
|
4
|
+
data.tar.gz: b1e748c4354239d31ac47e68a69bc501aa8805929cfb90ff87f8c4050a9a889e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d007136a4f1daaccada69d45b1b2cb1009e1ec895b53a13568f393f46c034e550131b8cf0a5e30dbb4f77bb0c608782fc9cf0b33e99f1caf33e2e7fa36469f1e
|
|
7
|
+
data.tar.gz: 0c86728cc4cc561024adff115e9ab91d630ec479b19a9772b4db5ff035cc161435bdc1279b3e543050783b363e2ded234cae6afae5218bcbc08f16c7afa05928
|
data/CHANGELOG.md
CHANGED
|
@@ -1,40 +1,47 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-aws_lambda
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## v0.7.1 / 2026-10-06
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- FIXED: Only flush a meter provider that can be flushed (#2568)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## v0.7.0 / 2026-04-14
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
- BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
|
|
10
|
+
- ADDED: Min Ruby Version 3.3 (#2125)
|
|
11
|
+
- ADDED: Add release tag into source code url of gem metadata (#1984)
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
## v0.6.0 / 2025-10-22
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
- BREAKING CHANGE: Min Ruby Version 3.2
|
|
16
|
+
- ADDED: Min Ruby Version 3.2
|
|
14
17
|
|
|
15
|
-
|
|
18
|
+
## v0.5.1 / 2025-09-30
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
- FIXED: Min OTel Ruby API 1.7
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
## v0.5.0 / 2025-09-30
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
- ADDED: Bump minimum API Version to 1.7
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
## v0.4.0 / 2025-09-18
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
- BREAKING CHANGE: Check if span has the attributes method to avoid internal error
|
|
29
|
+
- FIXED: Check if span has the attributes method to avoid internal error
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
## v0.3.0 / 2025-02-04
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
- ADDED: AWS Lambda programmatic wrap
|
|
34
|
+
- FIXED: AWS Lambda test fix
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
## v0.2.0 / 2025-01-16
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
- BREAKING CHANGE: Set minimum supported version to Ruby 3.1
|
|
39
|
+
- ADDED: Set minimum supported version to Ruby 3.1
|
|
35
40
|
|
|
36
|
-
|
|
41
|
+
## v0.1.1 / 2024-07-30
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
- FIXED: Register lambda span
|
|
39
44
|
|
|
40
|
-
|
|
45
|
+
## v0.1.0 / 2024-05-11
|
|
46
|
+
|
|
47
|
+
- Initial release.
|
data/README.md
CHANGED
|
@@ -59,11 +59,11 @@ end
|
|
|
59
59
|
To run the example:
|
|
60
60
|
|
|
61
61
|
1. `cd` to the examples directory and install gems
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
- `cd example`
|
|
63
|
+
- `bundle install`
|
|
64
64
|
2. Run the sample client script
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
- `ruby trace_demonstration.rb`
|
|
66
|
+
- or `bundle exec ruby trace_demonstration.rb`
|
|
67
67
|
|
|
68
68
|
This will run SNS publish command, printing OpenTelemetry traces to the console as it goes.
|
|
69
69
|
|
|
@@ -13,7 +13,7 @@ module OpenTelemetry
|
|
|
13
13
|
require_dependencies
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
# determine if current environment is lambda by checking
|
|
16
|
+
# determine if current environment is lambda by checking _HANDLER or ORIG_HANDLER
|
|
17
17
|
present do
|
|
18
18
|
ENV.key?('_HANDLER') || ENV.key?('ORIG_HANDLER')
|
|
19
19
|
end
|
|
@@ -60,7 +60,10 @@ module OpenTelemetry
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
OpenTelemetry.tracer_provider.force_flush(timeout: flush_timeout)
|
|
63
|
-
|
|
63
|
+
|
|
64
|
+
# Only the metrics SDK supplies a meter provider that can be flushed.
|
|
65
|
+
meter_provider = OpenTelemetry.meter_provider if OpenTelemetry.respond_to?(:meter_provider)
|
|
66
|
+
meter_provider.force_flush(timeout: flush_timeout) if meter_provider.respond_to?(:force_flush)
|
|
64
67
|
|
|
65
68
|
raise original_handler_error if original_handler_error
|
|
66
69
|
|
|
@@ -127,7 +130,7 @@ module OpenTelemetry
|
|
|
127
130
|
attributes
|
|
128
131
|
end
|
|
129
132
|
|
|
130
|
-
#
|
|
133
|
+
# faas.trigger set to http: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/faas/aws-lambda.md#api-gateway
|
|
131
134
|
# TODO: need to update Semantic Conventions for invocation_id, trigger and resource_id
|
|
132
135
|
def otel_attributes(event, context)
|
|
133
136
|
span_attributes = {}
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opentelemetry-instrumentation-aws_lambda
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: opentelemetry-instrumentation-base
|
|
@@ -46,11 +45,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
46
45
|
licenses:
|
|
47
46
|
- Apache-2.0
|
|
48
47
|
metadata:
|
|
49
|
-
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-aws_lambda/0.
|
|
50
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/
|
|
48
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-aws_lambda/0.7.1/file/CHANGELOG.md
|
|
49
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-aws_lambda/v0.7.1/instrumentation/aws_lambda
|
|
51
50
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
52
|
-
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-aws_lambda/0.
|
|
53
|
-
post_install_message:
|
|
51
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-aws_lambda/0.7.1
|
|
54
52
|
rdoc_options: []
|
|
55
53
|
require_paths:
|
|
56
54
|
- lib
|
|
@@ -58,15 +56,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
58
56
|
requirements:
|
|
59
57
|
- - ">="
|
|
60
58
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.
|
|
59
|
+
version: '3.3'
|
|
62
60
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
61
|
requirements:
|
|
64
62
|
- - ">="
|
|
65
63
|
- !ruby/object:Gem::Version
|
|
66
64
|
version: '0'
|
|
67
65
|
requirements: []
|
|
68
|
-
rubygems_version:
|
|
69
|
-
signing_key:
|
|
66
|
+
rubygems_version: 4.0.16
|
|
70
67
|
specification_version: 4
|
|
71
68
|
summary: AWS Lambda instrumentation for the OpenTelemetry framework
|
|
72
69
|
test_files: []
|