solarwinds_apm 5.1.4 → 5.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1848,26 +1848,28 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
1848
1848
  #define SWIGTYPE_p_Context swig_types[1]
1849
1849
  #define SWIGTYPE_p_CustomMetrics swig_types[2]
1850
1850
  #define SWIGTYPE_p_Event swig_types[3]
1851
- #define SWIGTYPE_p_Metadata swig_types[4]
1852
- #define SWIGTYPE_p_MetricTags swig_types[5]
1853
- #define SWIGTYPE_p_Reporter swig_types[6]
1854
- #define SWIGTYPE_p_Span swig_types[7]
1855
- #define SWIGTYPE_p_char swig_types[8]
1856
- #define SWIGTYPE_p_double swig_types[9]
1857
- #define SWIGTYPE_p_int swig_types[10]
1858
- #define SWIGTYPE_p_long swig_types[11]
1859
- #define SWIGTYPE_p_long_long swig_types[12]
1860
- #define SWIGTYPE_p_oboe_metadata_t swig_types[13]
1861
- #define SWIGTYPE_p_oboe_metric_tag_t swig_types[14]
1862
- #define SWIGTYPE_p_short swig_types[15]
1863
- #define SWIGTYPE_p_signed_char swig_types[16]
1864
- #define SWIGTYPE_p_std__string swig_types[17]
1865
- #define SWIGTYPE_p_unsigned_char swig_types[18]
1866
- #define SWIGTYPE_p_unsigned_int swig_types[19]
1867
- #define SWIGTYPE_p_unsigned_long_long swig_types[20]
1868
- #define SWIGTYPE_p_unsigned_short swig_types[21]
1869
- static swig_type_info *swig_types[23];
1870
- static swig_module_info swig_module = {swig_types, 22, 0, 0, 0, 0};
1851
+ #define SWIGTYPE_p_FILE swig_types[4]
1852
+ #define SWIGTYPE_p_Metadata swig_types[5]
1853
+ #define SWIGTYPE_p_MetricTags swig_types[6]
1854
+ #define SWIGTYPE_p_Reporter swig_types[7]
1855
+ #define SWIGTYPE_p_Span swig_types[8]
1856
+ #define SWIGTYPE_p_char swig_types[9]
1857
+ #define SWIGTYPE_p_double swig_types[10]
1858
+ #define SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void swig_types[11]
1859
+ #define SWIGTYPE_p_int swig_types[12]
1860
+ #define SWIGTYPE_p_long swig_types[13]
1861
+ #define SWIGTYPE_p_long_long swig_types[14]
1862
+ #define SWIGTYPE_p_oboe_metadata_t swig_types[15]
1863
+ #define SWIGTYPE_p_oboe_metric_tag_t swig_types[16]
1864
+ #define SWIGTYPE_p_short swig_types[17]
1865
+ #define SWIGTYPE_p_signed_char swig_types[18]
1866
+ #define SWIGTYPE_p_std__string swig_types[19]
1867
+ #define SWIGTYPE_p_unsigned_char swig_types[20]
1868
+ #define SWIGTYPE_p_unsigned_int swig_types[21]
1869
+ #define SWIGTYPE_p_unsigned_long_long swig_types[22]
1870
+ #define SWIGTYPE_p_unsigned_short swig_types[23]
1871
+ static swig_type_info *swig_types[25];
1872
+ static swig_module_info swig_module = {swig_types, 24, 0, 0, 0, 0};
1871
1873
  #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1872
1874
  #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1873
1875
 
@@ -1916,19 +1918,6 @@ SWIG_From_int (int value)
1916
1918
  }
1917
1919
 
1918
1920
 
1919
- #include <stdint.h> // Use the C99 official header
1920
-
1921
-
1922
- #include <string>
1923
-
1924
-
1925
- SWIGINTERNINLINE VALUE
1926
- SWIG_From_bool (bool value)
1927
- {
1928
- return value ? Qtrue : Qfalse;
1929
- }
1930
-
1931
-
1932
1921
  SWIGINTERN VALUE
