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 : c_servlet_request
29
+ kind : SERVER
30
+ start-span-conditions :
31
+ only-if-true : http_is_entry
32
+ attributes :
33
+ dd_resource : resource_name
34
+ dd_type : span_type
35
+ ' http.method ' : http_method
36
+ ' http.status_code ' : http_status
37
+ ' dd_metric__dd1.sr.eausr ' : dd_sampling_rate
38
+ pet-type : pet_type
39
+ language : jvm
40
+ env : demo
41
+ auto-trace : true
42
+ entry :
43
+ span_name :
44
+ action : string_concat_3
45
+ data-input :
46
+ a : http_method
47
+ c : http_raw_path
48
+ constant-input :
49
+ b : " "
50
+ resource_name :
51
+ action : string_replace_all
52
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
53
+ data-input : { string: span_name}
54
+ only-if-not-null : span_name
55
+ span_type :
56
+ action : set
57
+ constant-input : {value: "web"}
58
+ dd_sampling_rate :
59
+ action : set
60
+ constant-input : {value: 1.0}
61
+ jvm :
62
+ action : set
63
+ constant-input : {value: "jvm"}
64
+ demo :
65
+ action : set
66
+ constant-input : {value: "demo"}
67
+ c_servlet_request :
68
+ action : set
69
+ constant-input : {value: "servlet.request"}
70
+
71
+ http_client_apache_client :
72
+ tracing :
73
+ start-span : true
74
+ name : span_name
75
+ kind : CLIENT
76
+ start-span-conditions :
77
+ only-if-true : http_is_entry
78
+ attributes :
79
+ dd_resource : resource_name
80
+ dd_type : span_type
81
+ entry :
82
+ span_name :
83
+ action : string_concat_3
84
+ data-input :
85
+ a : http_method
86
+ c : http_raw_path
87
+ constant-input :
88
+ b : " "
89
+ resource_name :
90
+ action : string_replace_all
91
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
92
+ data-input : { string: span_name}
93
+ only-if-not-null : span_name
94
+ span_type :
95
+ action : set
96
+ constant-input : {value: "web"}
97
+
98
+ httpurlconnection_tracing_start :
99
+ scopes :
100
+ httpurlconnection_connect : true
101
+ httpurlconnection_getOutputStream : true
102
+ tracing :
103
+ auto-trace : false
104
+ start-span : true
105
+ continue-span : span_obj
106
+ store-span : span_obj
107
+ end-span : false
108
+ name : span_name
109
+ kind : CLIENT
110
+ entry :
111
+ span_obj :
112
+ action : read_attachment_on_this
113
+ constant-input : {key: "span"}
114
+ http_raw_path :
115
+ action : httpurlconnection_get_path
116
+ http_method :
117
+ action : httpurlconnection_get_method
118
+ span_name :
119
+ action : string_concat_3
120
+ data-input :
121
+ a : http_method
122
+ c : http_raw_path
123
+ constant-input :
124
+ b : " "
125
+ post-entry :
126
+ span_obj :
127
+ action : replace_attachment_on_this
128
+ constant-input : {key: "span"}
129
+ data-input : {value: span_obj}
130
+
131
+ httpurlconnection_tracing_end :
132
+ scopes :
133
+ httpurlconnection_getInputStream : true
134
+ tracing :
135
+ auto-trace : false
136
+ start-span : true
137
+ continue-span : span_obj
138
+ store-span : span_obj
139
+ end-span : true
140
+ continue-span-conditions :
141
+ only-if-true : httpurlconn_get_is_entry
142
+ start-span-conditions :
143
+ only-if-true : httpurlconn_get_is_entry
144
+ name : span_name
145
+ kind : CLIENT
146
+ attributes :
147
+ dd_resource : resource_name
148
+ dd_type : span_type
149
+ entry :
150
+ httpurlconn_get_is_entry :
151
+ action : test_and_set_this_marker
152
+ constant-input : {marker: "get_input_stream_invoked"}
153
+ span_obj :
154
+ action : read_attachment_on_this
155
+ constant-input : {key: "span"}
156
+ http_raw_path :
157
+ action : httpurlconnection_get_path
158
+ http_method :
159
+ action : httpurlconnection_get_method
160
+ span_name :
161
+ action : string_concat_3
162
+ data-input :
163
+ a : http_method
164
+ c : http_raw_path
165
+ constant-input :
166
+ b : " "
167
+ resource_name :
168
+ action : string_replace_all
169
+ constant-input : { regex: "\\/\\d+(?=\\/|$)" , replacement: "/{id}"}
170
+ data-input : { string: span_name}
171
+ only-if-not-null : span_name
172
+ span_type :
173
+ action : set
174
+ constant-input : {value: "web"}
175
+ post-entry :
176
+ span_obj :
177
+ action : replace_attachment_on_this
178
+ constant-input : {key: "span"}
179
+ data-input : {value: span_obj}
0 commit comments