aws-xray 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws/xray/segment.rb +4 -2
- data/lib/aws/xray/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e625bb57c33f79d96bf18d717e824613f1028a3
|
4
|
+
data.tar.gz: 618ad109a0539d4e0efb80cb8adfc42ba59a31b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f21c15606b990eafc9319d4c3ae4234c77838af4e48820c8cb2af7933d247d4837f868296fff09f54dde564f57acff163d3a7cc639fa118b9e60a88c85882d98
|
7
|
+
data.tar.gz: 29fb2b2b74383ae1d46c6471b95344d85cb34f616e2b1e6367e2af179be426b5d79ac4c60e2a40f33653323f420ce2e329035d2e4ca312edc193a915728f6d1f
|
data/lib/aws/xray/segment.rb
CHANGED
@@ -54,14 +54,16 @@ module Aws
|
|
54
54
|
|
55
55
|
# @param [Hash] annotation Keys must consist of only alphabets and underscore.
|
56
56
|
# Values must be one of String or Integer or Boolean values.
|
57
|
-
def
|
57
|
+
def add_annotation(annotation)
|
58
58
|
@annotation = @annotation.merge(AnnotationNormalizer.call(annotation))
|
59
59
|
end
|
60
|
+
alias_method :set_annotation, :add_annotation
|
60
61
|
|
61
62
|
# @param [Hash] metadata
|
62
|
-
def
|
63
|
+
def add_metadata(metadata)
|
63
64
|
@metadata = @metadata.merge(metadata)
|
64
65
|
end
|
66
|
+
alias_method :set_metadata, :add_metadata
|
65
67
|
|
66
68
|
def finish(now = Time.now)
|
67
69
|
@end_time = now.to_f
|
data/lib/aws/xray/version.rb
CHANGED