1933
1922
  SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
1934
1923
  {
@@ -1982,26 +1971,6 @@ SWIG_AsVal_int (VALUE obj, int *val)
1982
1971
  }
1983
1972
 
1984
1973
 
1985
- SWIGINTERN int
1986
- SWIG_AsVal_bool (VALUE obj, bool *val)
1987
- {
1988
- if (obj == Qtrue) {
1989
- if (val) *val = true;
1990
- return SWIG_OK;
1991
- } else if (obj == Qfalse) {
1992
- if (val) *val = false;
1993
- return SWIG_OK;
1994
- } else {
1995
- int res = 0;
1996
- if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
1997
- if (val) *val = res ? true : false;
1998
- return SWIG_OK;
1999
- }
2000
- }
2001
- return SWIG_TypeError;
2002
- }
2003
-
2004
-
2005
1974
  SWIGINTERN swig_type_info*
2006
1975
  SWIG_pchar_descriptor(void)
2007
1976
  {
@@ -2049,6 +2018,66 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2049
2018
  }
2050
2019
 
2051
2020
 
2021
+
2022
+
2023
+
2024
+ SWIGINTERNINLINE VALUE
2025
+ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2026
+ {
2027
+ if (carray) {
2028
+ if (size > LONG_MAX) {
2029
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2030
+ return pchar_descriptor ?
2031
+ SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2032
+ } else {
2033
+ return rb_str_new(carray, static_cast< long >(size));
2034
+ }
2035
+ } else {
2036
+ return Qnil;
2037
+ }
2038
+ }
2039
+
2040
+
2041
+ SWIGINTERNINLINE VALUE
2042
+ SWIG_FromCharPtr(const char *cptr)
2043
+ {
2044
+ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2045
+ }
2046
+
2047
+
2048
+ #include <stdint.h> // Use the C99 official header
2049
+
2050
+
2051
+ #include <string>
2052
+
2053
+
2054
+ SWIGINTERNINLINE VALUE
2055
+ SWIG_From_bool (bool value)
2056
+ {
2057
+ return value ? Qtrue : Qfalse;
2058
+ }
2059
+
2060
+
2061
+ SWIGINTERN int
2062
+ SWIG_AsVal_bool (VALUE obj, bool *val)
2063
+ {
2064
+ if (obj == Qtrue) {
2065
+ if (val) *val = true;
2066
+ return SWIG_OK;
2067
+ } else if (obj == Qfalse) {
2068
+ if (val) *val = false;
2069
+ return SWIG_OK;
2070
+ } else {
2071
+ int res = 0;
2072
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2073
+ if (val) *val = res ? true : false;
2074
+ return SWIG_OK;
2075
+ }
2076
+ }
2077
+ return SWIG_TypeError;
2078
+ }
2079
+
2080
+
2052
2081
  SWIGINTERN int
2053
2082
  SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2054
2083
  {
@@ -2080,23 +2109,6 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2080
2109
  }
2081
2110
 
2082
2111
 
2083
- SWIGINTERNINLINE VALUE
2084
- SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2085
- {
2086
- if (carray) {
2087
- if (size > LONG_MAX) {
2088
- swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2089
- return pchar_descriptor ?
2090
- SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2091
- } else {
2092
- return rb_str_new(carray, static_cast< long >(size));
2093
- }
2094
- } else {
2095
- return Qnil;
2096
- }
2097
- }
2098
-
2099
-
2100
2112
  SWIGINTERNINLINE VALUE
2101
2113
  SWIG_From_std_string (const std::string& s)
2102
2114
  {
@@ -2104,9 +2116,6 @@ SWIG_From_std_string (const std::string& s)
2104
2116
  }
2105
2117
 
2106
2118
 
2107
-
2108
-
2109
-
2110
2119
  #define SWIG_From_double rb_float_new
2111
2120
 
2112
2121
 
@@ -2275,6 +2284,329 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
2275
2284
  return res;
2276
2285
  }
2277
2286
 
