solarwinds_apm 5.1.6 → 5.1.8

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
 
@@ -1894,6 +1896,13 @@ static VALUE mOboe_metal;
1894
1896
 
1895
1897
 
1896
1898
  #include "oboe_api.h"
1899
+ #include "oboe_debug.h"
1900
+
1901
+
1902
+ #include <stdint.h> // Use the C99 official header
1903
+
1904
+
1905
+ #include <string>
1897
1906
 
1898
1907
 
1899
1908
  #include <limits.h>
@@ -1916,19 +1925,6 @@ SWIG_From_int (int value)
1916
1925
  }
1917
1926
 
1918
1927
 
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
1928
  SWIGINTERN VALUE
1933
1929
  SWIG_ruby_failed(VALUE SWIGUNUSEDPARM(arg1), VALUE SWIGUNUSEDPARM(arg2))
1934
1930
  {
@@ -1982,26 +1978,6 @@ SWIG_AsVal_int (VALUE obj, int *val)
1982
1978
  }
1983
1979
 
1984
1980
 
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
1981
  SWIGINTERN swig_type_info*
2006
1982
  SWIG_pchar_descriptor(void)
2007
1983
  {
@@ -2049,6 +2025,60 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
2049
2025
  }
2050
2026
 
2051
2027
 
2028
+
2029
+
2030
+
2031
+ SWIGINTERNINLINE VALUE
2032
+ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
2033
+ {
2034
+ if (carray) {
2035
+ if (size > LONG_MAX) {
2036
+ swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
2037
+ return pchar_descriptor ?
2038
+ SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
2039
+ } else {
2040
+ return rb_str_new(carray, static_cast< long >(size));
2041
+ }
2042
+ } else {
2043
+ return Qnil;
2044
+ }
2045
+ }
2046
+
2047
+
2048
+ SWIGINTERNINLINE VALUE
2049
+ SWIG_FromCharPtr(const char *cptr)
2050
+ {
2051
+ return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
2052
+ }
2053
+
2054
+
2055
+ SWIGINTERNINLINE VALUE
2056
+ SWIG_From_bool (bool value)
2057
+ {
2058
+ return value ? Qtrue : Qfalse;
2059
+ }
2060
+
2061
+
2062
+ SWIGINTERN int
2063
+ SWIG_AsVal_bool (VALUE obj, bool *val)
2064
+ {
2065
+ if (obj == Qtrue) {
2066
+ if (val) *val = true;
2067
+ return SWIG_OK;
2068
+ } else if (obj == Qfalse) {
2069
+ if (val) *val = false;
2070
+ return SWIG_OK;
2071
+ } else {
2072
+ int res = 0;
2073
+ if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
2074
+ if (val) *val = res ? true : false;
2075
+ return SWIG_OK;
2076
+ }
2077
+ }
2078
+ return SWIG_TypeError;
2079
+ }
2080
+
2081
+
2052
2082
  SWIGINTERN int
2053
2083
  SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2054
2084
  {
@@ -2080,23 +2110,6 @@ SWIG_AsPtr_std_string (VALUE obj, std::string **val)
2080
2110
  }
2081
2111
 
2082
2112
 
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
2113
  SWIGINTERNINLINE VALUE
2101
2114
  SWIG_From_std_string (const std::string& s)
2102
2115
  {
@@ -2104,9 +2117,6 @@ SWIG_From_std_string (const std::string& s)
2104
2117
  }
2105
2118
 
2106
2119
 
2107
-
2108
-
2109
-
2110
2120
  #define SWIG_From_double rb_float_new
2111
2121
 
2112
2122
 
@@ -2275,6 +2285,329 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
2275
2285
  return res;
2276
2286
  }
2277
2287
 
