1
+ inspectit :
2
+ tracing :
3
+ auto-tracing :
4
+ frequency : 10ms
5
+ instrumentation :
6
+ data :
7
+ get_input_stream_invoked :
8
+ down-propagation : JVM_LOCAL
9
+
10
+ actions :
11
+ string_concat_3 :
12
+ input :
13
+ a : String
14
+ b : String
15
+ c : String
16
+ value : new StringBuilder(a).append(b).append(c).toString()
17
+ a_get_simple_method_name :
18
+ input :
19
+ _methodName : String
20
+ _class : Class
21
+ value : new StringBuilder(_class.getSimpleName()).append('.').append(_methodName).toString()
22
+
23
+ rules :
24
+ # use the existing rules from the default configuration but enable tracing
25
+ http_server_servlet_api :
26
+ tracing :
27
+ start-span : true
28
+ name : resource_name
29
+ kind : SERVER
30
+ start-span-conditions :
31
+ only-if-true : http_is_entry
32
+ attributes :
33
+ ' http.method ' : http_method
34
+ pet-type : pet_type
35
+ ' ingress.operation ' : t_r_u_e
36
+ auto-trace : false
37
+ entry :
38
+ span_name :
39
+ action : string_concat_3
40
+ data-input :
41
+ a : http_method
42
+ c : http_raw_path
43
+ constant-input :
44
+ b : " "
45
+ resource_name :
46
+ action : string_replace_all
47
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
48
+ data-input : { string: span_name}
49
+ only-if-not-null : span_name
50
+ t_r_u_e :
51
+ action : set
52
+ constant-input : {value: true}
53
+
54
+
55
+ http_client_apache_client :
56
+ tracing :
57
+ start-span : true
58
+ name : resource_name
59
+ kind : CLIENT
60
+ start-span-conditions :
61
+ only-if-true : http_is_entry
62
+ entry :
63
+ span_name :
64
+ action : string_concat_3
65
+ data-input :
66
+ a : http_method
67
+ c : http_raw_path
68
+ constant-input :
69
+ b : " "
70
+ resource_name :
71
+ action : string_replace_all
72
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
73
+ data-input : { string: span_name}
74
+ only-if-not-null : span_name
75
+
76
+ httpurlconnection_tracing_start :
77
+ scopes :
78
+ httpurlconnection_connect : true
79
+ httpurlconnection_getOutputStream : true
80
+ tracing :
81
+ auto-trace : false
82
+ start-span : true
83
+ continue-span : span_obj
84
+ store-span : span_obj
85
+ end-span : false
86
+ name : resource_name
87
+ kind : CLIENT
88
+ entry :
89
+ span_obj :
90
+ action : read_attachment_on_this
91
+ constant-input : {key: "span"}
92
+ http_raw_path :
93
+ action : httpurlconnection_get_path
94
+ http_method :
95
+ action : httpurlconnection_get_method
96
+ span_name :
97
+ action : string_concat_3
98
+ data-input :
99
+ a : http_method
100
+ c : http_raw_path
101
+ constant-input :
102
+ b : " "
103
+ resource_name :
104
+ action : string_replace_all
105
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
106
+ data-input : { string: span_name}
107
+ only-if-not-null : span_name
108
+ post-entry :
109
+ span_obj :
110
+ action : replace_attachment_on_this
111
+ constant-input : {key: "span"}
112
+ data-input : {value: span_obj}
113
+
114
+ httpurlconnection_tracing_end :
115
+ scopes :
116
+ httpurlconnection_getInputStream : true
117
+ tracing :
118
+ auto-trace : false
119
+ start-span : true
120
+ continue-span : span_obj
121
+ store-span : span_obj
122
+ end-span : true
123
+ continue-span-conditions :
124
+ only-if-true : httpurlconn_get_is_entry
125
+ start-span-conditions :
126
+ only-if-true : httpurlconn_get_is_entry
127
+ name : resource_name
128
+ kind : CLIENT
129
+ entry :
130
+ httpurlconn_get_is_entry :
131
+ action : test_and_set_this_marker
132
+ constant-input : {marker: "get_input_stream_invoked"}
133
+ span_obj :
134
+ action : read_attachment_on_this
135
+ constant-input : {key: "span"}
136
+ http_raw_path :
137
+ action : httpurlconnection_get_path
138
+ http_method :
139
+ action : httpurlconnection_get_method
140
+ span_name :
141
+ action : string_concat_3
142
+ data-input :
143
+ a : http_method
144
+ c : http_raw_path
145
+ constant-input :
146
+ b : " "
147
+ resource_name :
148
+ action : string_replace_all
149
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
150
+ data-input : { string: span_name}
151
+ only-if-not-null : span_name
152
+ post-entry :
153
+ span_obj :
154
+ action : replace_attachment_on_this
155
+ constant-input : {key: "span"}
156
+ data-input : {value: span_obj}
0 commit comments