2287
+ SWIGINTERN VALUE
2288
+ _wrap_oboe_debug_log_init(int argc, VALUE *argv, VALUE self) {
2289
+ FILE *arg1 = (FILE *) 0 ;
2290
+ void *argp1 = 0 ;
2291
+ int res1 = 0 ;
2292
+
2293
+ if ((argc < 1) || (argc > 1)) {
2294
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2295
+ }
2296
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2297
+ if (!SWIG_IsOK(res1)) {
2298
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_init", 1, argv[0] ));
2299
+ }
2300
+ arg1 = reinterpret_cast< FILE * >(argp1);
2301
+ oboe_debug_log_init(arg1);
2302
+ return Qnil;
2303
+ fail:
2304
+ return Qnil;
2305
+ }
2306
+
2307
+
2308
+ SWIGINTERN VALUE
2309
+ _wrap_oboe_debug_logger(int argc, VALUE *argv, VALUE self) {
2310
+ int arg1 ;
2311
+ int arg2 ;
2312
+ char *arg3 = (char *) 0 ;
2313
+ int arg4 ;
2314
+ char *arg5 = (char *) 0 ;
2315
+ void *arg6 = 0 ;
2316
+ int val1 ;
2317
+ int ecode1 = 0 ;
2318
+ int val2 ;
2319
+ int ecode2 = 0 ;
2320
+ int res3 ;
2321
+ char *buf3 = 0 ;
2322
+ int alloc3 = 0 ;
2323
+ int val4 ;
2324
+ int ecode4 = 0 ;
2325
+ int res5 ;
2326
+ char *buf5 = 0 ;
2327
+ int alloc5 = 0 ;
2328
+
2329
+ if (argc < 5) {
2330
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
2331
+ }
2332
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2333
+ if (!SWIG_IsOK(ecode1)) {
2334
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 1, argv[0] ));
2335
+ }
2336
+ arg1 = static_cast< int >(val1);
2337
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
2338
+ if (!SWIG_IsOK(ecode2)) {
2339
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 2, argv[1] ));
2340
+ }
2341
+ arg2 = static_cast< int >(val2);
2342
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2343
+ if (!SWIG_IsOK(res3)) {
2344
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 3, argv[2] ));
2345
+ }
2346
+ arg3 = reinterpret_cast< char * >(buf3);
2347
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
2348
+ if (!SWIG_IsOK(ecode4)) {
2349
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 4, argv[3] ));
2350
+ }
2351
+ arg4 = static_cast< int >(val4);
2352
+ res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
2353
+ if (!SWIG_IsOK(res5)) {
2354
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 5, argv[4] ));
2355
+ }
2356
+ arg5 = reinterpret_cast< char * >(buf5);
2357
+ oboe_debug_logger(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6);
2358
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2359
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2360
+ return Qnil;
2361
+ fail:
2362
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2363
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2364
+ return Qnil;
2365
+ }
2366
+
2367
+
2368
+ SWIGINTERN VALUE
2369
+ _wrap_oboe_debug_log_level_name(int argc, VALUE *argv, VALUE self) {
2370
+ int arg1 ;
2371
+ int val1 ;
2372
+ int ecode1 = 0 ;
2373
+ char *result = 0 ;
2374
+ VALUE vresult = Qnil;
2375
+
2376
+ if ((argc < 1) || (argc > 1)) {
2377
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2378
+ }
2379
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2380
+ if (!SWIG_IsOK(ecode1)) {
2381
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_name", 1, argv[0] ));
2382
+ }
2383
+ arg1 = static_cast< int >(val1);
2384
+ result = (char *)oboe_debug_log_level_name(arg1);
2385
+ vresult = SWIG_FromCharPtr((const char *)result);
2386
+ return vresult;
2387
+ fail:
2388
+ return Qnil;
2389
+ }
2390
+
2391
+
2392
+ SWIGINTERN VALUE
2393
+ _wrap_oboe_debug_module_name(int argc, VALUE *argv, VALUE self) {
2394
+ int arg1 ;
2395
+ int val1 ;
2396
+ int ecode1 = 0 ;
2397
+ char *result = 0 ;
2398
+ VALUE vresult = Qnil;
2399
+
2400
+ if ((argc < 1) || (argc > 1)) {
2401
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2402
+ }
2403
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2404
+ if (!SWIG_IsOK(ecode1)) {
2405
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_module_name", 1, argv[0] ));
2406
+ }
2407
+ arg1 = static_cast< int >(val1);
2408
+ result = (char *)oboe_debug_module_name(arg1);
2409
+ vresult = SWIG_FromCharPtr((const char *)result);
2410
+ return vresult;
2411
+ fail:
2412
+ return Qnil;
2413
+ }
2414
+
2415
+
2416
+ SWIGINTERN VALUE
2417
+ _wrap_oboe_debug_log_level_get(int argc, VALUE *argv, VALUE self) {
2418
+ int arg1 ;
2419
+ int val1 ;
2420
+ int ecode1 = 0 ;
2421
+ int result;
2422
+ VALUE vresult = Qnil;
2423
+
2424
+ if ((argc < 1) || (argc > 1)) {
2425
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2426
+ }
2427
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2428
+ if (!SWIG_IsOK(ecode1)) {
2429
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_get", 1, argv[0] ));
2430
+ }
2431
+ arg1 = static_cast< int >(val1);
2432
+ result = (int)oboe_debug_log_level_get(arg1);
2433
+ vresult = SWIG_From_int(static_cast< int >(result));
2434
+ return vresult;
2435
+ fail:
2436
+ return Qnil;
2437
+ }
2438
+
2439
+
2440
+ SWIGINTERN VALUE
2441
+ _wrap_oboe_debug_log_level_set(int argc, VALUE *argv, VALUE self) {
2442
+ FILE *arg1 = (FILE *) 0 ;
2443
+ int arg2 ;
2444
+ int arg3 ;
2445
+ void *argp1 = 0 ;
2446
+ int res1 = 0 ;
2447
+ int val2 ;
2448
+ int ecode2 = 0 ;
2449
+ int val3 ;
2450
+ int ecode3 = 0 ;
2451
+
2452
+ if ((argc < 3) || (argc > 3)) {
2453
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2454
+ }
2455
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2456
+ if (!SWIG_IsOK(res1)) {
2457
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_level_set", 1, argv[0] ));
2458
+ }
2459
+ arg1 = reinterpret_cast< FILE * >(argp1);
2460
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
2461
+ if (!SWIG_IsOK(ecode2)) {
2462
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 2, argv[1] ));
2463
+ }
2464
+ arg2 = static_cast< int >(val2);
2465
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
2466
+ if (!SWIG_IsOK(ecode3)) {
2467
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 3, argv[2] ));
2468
+ }
2469
+ arg3 = static_cast< int >(val3);
2470
+ oboe_debug_log_level_set(arg1,arg2,arg3);
2471
+ return Qnil;
2472
+ fail:
2473
+ return Qnil;
2474
+ }
2475
+
2476
+
2477
+ SWIGINTERN VALUE
2478
+ _wrap_oboe_debug_log_to_stream(int argc, VALUE *argv, VALUE self) {
2479
+ FILE *arg1 = (FILE *) 0 ;
2480
+ void *argp1 = 0 ;
2481
+ int res1 = 0 ;
2482
+ int result;
2483
+ VALUE vresult = Qnil;
2484
+
2485
+ if ((argc < 1) || (argc > 1)) {
2486
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2487
+ }
2488
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2489
+ if (!SWIG_IsOK(res1)) {
2490
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_to_stream", 1, argv[0] ));
2491
+ }
2492
+ arg1 = reinterpret_cast< FILE * >(argp1);
2493
+ result = (int)oboe_debug_log_to_stream(arg1);
2494
+ vresult = SWIG_From_int(static_cast< int >(result));
2495
+ return vresult;
2496
+ fail:
2497
+ return Qnil;
2498
+ }
2499
+
2500
+
2501
+ SWIGINTERN VALUE
2502
+ _wrap_oboe_debug_log_flush(int argc, VALUE *argv, VALUE self) {
2503
+ int result;
2504
+ VALUE vresult = Qnil;
2505
+
2506
+ if ((argc < 0) || (argc > 0)) {
2507
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2508
+ }
2509
+ result = (int)oboe_debug_log_flush();
2510
+ vresult = SWIG_From_int(static_cast< int >(result));
2511
+ return vresult;
2512
+ fail:
2513
+ return Qnil;
2514
+ }
2515
+
2516
+
2517
+ SWIGINTERN VALUE
2518
+ _wrap_oboe_debug_log_to_file(int argc, VALUE *argv, VALUE self) {
2519
+ char *arg1 = (char *) 0 ;
2520
+ int res1 ;
2521
+ char *buf1 = 0 ;
2522
+ int alloc1 = 0 ;
2523
+ int result;
2524
+ VALUE vresult = Qnil;
2525
+
2526
+ if ((argc < 1) || (argc > 1)) {
2527
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2528
+ }
2529
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2530
+ if (!SWIG_IsOK(res1)) {
2531
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","oboe_debug_log_to_file", 1, argv[0] ));
2532
+ }
2533
+ arg1 = reinterpret_cast< char * >(buf1);
2534
+ result = (int)oboe_debug_log_to_file((char const *)arg1);
2535
+ vresult = SWIG_From_int(static_cast< int >(result));
2536
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2537
+ return vresult;
2538
+ fail:
2539
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2540
+ return Qnil;
2541
+ }
2542
+
2543
+
2544
+ SWIGINTERN VALUE
2545
+ _wrap_oboe_debug_log_add(int argc, VALUE *argv, VALUE self) {
2546
+ OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2547
+ void *arg2 = (void *) 0 ;
2548
+ int arg3 ;
2549
+ int res2 ;
2550
+ int val3 ;
2551
+ int ecode3 = 0 ;
2552
+ int result;
2553
+ VALUE vresult = Qnil;
2554
+
2555
+ if ((argc < 3) || (argc > 3)) {
2556
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2557
+ }
2558
+ {
2559
+ int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void);
2560
+ if (!SWIG_IsOK(res)) {
2561
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_add", 1, argv[0] ));
2562
+ }
2563
+ }
2564
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2565
+ if (!SWIG_IsOK(res2)) {
2566
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_add", 2, argv[1] ));
2567
+ }
2568
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
2569
+ if (!SWIG_IsOK(ecode3)) {
2570
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_add", 3, argv[2] ));
2571
+ }
2572
+ arg3 = static_cast< int >(val3);
2573
+ result = (int)oboe_debug_log_add(arg1,arg2,arg3);
2574
+ vresult = SWIG_From_int(static_cast< int >(result));
2575
+ return vresult;
2576
+ fail:
2577
+ return Qnil;
2578
+ }
2579
+
2580
+
2581
+ SWIGINTERN VALUE
2582
+ _wrap_oboe_debug_log_remove(int argc, VALUE *argv, VALUE self) {
2583
+ OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2584
+ void *arg2 = (void *) 0 ;
2585
+ int res2 ;
2586
+ int result;
2587
+ VALUE vresult = Qnil;
2588
+
2589
+ if ((argc < 2) || (argc > 2)) {
2590
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2591
+ }
2592
+ {
2593
+ int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg1), SWIGTYPE_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void);
2594
+ if (!SWIG_IsOK(res)) {
2595
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_remove", 1, argv[0] ));
2596
+ }
2597
+ }
2598
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2599
+ if (!SWIG_IsOK(res2)) {
2600
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_remove", 2, argv[1] ));
2601
+ }
2602
+ result = (int)oboe_debug_log_remove(arg1,arg2);
2603
+ vresult = SWIG_From_int(static_cast< int >(result));
2604
+ return vresult;
2605
+ fail:
2606
+ return Qnil;
2607
+ }
2608
+
2609
+
2278
2610
  static swig_class SwigClassMetadata;