2288
+ SWIGINTERN VALUE
2289
+ _wrap_oboe_debug_log_init(int argc, VALUE *argv, VALUE self) {
2290
+ FILE *arg1 = (FILE *) 0 ;
2291
+ void *argp1 = 0 ;
2292
+ int res1 = 0 ;
2293
+
2294
+ if ((argc < 1) || (argc > 1)) {
2295
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2296
+ }
2297
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2298
+ if (!SWIG_IsOK(res1)) {
2299
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_init", 1, argv[0] ));
2300
+ }
2301
+ arg1 = reinterpret_cast< FILE * >(argp1);
2302
+ oboe_debug_log_init(arg1);
2303
+ return Qnil;
2304
+ fail:
2305
+ return Qnil;
2306
+ }
2307
+
2308
+
2309
+ SWIGINTERN VALUE
2310
+ _wrap_oboe_debug_logger(int argc, VALUE *argv, VALUE self) {
2311
+ int arg1 ;
2312
+ int arg2 ;
2313
+ char *arg3 = (char *) 0 ;
2314
+ int arg4 ;
2315
+ char *arg5 = (char *) 0 ;
2316
+ void *arg6 = 0 ;
2317
+ int val1 ;
2318
+ int ecode1 = 0 ;
2319
+ int val2 ;
2320
+ int ecode2 = 0 ;
2321
+ int res3 ;
2322
+ char *buf3 = 0 ;
2323
+ int alloc3 = 0 ;
2324
+ int val4 ;
2325
+ int ecode4 = 0 ;
2326
+ int res5 ;
2327
+ char *buf5 = 0 ;
2328
+ int alloc5 = 0 ;
2329
+
2330
+ if (argc < 5) {
2331
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
2332
+ }
2333
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2334
+ if (!SWIG_IsOK(ecode1)) {
2335
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 1, argv[0] ));
2336
+ }
2337
+ arg1 = static_cast< int >(val1);
2338
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
2339
+ if (!SWIG_IsOK(ecode2)) {
2340
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 2, argv[1] ));
2341
+ }
2342
+ arg2 = static_cast< int >(val2);
2343
+ res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
2344
+ if (!SWIG_IsOK(res3)) {
2345
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 3, argv[2] ));
2346
+ }
2347
+ arg3 = reinterpret_cast< char * >(buf3);
2348
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
2349
+ if (!SWIG_IsOK(ecode4)) {
2350
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","oboe_debug_logger", 4, argv[3] ));
2351
+ }
2352
+ arg4 = static_cast< int >(val4);
2353
+ res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
2354
+ if (!SWIG_IsOK(res5)) {
2355
+ SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","oboe_debug_logger", 5, argv[4] ));
2356
+ }
2357
+ arg5 = reinterpret_cast< char * >(buf5);
2358
+ oboe_debug_logger(arg1,arg2,(char const *)arg3,arg4,(char const *)arg5,arg6);
2359
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2360
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2361
+ return Qnil;
2362
+ fail:
2363
+ if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
2364
+ if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
2365
+ return Qnil;
2366
+ }
2367
+
2368
+
2369
+ SWIGINTERN VALUE
2370
+ _wrap_oboe_debug_log_level_name(int argc, VALUE *argv, VALUE self) {
2371
+ int arg1 ;
2372
+ int val1 ;
2373
+ int ecode1 = 0 ;
2374
+ char *result = 0 ;
2375
+ VALUE vresult = Qnil;
2376
+
2377
+ if ((argc < 1) || (argc > 1)) {
2378
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2379
+ }
2380
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2381
+ if (!SWIG_IsOK(ecode1)) {
2382
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_name", 1, argv[0] ));
2383
+ }
2384
+ arg1 = static_cast< int >(val1);
2385
+ result = (char *)oboe_debug_log_level_name(arg1);
2386
+ vresult = SWIG_FromCharPtr((const char *)result);
2387
+ return vresult;
2388
+ fail:
2389
+ return Qnil;
2390
+ }
2391
+
2392
+
2393
+ SWIGINTERN VALUE
2394
+ _wrap_oboe_debug_module_name(int argc, VALUE *argv, VALUE self) {
2395
+ int arg1 ;
2396
+ int val1 ;
2397
+ int ecode1 = 0 ;
2398
+ char *result = 0 ;
2399
+ VALUE vresult = Qnil;
2400
+
2401
+ if ((argc < 1) || (argc > 1)) {
2402
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2403
+ }
2404
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2405
+ if (!SWIG_IsOK(ecode1)) {
2406
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_module_name", 1, argv[0] ));
2407
+ }
2408
+ arg1 = static_cast< int >(val1);
2409
+ result = (char *)oboe_debug_module_name(arg1);
2410
+ vresult = SWIG_FromCharPtr((const char *)result);
2411
+ return vresult;
2412
+ fail:
2413
+ return Qnil;
2414
+ }
2415
+
2416
+
2417
+ SWIGINTERN VALUE
2418
+ _wrap_oboe_debug_log_level_get(int argc, VALUE *argv, VALUE self) {
2419
+ int arg1 ;
2420
+ int val1 ;
2421
+ int ecode1 = 0 ;
2422
+ int result;
2423
+ VALUE vresult = Qnil;
2424
+
2425
+ if ((argc < 1) || (argc > 1)) {
2426
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2427
+ }
2428
+ ecode1 = SWIG_AsVal_int(argv[0], &val1);
2429
+ if (!SWIG_IsOK(ecode1)) {
2430
+ SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_get", 1, argv[0] ));
2431
+ }
2432
+ arg1 = static_cast< int >(val1);
2433
+ result = (int)oboe_debug_log_level_get(arg1);
2434
+ vresult = SWIG_From_int(static_cast< int >(result));
2435
+ return vresult;
2436
+ fail:
2437
+ return Qnil;
2438
+ }
2439
+
2440
+
2441
+ SWIGINTERN VALUE
2442
+ _wrap_oboe_debug_log_level_set(int argc, VALUE *argv, VALUE self) {
2443
+ FILE *arg1 = (FILE *) 0 ;
2444
+ int arg2 ;
2445
+ int arg3 ;
2446
+ void *argp1 = 0 ;
2447
+ int res1 = 0 ;
2448
+ int val2 ;
2449
+ int ecode2 = 0 ;
2450
+ int val3 ;
2451
+ int ecode3 = 0 ;
2452
+
2453
+ if ((argc < 3) || (argc > 3)) {
2454
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2455
+ }
2456
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2457
+ if (!SWIG_IsOK(res1)) {
2458
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_level_set", 1, argv[0] ));
2459
+ }
2460
+ arg1 = reinterpret_cast< FILE * >(argp1);
2461
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
2462
+ if (!SWIG_IsOK(ecode2)) {
2463
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 2, argv[1] ));
2464
+ }
2465
+ arg2 = static_cast< int >(val2);
2466
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
2467
+ if (!SWIG_IsOK(ecode3)) {
2468
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_level_set", 3, argv[2] ));
2469
+ }
2470
+ arg3 = static_cast< int >(val3);
2471
+ oboe_debug_log_level_set(arg1,arg2,arg3);
2472
+ return Qnil;
2473
+ fail:
2474
+ return Qnil;
2475
+ }
2476
+
2477
+
2478
+ SWIGINTERN VALUE
2479
+ _wrap_oboe_debug_log_to_stream(int argc, VALUE *argv, VALUE self) {
2480
+ FILE *arg1 = (FILE *) 0 ;
2481
+ void *argp1 = 0 ;
2482
+ int res1 = 0 ;
2483
+ int result;
2484
+ VALUE vresult = Qnil;
2485
+
2486
+ if ((argc < 1) || (argc > 1)) {
2487
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2488
+ }
2489
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FILE, 0 | 0 );
2490
+ if (!SWIG_IsOK(res1)) {
2491
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FILE *","oboe_debug_log_to_stream", 1, argv[0] ));
2492
+ }
2493
+ arg1 = reinterpret_cast< FILE * >(argp1);
2494
+ result = (int)oboe_debug_log_to_stream(arg1);
2495
+ vresult = SWIG_From_int(static_cast< int >(result));
2496
+ return vresult;
2497
+ fail:
2498
+ return Qnil;
2499
+ }
2500
+
2501
+
2502
+ SWIGINTERN VALUE
2503
+ _wrap_oboe_debug_log_flush(int argc, VALUE *argv, VALUE self) {
2504
+ int result;
2505
+ VALUE vresult = Qnil;
2506
+
2507
+ if ((argc < 0) || (argc > 0)) {
2508
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2509
+ }
2510
+ result = (int)oboe_debug_log_flush();
2511
+ vresult = SWIG_From_int(static_cast< int >(result));
2512
+ return vresult;
2513
+ fail:
2514
+ return Qnil;
2515
+ }
2516
+
2517
+
2518
+ SWIGINTERN VALUE
2519
+ _wrap_oboe_debug_log_to_file(int argc, VALUE *argv, VALUE self) {
2520
+ char *arg1 = (char *) 0 ;
2521
+ int res1 ;
2522
+ char *buf1 = 0 ;
2523
+ int alloc1 = 0 ;
2524
+ int result;
2525
+ VALUE vresult = Qnil;
2526
+
2527
+ if ((argc < 1) || (argc > 1)) {
2528
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
2529
+ }
2530
+ res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
2531
+ if (!SWIG_IsOK(res1)) {
2532
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","oboe_debug_log_to_file", 1, argv[0] ));
2533
+ }
2534
+ arg1 = reinterpret_cast< char * >(buf1);
2535
+ result = (int)oboe_debug_log_to_file((char const *)arg1);
2536
+ vresult = SWIG_From_int(static_cast< int >(result));
2537
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2538
+ return vresult;
2539
+ fail:
2540
+ if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
2541
+ return Qnil;
2542
+ }
2543
+
2544
+
2545
+ SWIGINTERN VALUE
2546
+ _wrap_oboe_debug_log_add(int argc, VALUE *argv, VALUE self) {
2547
+ OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2548
+ void *arg2 = (void *) 0 ;
2549
+ int arg3 ;
2550
+ int res2 ;
2551
+ int val3 ;
2552
+ int ecode3 = 0 ;
2553
+ int result;
2554
+ VALUE vresult = Qnil;
2555
+
2556
+ if ((argc < 3) || (argc > 3)) {
2557
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
2558
+ }
2559
+ {
2560
+ 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);
2561
+ if (!SWIG_IsOK(res)) {
2562
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_add", 1, argv[0] ));
2563
+ }
2564
+ }
2565
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2566
+ if (!SWIG_IsOK(res2)) {
2567
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_add", 2, argv[1] ));
2568
+ }
2569
+ ecode3 = SWIG_AsVal_int(argv[2], &val3);
2570
+ if (!SWIG_IsOK(ecode3)) {
2571
+ SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","oboe_debug_log_add", 3, argv[2] ));
2572
+ }
2573
+ arg3 = static_cast< int >(val3);
2574
+ result = (int)oboe_debug_log_add(arg1,arg2,arg3);
2575
+ vresult = SWIG_From_int(static_cast< int >(result));
2576
+ return vresult;
2577
+ fail:
2578
+ return Qnil;
2579
+ }
2580
+
2581
+
2582
+ SWIGINTERN VALUE
2583
+ _wrap_oboe_debug_log_remove(int argc, VALUE *argv, VALUE self) {
2584
+ OboeDebugLoggerFcn arg1 = (OboeDebugLoggerFcn) 0 ;
2585
+ void *arg2 = (void *) 0 ;
2586
+ int res2 ;
2587
+ int result;
2588
+ VALUE vresult = Qnil;
2589
+
2590
+ if ((argc < 2) || (argc > 2)) {
2591
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
2592
+ }
2593
+ {
2594
+ 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);
2595
+ if (!SWIG_IsOK(res)) {
2596
+ SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "OboeDebugLoggerFcn","oboe_debug_log_remove", 1, argv[0] ));
2597
+ }
2598
+ }
2599
+ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
2600
+ if (!SWIG_IsOK(res2)) {
2601
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","oboe_debug_log_remove", 2, argv[1] ));
2602
+ }
2603
+ result = (int)oboe_debug_log_remove(arg1,arg2);
2604
+ vresult = SWIG_From_int(static_cast< int >(result));
2605
+ return vresult;
2606
+ fail:
2607
+ return Qnil;
2608
+ }
2609
+
2610
+
2278
2611
  static swig_class SwigClassMetadata;
