instana 0.9.0.pre.slywolf3 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/tracing.rb +11 -7
- data/lib/instana/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45dbd6ff5bd5c2af0d954da0b5831ce6969ca5d
|
4
|
+
data.tar.gz: a1211473ae673338d1f57fdf040bdbb48556d48d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 558acfedb907fcdbeda748386107f1cb10d886f6e8bd9213d03f03842daaca8777c947f1ff8d63a6e1de3ff03b02b56cb81aca18c7d39edf327f68069186d864
|
7
|
+
data.tar.gz: f0073268ab03452b1cfbf0a809a110c625bef3c8fbf8328c45f06e09e69cf23bd06c3adbb062c9131dc22692711934bd7a06cf0c3c5ee18446d7da55d4060f19
|
data/examples/tracing.rb
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
+
# This file outlines some of the concepts with Instana tracing.
|
2
|
+
# Please also see rdoc for latest info:
|
3
|
+
# http://www.rubydoc.info/gems/instana/0.9.0.pre.slywolf3/Instana/Tracer
|
4
|
+
|
1
5
|
#######################################
|
2
6
|
## Block tracing
|
3
7
|
#######################################
|
4
8
|
|
5
|
-
#Instana::Tracer.start_or_continue_trace(name, kvs,
|
9
|
+
#Instana::Tracer.start_or_continue_trace(name, kvs, incoming_context) - Initiates tracing
|
6
10
|
#Instana::Tracer.trace(name, kvs) - starts a new span in an existing Trace
|
7
11
|
|
8
12
|
# <start_or_continue_trace> will initiate a new trace. Often used at entry
|
9
|
-
# points in webservers, it will initialize tracing and instrument the passed
|
10
|
-
# block. <incoming_id> is for continuing remote traces (remote in terms
|
13
|
+
# points in webservers (e.g. rack), it will initialize tracing and instrument the passed
|
14
|
+
# block. <incoming_id> is a hash for continuing remote traces (remote in terms
|
11
15
|
# of service calls, or message queues).
|
12
|
-
Instana::Tracer.start_or_continue_trace(:my_block_name, {},
|
16
|
+
Instana::Tracer.start_or_continue_trace(:my_block_name, {}, incoming_context) do
|
13
17
|
# Code block
|
14
18
|
end
|
15
19
|
|
@@ -25,11 +29,11 @@ end
|
|
25
29
|
#######################################
|
26
30
|
|
27
31
|
# <log_start_or_continue_trace> will initiate a new trace. Often used at entry
|
28
|
-
# points in webservers, it will establish a new trace (for web request,
|
32
|
+
# points in webservers, it will establish a new trace (for web request,
|
29
33
|
# background jobs etc.).
|
30
|
-
# <
|
34
|
+
# <incoming_context> is a hash for continuing remote traces (remote in terms
|
31
35
|
# of service calls, or message queues).
|
32
|
-
Instana::Tracer.log_start_or_continue(:rack, {},
|
36
|
+
Instana::Tracer.log_start_or_continue(:rack, {}, incoming_context)
|
33
37
|
|
34
38
|
# <log_entry> will start a new span from the current span within
|
35
39
|
# a trace.
|
data/lib/instana/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
@@ -156,9 +156,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
156
|
version: '2.0'
|
157
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
|
-
- - "
|
159
|
+
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version:
|
161
|
+
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
164
|
rubygems_version: 2.5.1
|