2279
2611
 
2280
2612
  SWIGINTERN VALUE
@@ -7649,12 +7981,14 @@ static swig_type_info _swigt__p_Config = {"_p_Config", "Config *", 0, 0, (void*)
7649
7981
  static swig_type_info _swigt__p_Context = {"_p_Context", "Context *", 0, 0, (void*)0, 0};
7650
7982
  static swig_type_info _swigt__p_CustomMetrics = {"_p_CustomMetrics", "CustomMetrics *", 0, 0, (void*)0, 0};
7651
7983
  static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)0, 0};
7984
+ static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
7652
7985
  static swig_type_info _swigt__p_Metadata = {"_p_Metadata", "Metadata *", 0, 0, (void*)0, 0};
7653
7986
  static swig_type_info _swigt__p_MetricTags = {"_p_MetricTags", "MetricTags *", 0, 0, (void*)0, 0};
7654
7987
  static swig_type_info _swigt__p_Reporter = {"_p_Reporter", "Reporter *", 0, 0, (void*)0, 0};
7655
7988
  static swig_type_info _swigt__p_Span = {"_p_Span", "Span *", 0, 0, (void*)0, 0};
7656
7989
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7657
7990
  static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
7991
+ static swig_type_info _swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void = {"_p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void", "OboeDebugLoggerFcn|void (*)(void *,int,int,char const *,int,char const *)", 0, 0, (void*)0, 0};
7658
7992
  static swig_type_info _swigt__p_int = {"_p_int", "intptr_t *|int *|int_least32_t *|int_fast32_t *|int32_t *|int_fast16_t *", 0, 0, (void*)0, 0};