2279
2612
 
2280
2613
  SWIGINTERN VALUE
@@ -2450,7 +2783,7 @@ _wrap_Metadata_makeRandom__SWIG_1(int argc, VALUE *argv, VALUE self) {
2450
2783
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2451
2784
  }
2452
2785
  result = (Metadata *)Metadata::makeRandom();
2453
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, 0 | 0 );
2786
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 );
2454
2787
  return vresult;
2455
2788
  fail:
2456
2789
  return Qnil;
@@ -2492,7 +2825,8 @@ fail:
2492
2825
 
2493
2826
  SWIGINTERN VALUE
2494
2827
  _wrap_Metadata_fromString(int argc, VALUE *argv, VALUE self) {
2495
- std::string arg1 ;
2828
+ std::string *arg1 = 0 ;
2829
+ int res1 = SWIG_OLDOBJ ;
2496
2830
  Metadata *result = 0 ;
2497
2831
  VALUE vresult = Qnil;
2498
2832
 
@@ -2501,17 +2835,21 @@ _wrap_Metadata_fromString(int argc, VALUE *argv, VALUE self) {
2501
2835
  }
2502
2836
  {
2503
2837
  std::string *ptr = (std::string *)0;
2504
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
2505
- if (!SWIG_IsOK(res) || !ptr) {
2506
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Metadata::fromString", 1, argv[0] ));
2838
+ res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
2839
+ if (!SWIG_IsOK(res1)) {
2840
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","Metadata::fromString", 1, argv[0] ));
2507
2841
  }
2508
- arg1 = *ptr;
2509
- if (SWIG_IsNewObj(res)) delete ptr;
2842
+ if (!ptr) {
2843
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","Metadata::fromString", 1, argv[0]));
2844
+ }
2845
+ arg1 = ptr;
2510
2846
  }
2511
- result = (Metadata *)Metadata::fromString(arg1);
2847
+ result = (Metadata *)Metadata::fromString((std::string const &)*arg1);
2512
2848
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN | 0 );
2849
+ if (SWIG_IsNewObj(res1)) delete arg1;
2513
2850
  return vresult;
2514
2851
  fail:
2852
+ if (SWIG_IsNewObj(res1)) delete arg1;
2515
2853
  return Qnil;
2516
2854
  }
