3232
3333using namespace opentelemetry ;
3434
35- void do_something ()
35+ static void do_something ()
3636{
3737 do_something_in_a ();
3838 do_something_in_b ();
@@ -111,33 +111,33 @@ void do_something()
111111#endif /* BAZEL_BUILD */
112112}
113113
114- int span_a_lib_count = 0 ;
115- int span_a_f1_count = 0 ;
116- int span_a_f2_count = 0 ;
117- int span_b_lib_count = 0 ;
118- int span_b_f1_count = 0 ;
119- int span_b_f2_count = 0 ;
120- int span_c_lib_count = 0 ;
121- int span_c_f1_count = 0 ;
122- int span_c_f2_count = 0 ;
123- int span_d_lib_count = 0 ;
124- int span_d_f1_count = 0 ;
125- int span_d_f2_count = 0 ;
126- int span_e_lib_count = 0 ;
127- int span_e_f1_count = 0 ;
128- int span_e_f2_count = 0 ;
129- int span_f_lib_count = 0 ;
130- int span_f_f1_count = 0 ;
131- int span_f_f2_count = 0 ;
132- int span_g_lib_count = 0 ;
133- int span_g_f1_count = 0 ;
134- int span_g_f2_count = 0 ;
135- int span_h_lib_count = 0 ;
136- int span_h_f1_count = 0 ;
137- int span_h_f2_count = 0 ;
138- int unknown_span_count = 0 ;
139-
140- void reset_counts ()
114+ static int span_a_lib_count = 0 ;
115+ static int span_a_f1_count = 0 ;
116+ static int span_a_f2_count = 0 ;
117+ static int span_b_lib_count = 0 ;
118+ static int span_b_f1_count = 0 ;
119+ static int span_b_f2_count = 0 ;
120+ static int span_c_lib_count = 0 ;
121+ static int span_c_f1_count = 0 ;
122+ static int span_c_f2_count = 0 ;
123+ static int span_d_lib_count = 0 ;
124+ static int span_d_f1_count = 0 ;
125+ static int span_d_f2_count = 0 ;
126+ static int span_e_lib_count = 0 ;
127+ static int span_e_f1_count = 0 ;
128+ static int span_e_f2_count = 0 ;
129+ static int span_f_lib_count = 0 ;
130+ static int span_f_f1_count = 0 ;
131+ static int span_f_f2_count = 0 ;
132+ static int span_g_lib_count = 0 ;
133+ static int span_g_f1_count = 0 ;
134+ static int span_g_f2_count = 0 ;
135+ static int span_h_lib_count = 0 ;
136+ static int span_h_f1_count = 0 ;
137+ static int span_h_f2_count = 0 ;
138+ static int unknown_span_count = 0 ;
139+
140+ static void reset_counts ()
141141{
142142 span_a_lib_count = 0 ;
143143 span_a_f1_count = 0 ;
@@ -331,7 +331,7 @@ class MyTracerProvider : public trace::TracerProvider
331331#endif
332332};
333333
334- void setup_otel ()
334+ static void setup_otel ()
335335{
336336 std::shared_ptr<opentelemetry::trace::TracerProvider> provider = MyTracerProvider::Create ();
337337
@@ -343,7 +343,7 @@ void setup_otel()
343343 trace_api::Provider::SetTracerProvider (provider);
344344}
345345
346- void cleanup_otel ()
346+ static void cleanup_otel ()
347347{
348348 std::shared_ptr<opentelemetry::trace::TracerProvider> provider (
349349 new opentelemetry::trace::NoopTracerProvider ());
0 commit comments