7659
7993
  static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
7660
7994
  static swig_type_info _swigt__p_long_long = {"_p_long_long", "int_least64_t *|int_fast64_t *|int64_t *|long long *|intmax_t *", 0, 0, (void*)0, 0};
@@ -7673,12 +8007,14 @@ static swig_type_info *swig_type_initial[] = {
7673
8007
  &_swigt__p_Context,
7674
8008
  &_swigt__p_CustomMetrics,
7675
8009
  &_swigt__p_Event,
8010
+ &_swigt__p_FILE,
7676
8011
  &_swigt__p_Metadata,
7677
8012
  &_swigt__p_MetricTags,
7678
8013
  &_swigt__p_Reporter,
7679
8014
  &_swigt__p_Span,
7680
8015
  &_swigt__p_char,
7681
8016
  &_swigt__p_double,
8017
+ &_swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
7682
8018
  &_swigt__p_int,
7683
8019
  &_swigt__p_long,
7684
8020
  &_swigt__p_long_long,
@@ -7697,12 +8033,14 @@ static swig_cast_info _swigc__p_Config[] = { {&_swigt__p_Config, 0, 0, 0},{0, 0
7697
8033
  static swig_cast_info _swigc__p_Context[] = { {&_swigt__p_Context, 0, 0, 0},{0, 0, 0, 0}};
7698
8034
  static swig_cast_info _swigc__p_CustomMetrics[] = { {&_swigt__p_CustomMetrics, 0, 0, 0},{0, 0, 0, 0}};
7699
8035
  static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
8036
+ static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
7700
8037
  static swig_cast_info _swigc__p_Metadata[] = { {&_swigt__p_Metadata, 0, 0, 0},{0, 0, 0, 0}};
7701
8038
  static swig_cast_info _swigc__p_MetricTags[] = { {&_swigt__p_MetricTags, 0, 0, 0},{0, 0, 0, 0}};
7702
8039
  static swig_cast_info _swigc__p_Reporter[] = { {&_swigt__p_Reporter, 0, 0, 0},{0, 0, 0, 0}};
7703
8040
  static swig_cast_info _swigc__p_Span[] = { {&_swigt__p_Span, 0, 0, 0},{0, 0, 0, 0}};
7704
8041
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7705
8042
  static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
8043
+ static swig_cast_info _swigc__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void[] = { {&_swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
7706
8044
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
7707
8045
  static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
7708
8046
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -7721,12 +8059,14 @@ static swig_cast_info *swig_cast_initial[] = {
7721
8059
  _swigc__p_Context,
7722
8060
  _swigc__p_CustomMetrics,
7723
8061
  _swigc__p_Event,
8062
+ _swigc__p_FILE,
7724
8063
  _swigc__p_Metadata,
7725
8064
  _swigc__p_MetricTags,
7726
8065
  _swigc__p_Reporter,
7727
8066
  _swigc__p_Span,
7728
8067
  _swigc__p_char,
7729
8068
  _swigc__p_double,
8069
+ _swigc__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
7730
8070
  _swigc__p_int,
7731
8071
  _swigc__p_long,
7732
8072
  _swigc__p_long_long,
@@ -8014,6 +8354,21 @@ SWIGEXPORT void Init_oboe_metal(void) {
8014
8354
  rb_define_const(mOboe_metal, "OBOE_MODULE_PHP", SWIG_From_int(static_cast< int >(OBOE_MODULE_PHP)));
8015
8355
  rb_define_const(mOboe_metal, "OBOE_MODULE_DOTNET", SWIG_From_int(static_cast< int >(OBOE_MODULE_DOTNET)));
8016
8356
  rb_define_const(mOboe_metal, "OBOE_MODULE_RUBY", SWIG_From_int(static_cast< int >(OBOE_MODULE_RUBY)));
8357
+ rb_define_const(mOboe_metal, "OBOE_MODULE_HOST_ID_SERVICE", SWIG_From_int(static_cast< int >(OBOE_MODULE_HOST_ID_SERVICE)));
8358
+ rb_define_const(mOboe_metal, "OBOE_MODULE_AWS_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AWS_RESOURCE_PROVIDER)));
8359
+ rb_define_const(mOboe_metal, "OBOE_MODULE_AZURE_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AZURE_RESOURCE_PROVIDER)));
8360
+ rb_define_const(mOboe_metal, "MAX_DEBUG_MSG_COUNT", SWIG_From_int(static_cast< int >(1)));
8361
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_init", VALUEFUNC(_wrap_oboe_debug_log_init), -1);
8362
+ rb_define_module_function(mOboe_metal, "oboe_debug_logger", VALUEFUNC(_wrap_oboe_debug_logger), -1);
8363
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_name", VALUEFUNC(_wrap_oboe_debug_log_level_name), -1);
8364
+ rb_define_module_function(mOboe_metal, "oboe_debug_module_name", VALUEFUNC(_wrap_oboe_debug_module_name), -1);
8365
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_get", VALUEFUNC(_wrap_oboe_debug_log_level_get), -1);
8366
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_set", VALUEFUNC(_wrap_oboe_debug_log_level_set), -1);
8367
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_to_stream", VALUEFUNC(_wrap_oboe_debug_log_to_stream), -1);
8368
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_flush", VALUEFUNC(_wrap_oboe_debug_log_flush), -1);
8369
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_to_file", VALUEFUNC(_wrap_oboe_debug_log_to_file), -1);
8370
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_add", VALUEFUNC(_wrap_oboe_debug_log_add), -1);
8371
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_remove", VALUEFUNC(_wrap_oboe_debug_log_remove), -1);
8017
8372
 
8018
8373
  SwigClassMetadata.klass = rb_define_class_under(mOboe_metal, "Metadata", rb_cObject);
8019
8374
  SWIG_TypeClientData(SWIGTYPE_p_Metadata, (void *) &SwigClassMetadata);
@@ -29,10 +29,10 @@ module SolarWindsAPM
29
29
  say "-------------------"
30
30
  say ""
31
31
  say "SolarWindsAPM Installation Overview:"
32
- say "https://documentation.solarwinds.com/en/success_center/swaas/"
32
+ say "https://documentation.solarwinds.com/en/success_center/observability"
33
33
  say ""
34
34
  say "More information on instrumenting Ruby applications can be found here:"
35
- say "https://documentation.solarwinds.com/en/success_center/swaas/default.htm#cshid=app-add-ruby-agent"
35
+ say "https://documentation.solarwinds.com/en/success_center/observability/default.htm#cshid=config-ruby-agent"
36
36
  end
37
37
  # rubocop:enable Metrics/MethodLength
38
38
 
@@ -3,11 +3,11 @@
3
3
  # Copyright (c) 2019 SolarWinds, LLC.
4
4
  # All rights reserved.
5
5
 
6
- # SolarWindsAPM Configuration for the Ruby Agent aka solarwinds_apm gem
6
+ # SolarWindsAPM Configuration for the Ruby Library aka solarwinds_apm gem
7
7
  # https://cloud.solarwinds.com/
8
8
  #
9
- # More information on configuring the Ruby Agent can be found here:
10
- # https://documentation.solarwinds.com/en/success_center/swaas/default.htm#cshid=config-ruby-agent
9
+ # More information on configuring the Ruby Library can be found here:
10
+ # https://documentation.solarwinds.com/en/success_center/observability/default.htm#cshid=config-ruby-agent
11
11
  #
12
12
  # The initial settings in this file represent the defaults
13
13
 
@@ -46,9 +46,11 @@ if defined?(SolarWindsAPM::Config)
46
46
  # to SolarWinds is still encrypted using SSL/TLS.
47
47
  #
48
48
  # It is recommended to configure the proxy in this file or as SW_APM_PROXY
49
- # environment variable. However, the agent's underlying network library will
50
- # use a system-wide proxy defined in the environment variables grpc_proxy,
51
- # https_proxy or http_proxy if no SolarWindsAPM-specific configuration is set.
49
+ # environment variable. However, the underlying network library for the Ruby
50
+ # Instrumentation Library will use a system-wide proxy defined in the environment
51
+ # variables grpc_proxy, https_proxy or http_proxy if no SolarWindsAPM-specific
52
+ # configuration is set.
53
+ #
52
54
  # Please refer to gRPC environment variables for more information.
53
55
  #
54
56
  # SolarWindsAPM::Config[:http_proxy] = http://<proxyHost>:<proxyPort>
@@ -30,6 +30,7 @@ module SolarWindsAPM
30
30
  kvs[:RemoteURL] = url.split('?').first
31
31
  end
32
32
 
33
+ kvs[:RemoteURL] = SolarWindsAPM::Util.sanitize_uri(kvs[:RemoteURL])
33
34
  kvs[:HTTPMethod] = verb if verb
34
35
 
35
36
  kvs
@@ -23,6 +23,7 @@ module SolarWindsAPM
23
23
  kvs[:RemoteURL] = uri.to_s.split('?').first
24
24
  end
25
25
 
26
+ kvs[:RemoteURL] = SolarWindsAPM::Util.sanitize_uri(kvs[:RemoteURL])
26
27
  kvs[:HTTPMethod] = SolarWindsAPM::Util.upcase(method)
27
28
  kvs
28
29
  rescue => e
@@ -274,7 +274,7 @@ end
274
274
 
275
275
  if SolarWindsAPM::Config[:redis][:enabled]
276
276
  if defined?(::RedisClient)
277
- SolarWindsAPM.logger.info "[solarwinds_apm/loading] Instrumenting redis #{Redis::VERSION}" if SolarWindsAPM::Config[:verbose]
277
+ SolarWindsAPM.logger.info "[solarwinds_apm/loading] Instrumenting redis through RedisClient #{RedisClient::VERSION}" if SolarWindsAPM::Config[:verbose]
278
278
  ::RedisClient.register(SolarWindsAPM::Inst::Redis::Client)
279
279
  end
280
280
  end
@@ -37,7 +37,7 @@ module SolarWindsAPM
37
37
  # Conditionally log query params
38
38
  uri = URI(response.effective_url)
39
39
  kvs[:RemoteURL] = SolarWindsAPM::Config[:typhoeus][:log_args] ? uri.to_s : uri.to_s.split('?').first
40
-
40
+ kvs[:RemoteURL] = SolarWindsAPM::Util.sanitize_uri(kvs[:RemoteURL])
41
41
  response
42
42
  rescue => e
43
43
  SolarWindsAPM::API.log_exception(:typhoeus, e)