2517
2855
 
@@ -4653,23 +4991,28 @@ fail:
4653
4991
 
4654
4992
  SWIGINTERN VALUE
4655
4993
  _wrap_Context_fromString(int argc, VALUE *argv, VALUE self) {
4656
- std::string arg1 ;
4994
+ std::string *arg1 = 0 ;
4995
+ int res1 = SWIG_OLDOBJ ;
4657
4996
 
4658
4997
  if ((argc < 1) || (argc > 1)) {
4659
4998
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4660
4999
  }
4661
5000
  {
4662
5001
  std::string *ptr = (std::string *)0;
4663
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
4664
- if (!SWIG_IsOK(res) || !ptr) {
4665
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::fromString", 1, argv[0] ));
5002
+ res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
5003
+ if (!SWIG_IsOK(res1)) {
5004
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","Context::fromString", 1, argv[0] ));
4666
5005
  }
4667
- arg1 = *ptr;
4668
- if (SWIG_IsNewObj(res)) delete ptr;
5006
+ if (!ptr) {
5007
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","Context::fromString", 1, argv[0]));
5008
+ }
5009
+ arg1 = ptr;
4669
5010
  }
4670
- Context::fromString(arg1);
5011
+ Context::fromString((std::string const &)*arg1);
5012
+ if (SWIG_IsNewObj(res1)) delete arg1;
4671
5013
  return Qnil;
4672
5014
  fail:
5015
+ if (SWIG_IsNewObj(res1)) delete arg1;
4673
5016
  return Qnil;
4674
5017
  }
4675
5018
 
@@ -4748,7 +5091,8 @@ fail:
4748
5091
 
4749
5092
  SWIGINTERN VALUE
4750
5093
  _wrap_Context_validateTransformServiceName(int argc, VALUE *argv, VALUE self) {
4751
- std::string arg1 ;
5094
+ std::string *arg1 = 0 ;
5095
+ int res1 = SWIG_OLDOBJ ;
4752
5096
  std::string result;
4753
5097
  VALUE vresult = Qnil;
4754
5098
 
@@ -4757,17 +5101,21 @@ _wrap_Context_validateTransformServiceName(int argc, VALUE *argv, VALUE self) {
4757
5101
  }
4758
5102
  {
4759
5103
  std::string *ptr = (std::string *)0;
4760
- int res = SWIG_AsPtr_std_string(argv[0], &ptr);
4761
- if (!SWIG_IsOK(res) || !ptr) {
4762
- SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::validateTransformServiceName", 1, argv[0] ));
5104
+ res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
5105
+ if (!SWIG_IsOK(res1)) {
5106
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","Context::validateTransformServiceName", 1, argv[0] ));
4763
5107
  }
4764
- arg1 = *ptr;
4765
- if (SWIG_IsNewObj(res)) delete ptr;
5108
+ if (!ptr) {
5109
+ SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","Context::validateTransformServiceName", 1, argv[0]));
5110
+ }
5111
+ arg1 = ptr;
4766
5112
  }
4767
- result = Context::validateTransformServiceName(arg1);
5113
+ result = Context::validateTransformServiceName((std::string const &)*arg1);
4768
5114
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
5115
+ if (SWIG_IsNewObj(res1)) delete arg1;
4769
5116
  return vresult;
4770
5117
  fail:
5118
+ if (SWIG_IsNewObj(res1)) delete arg1;
4771
5119
  return Qnil;
4772
5120
  }
4773
5121
 
@@ -4889,7 +5237,7 @@ _wrap_Context_createEntry__SWIG_0(int argc, VALUE *argv, VALUE self) {
4889
5237
  }
4890
5238
  arg3 = reinterpret_cast< oboe_metadata_t * >(argp3);
4891
5239
  result = (Event *)Context::createEntry((oboe_metadata_t const *)arg1,arg2,(oboe_metadata_t const *)arg3);
4892
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
5240
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
4893
5241
  return vresult;
4894
5242
  fail:
4895
5243
  return Qnil;
@@ -4921,7 +5269,7 @@ _wrap_Context_createEntry__SWIG_1(int argc, VALUE *argv, VALUE self) {
4921
5269
  }
4922
5270
  arg2 = static_cast< int64_t >(val2);
4923
5271
  result = (Event *)Context::createEntry((oboe_metadata_t const *)arg1,arg2);
4924
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
5272
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
4925
5273
  return vresult;
4926
5274
  fail:
4927
5275
  return Qnil;
@@ -5000,7 +5348,7 @@ _wrap_Context_createEvent__SWIG_1(int argc, VALUE *argv, VALUE self) {
5000
5348
  }
5001
5349
  arg1 = static_cast< int64_t >(val1);
5002
5350
  result = (Event *)Context::createEvent(arg1);
5003
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
5351
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
5004
5352
  return vresult;
5005
5353
  fail:
5006
5354
  return Qnil;
@@ -5057,7 +5405,7 @@ _wrap_Context_createExit(int argc, VALUE *argv, VALUE self) {
5057
5405
  }
5058
5406
  arg1 = static_cast< int64_t >(val1);
5059
5407
  result = (Event *)Context::createExit(arg1);
5060
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, 0 | 0 );
5408
+ vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN | 0 );
5061
5409
  return vresult;
