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