@@ -89,9 +89,9 @@ def index
8989 expect ( log_entries ) . to have ( 2 ) . items
9090 rack_rails_logger_entry , my_entry = log_entries
9191
92- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
92+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
9393
94- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
94+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
9595 end
9696 end
9797
@@ -109,9 +109,9 @@ def index
109109 expect ( log_entries ) . to have ( 2 ) . items
110110 rack_rails_logger_entry , my_entry = log_entries
111111
112- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
112+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
113113
114- expect ( my_entry ) . to include trace_id_128_log_injection ( trace . id )
114+ expect ( my_entry ) . to include format_for_correlation ( trace . id )
115115 end
116116 end
117117
@@ -128,11 +128,11 @@ def index
128128 expect ( log_entries ) . to have ( 2 ) . items
129129 rack_rails_logger_entry , my_entry = log_entries
130130
131- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
131+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
132132 expect ( rack_rails_logger_entry ) . to include '[some_info]'
133133 expect ( rack_rails_logger_entry ) . to include '[some_other_info]'
134134
135- expect ( my_entry ) . to include trace_id_128_log_injection ( trace . id )
135+ expect ( my_entry ) . to include format_for_correlation ( trace . id )
136136 expect ( my_entry ) . to include '[some_info]'
137137 expect ( my_entry ) . to include '[some_other_info]'
138138 end
@@ -158,12 +158,12 @@ def index
158158
159159 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
160160
161- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
161+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
162162
163- expect ( controller_logger_entry ) . to include trace_id_128_log_injection ( trace . id )
163+ expect ( controller_logger_entry ) . to include format_for_correlation ( trace . id )
164164 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
165165
166- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
166+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
167167 end
168168 end
169169
@@ -185,14 +185,14 @@ def index
185185
186186 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
187187
188- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
188+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
189189
190- expect ( controller_logger_entry ) . to include trace_id_128_log_injection ( trace . id )
190+ expect ( controller_logger_entry ) . to include format_for_correlation ( trace . id )
191191 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
192192 expect ( controller_logger_entry ) . to include 'some_hash_info=test_hash_value'
193193 expect ( controller_logger_entry ) . to include 'some_other_hash_info=other_test_hash_value'
194194
195- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
195+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
196196 end
197197 end
198198
@@ -216,14 +216,14 @@ def index
216216
217217 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
218218
219- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
219+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
220220
221- expect ( controller_logger_entry ) . to include trace_id_128_log_injection ( trace . id )
221+ expect ( controller_logger_entry ) . to include format_for_correlation ( trace . id )
222222 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
223223 expect ( controller_logger_entry ) . to include 'some_lambda_info=test_lambda_value'
224224 expect ( controller_logger_entry ) . to include 'some_other_lambda_info=other_test_lambda_value'
225225
226- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
226+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
227227 end
228228 end
229229 end
@@ -241,11 +241,11 @@ def index
241241
242242 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
243243
244- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
244+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
245245
246- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
246+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
247247
248- expect ( controller_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
248+ expect ( controller_logger_entry ) . not_to include format_for_correlation ( trace . id )
249249 end
250250 end
251251 end
@@ -272,11 +272,11 @@ def index
272272
273273 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
274274
275- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
275+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
276276
277- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
277+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
278278
279- expect ( controller_logger_entry . scan ( trace_id_128_log_injection ( trace . id ) ) ) . to have ( 2 ) . times
279+ expect ( controller_logger_entry . scan ( format_for_correlation ( trace . id ) ) ) . to have ( 2 ) . times
280280 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
281281 end
282282 end
@@ -292,15 +292,15 @@ def index
292292
293293 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
294294
295- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
295+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
296296 expect ( rack_rails_logger_entry ) . to include '[some_info]'
297297 expect ( rack_rails_logger_entry ) . to include '[some_other_info]'
298298
299- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
299+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
300300 expect ( my_entry ) . to include '[some_info]'
301301 expect ( my_entry ) . to include '[some_other_info]'
302302
303- expect ( controller_logger_entry . scan ( trace_id_128_log_injection ( trace . id ) ) ) . to have ( 2 ) . times
303+ expect ( controller_logger_entry . scan ( format_for_correlation ( trace . id ) ) ) . to have ( 2 ) . times
304304 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
305305 expect ( controller_logger_entry ) . to include '[some_info]'
306306 expect ( controller_logger_entry ) . to include '[some_other_info]'
@@ -325,11 +325,11 @@ def index
325325
326326 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
327327
328- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
328+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
329329
330- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
330+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
331331
332- expect ( controller_logger_entry . scan ( trace_id_128_log_injection ( trace . id ) ) ) . to have ( 2 ) . times
332+ expect ( controller_logger_entry . scan ( format_for_correlation ( trace . id ) ) ) . to have ( 2 ) . times
333333 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
334334 expect ( controller_logger_entry ) . to include 'some_hash_info=test_hash_value'
335335 expect ( controller_logger_entry ) . to include 'some_other_hash_info=other_test_hash_value'
@@ -356,11 +356,11 @@ def index
356356
357357 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
358358
359- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
359+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
360360
361- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
361+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
362362
363- expect ( controller_logger_entry . scan ( trace_id_128_log_injection ( trace . id ) ) ) . to have ( 2 ) . times
363+ expect ( controller_logger_entry . scan ( format_for_correlation ( trace . id ) ) ) . to have ( 2 ) . times
364364 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
365365 expect ( controller_logger_entry ) . to include 'some_lambda_info=test_lambda_value'
366366 expect ( controller_logger_entry ) . to include 'some_other_lambda_info=other_test_lambda_value'
@@ -387,15 +387,15 @@ def index
387387
388388 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
389389
390- expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
390+ expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
391391 expect ( rack_rails_logger_entry ) . to include '[some_info]'
392392 expect ( rack_rails_logger_entry ) . to include '[some_other_info]'
393393
394- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
394+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
395395 expect ( my_entry ) . to include '[some_info]'
396396 expect ( my_entry ) . to include '[some_other_info]'
397397
398- expect ( controller_logger_entry . scan ( trace_id_128_log_injection ( trace . id ) ) ) . to have ( 2 ) . times
398+ expect ( controller_logger_entry . scan ( format_for_correlation ( trace . id ) ) ) . to have ( 2 ) . times
399399 expect ( controller_logger_entry ) . to include '[some_info]'
400400 expect ( controller_logger_entry ) . to include '[some_other_info]'
401401 expect ( controller_logger_entry ) . to include 'ddsource=ruby'
@@ -420,9 +420,9 @@ def index
420420 expect ( log_entries ) . to have ( 2 ) . item
421421 rack_rails_logger_entry , my_entry = log_entries
422422
423- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
423+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
424424
425- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
425+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
426426 end
427427 end
428428
@@ -440,9 +440,9 @@ def index
440440
441441 rack_rails_logger_entry , my_entry = log_entries
442442
443- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
443+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
444444
445- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
445+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
446446 end
447447 end
448448
@@ -457,11 +457,11 @@ def index
457457
458458 rack_rails_logger_entry , my_entry = log_entries
459459
460- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
460+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
461461 expect ( rack_rails_logger_entry ) . to include '[some_info]'
462462 expect ( rack_rails_logger_entry ) . to include '[some_other_info]'
463463
464- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
464+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
465465 expect ( my_entry ) . to include '[some_info]'
466466 expect ( my_entry ) . to include '[some_other_info]'
467467 end
@@ -482,9 +482,9 @@ def index
482482
483483 rack_rails_logger_entry , my_entry = log_entries
484484 expect ( rack_rails_logger_entry ) . to include "dd.trace_id=#{
485- trace_id_128_log_injection ( trace . id )
485+ format_for_correlation ( trace . id )
486486 } "
487- expect ( my_entry ) . to include "dd.trace_id=#{ trace_id_128_log_injection ( trace . id ) } "
487+ expect ( my_entry ) . to include "dd.trace_id=#{ format_for_correlation ( trace . id ) } "
488488 end
489489 end
490490 end
@@ -509,11 +509,11 @@ def index
509509
510510 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
511511
512- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
512+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
513513
514- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
514+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
515515
516- expect ( controller_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
516+ expect ( controller_logger_entry ) . not_to include format_for_correlation ( trace . id )
517517 end
518518 end
519519
@@ -535,11 +535,11 @@ def index
535535
536536 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
537537
538- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
538+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
539539
540- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
540+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
541541
542- expect ( controller_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
542+ expect ( controller_logger_entry ) . not_to include format_for_correlation ( trace . id )
543543 expect ( controller_logger_entry ) . to include 'some_hash_info=test_hash_value'
544544 expect ( controller_logger_entry ) . to include 'some_other_hash_info=other_test_hash_value'
545545 end
@@ -565,11 +565,11 @@ def index
565565
566566 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
567567
568- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
568+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
569569
570- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
570+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
571571
572- expect ( controller_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
572+ expect ( controller_logger_entry ) . not_to include format_for_correlation ( trace . id )
573573 expect ( controller_logger_entry ) . to include 'some_lambda_info=test_lambda_value'
574574 expect ( controller_logger_entry ) . to include 'some_other_lambda_info=other_test_lambda_value'
575575 end
@@ -589,11 +589,11 @@ def index
589589
590590 rack_rails_logger_entry , my_entry , controller_logger_entry = log_entries
591591
592- expect ( rack_rails_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
592+ expect ( rack_rails_logger_entry ) . not_to include format_for_correlation ( trace . id )
593593
594- expect ( my_entry ) . not_to include trace_id_128_log_injection ( trace . id )
594+ expect ( my_entry ) . not_to include format_for_correlation ( trace . id )
595595
596- expect ( controller_logger_entry ) . not_to include trace_id_128_log_injection ( trace . id )
596+ expect ( controller_logger_entry ) . not_to include format_for_correlation ( trace . id )
597597 end
598598 end
599599 end
0 commit comments