5062
5410
  fail:
5063
5411
  return Qnil;
@@ -7649,12 +7997,14 @@ static swig_type_info _swigt__p_Config = {"_p_Config", "Config *", 0, 0, (void*)
7649
7997
  static swig_type_info _swigt__p_Context = {"_p_Context", "Context *", 0, 0, (void*)0, 0};
7650
7998
  static swig_type_info _swigt__p_CustomMetrics = {"_p_CustomMetrics", "CustomMetrics *", 0, 0, (void*)0, 0};
7651
7999
  static swig_type_info _swigt__p_Event = {"_p_Event", "Event *", 0, 0, (void*)0, 0};
8000
+ static swig_type_info _swigt__p_FILE = {"_p_FILE", "FILE *", 0, 0, (void*)0, 0};
7652
8001
  static swig_type_info _swigt__p_Metadata = {"_p_Metadata", "Metadata *", 0, 0, (void*)0, 0};
7653
8002
  static swig_type_info _swigt__p_MetricTags = {"_p_MetricTags", "MetricTags *", 0, 0, (void*)0, 0};
7654
8003
  static swig_type_info _swigt__p_Reporter = {"_p_Reporter", "Reporter *", 0, 0, (void*)0, 0};
7655
8004
  static swig_type_info _swigt__p_Span = {"_p_Span", "Span *", 0, 0, (void*)0, 0};
7656
8005
  static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
7657
8006
  static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
8007
+ 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
8008
  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
8009
  static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
7660
8010
  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 +8023,14 @@ static swig_type_info *swig_type_initial[] = {
7673
8023
  &_swigt__p_Context,
7674
8024
  &_swigt__p_CustomMetrics,
7675
8025
  &_swigt__p_Event,
8026
+ &_swigt__p_FILE,
7676
8027
  &_swigt__p_Metadata,
7677
8028
  &_swigt__p_MetricTags,
7678
8029
  &_swigt__p_Reporter,
7679
8030
  &_swigt__p_Span,
7680
8031
  &_swigt__p_char,
7681
8032
  &_swigt__p_double,
8033
+ &_swigt__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
7682
8034
  &_swigt__p_int,
7683
8035
  &_swigt__p_long,
7684
8036
  &_swigt__p_long_long,
@@ -7697,12 +8049,14 @@ static swig_cast_info _swigc__p_Config[] = { {&_swigt__p_Config, 0, 0, 0},{0, 0
7697
8049
  static swig_cast_info _swigc__p_Context[] = { {&_swigt__p_Context, 0, 0, 0},{0, 0, 0, 0}};
7698
8050
  static swig_cast_info _swigc__p_CustomMetrics[] = { {&_swigt__p_CustomMetrics, 0, 0, 0},{0, 0, 0, 0}};
7699
8051
  static swig_cast_info _swigc__p_Event[] = { {&_swigt__p_Event, 0, 0, 0},{0, 0, 0, 0}};
8052
+ static swig_cast_info _swigc__p_FILE[] = { {&_swigt__p_FILE, 0, 0, 0},{0, 0, 0, 0}};
7700
8053
  static swig_cast_info _swigc__p_Metadata[] = { {&_swigt__p_Metadata, 0, 0, 0},{0, 0, 0, 0}};
7701
8054
  static swig_cast_info _swigc__p_MetricTags[] = { {&_swigt__p_MetricTags, 0, 0, 0},{0, 0, 0, 0}};
7702
8055
  static swig_cast_info _swigc__p_Reporter[] = { {&_swigt__p_Reporter, 0, 0, 0},{0, 0, 0, 0}};
7703
8056
  static swig_cast_info _swigc__p_Span[] = { {&_swigt__p_Span, 0, 0, 0},{0, 0, 0, 0}};
7704
8057
  static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
7705
8058
  static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
8059
+ 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
8060
  static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
7707
8061
  static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
7708
8062
  static swig_cast_info _swigc__p_long_long[] = { {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
@@ -7721,12 +8075,14 @@ static swig_cast_info *swig_cast_initial[] = {
7721
8075
  _swigc__p_Context,
7722
8076
  _swigc__p_CustomMetrics,
7723
8077
  _swigc__p_Event,
8078
+ _swigc__p_FILE,
7724
8079
  _swigc__p_Metadata,
7725
8080
  _swigc__p_MetricTags,
7726
8081
  _swigc__p_Reporter,
7727
8082
  _swigc__p_Span,
7728
8083
  _swigc__p_char,
7729
8084
  _swigc__p_double,
8085
+ _swigc__p_f_p_void_int_int_p_q_const__char_int_p_q_const__char__void,
7730
8086
  _swigc__p_int,
7731
8087
  _swigc__p_long,
7732
8088
  _swigc__p_long_long,
@@ -8014,6 +8370,21 @@ SWIGEXPORT void Init_oboe_metal(void) {
8014
8370
  rb_define_const(mOboe_metal, "OBOE_MODULE_PHP", SWIG_From_int(static_cast< int >(OBOE_MODULE_PHP)));
8015
8371
  rb_define_const(mOboe_metal, "OBOE_MODULE_DOTNET", SWIG_From_int(static_cast< int >(OBOE_MODULE_DOTNET)));
8016
8372
  rb_define_const(mOboe_metal, "OBOE_MODULE_RUBY", SWIG_From_int(static_cast< int >(OBOE_MODULE_RUBY)));
8373
+ rb_define_const(mOboe_metal, "OBOE_MODULE_HOST_ID_SERVICE", SWIG_From_int(static_cast< int >(OBOE_MODULE_HOST_ID_SERVICE)));
8374
+ rb_define_const(mOboe_metal, "OBOE_MODULE_AWS_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AWS_RESOURCE_PROVIDER)));
8375
+ rb_define_const(mOboe_metal, "OBOE_MODULE_AZURE_RESOURCE_PROVIDER", SWIG_From_int(static_cast< int >(OBOE_MODULE_AZURE_RESOURCE_PROVIDER)));
8376
+ rb_define_const(mOboe_metal, "MAX_DEBUG_MSG_COUNT", SWIG_From_int(static_cast< int >(1)));
8377
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_init", VALUEFUNC(_wrap_oboe_debug_log_init), -1);
8378
+ rb_define_module_function(mOboe_metal, "oboe_debug_logger", VALUEFUNC(_wrap_oboe_debug_logger), -1);
8379
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_name", VALUEFUNC(_wrap_oboe_debug_log_level_name), -1);
8380
+ rb_define_module_function(mOboe_metal, "oboe_debug_module_name", VALUEFUNC(_wrap_oboe_debug_module_name), -1);
8381
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_get", VALUEFUNC(_wrap_oboe_debug_log_level_get), -1);
8382
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_level_set", VALUEFUNC(_wrap_oboe_debug_log_level_set), -1);
8383
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_to_stream", VALUEFUNC(_wrap_oboe_debug_log_to_stream), -1);
8384
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_flush", VALUEFUNC(_wrap_oboe_debug_log_flush), -1);
8385
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_to_file", VALUEFUNC(_wrap_oboe_debug_log_to_file), -1);
8386
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_add", VALUEFUNC(_wrap_oboe_debug_log_add), -1);
8387
+ rb_define_module_function(mOboe_metal, "oboe_debug_log_remove", VALUEFUNC(_wrap_oboe_debug_log_remove), -1);
8017
8388
 
8018
8389
  SwigClassMetadata.klass = rb_define_class_under(mOboe_metal, "Metadata", rb_cObject);
8019
8390
  SWIG_TypeClientData(SWIGTYPE_p_Metadata, (void *) &SwigClassMetadata);