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 ();
@@ -108,33 +108,33 @@ void do_something()
108108# endif
109109}
110110
111- int span_a_lib_count = 0 ;
112- int span_a_f1_count = 0 ;
113- int span_a_f2_count = 0 ;
114- int span_b_lib_count = 0 ;
115- int span_b_f1_count = 0 ;
116- int span_b_f2_count = 0 ;
117- int span_c_lib_count = 0 ;
118- int span_c_f1_count = 0 ;
119- int span_c_f2_count = 0 ;
120- int span_d_lib_count = 0 ;
121- int span_d_f1_count = 0 ;
122- int span_d_f2_count = 0 ;
123- int span_e_lib_count = 0 ;
124- int span_e_f1_count = 0 ;
125- int span_e_f2_count = 0 ;
126- int span_f_lib_count = 0 ;
127- int span_f_f1_count = 0 ;
128- int span_f_f2_count = 0 ;
129- int span_g_lib_count = 0 ;
130- int span_g_f1_count = 0 ;
131- int span_g_f2_count = 0 ;
132- int span_h_lib_count = 0 ;
133- int span_h_f1_count = 0 ;
134- int span_h_f2_count = 0 ;
135- int unknown_span_count = 0 ;
136-
137- void reset_counts ()
111+ static int span_a_lib_count = 0 ;
112+ static int span_a_f1_count = 0 ;
113+ static int span_a_f2_count = 0 ;
114+ static int span_b_lib_count = 0 ;
115+ static int span_b_f1_count = 0 ;
116+ static int span_b_f2_count = 0 ;
117+ static int span_c_lib_count = 0 ;
118+ static int span_c_f1_count = 0 ;
119+ static int span_c_f2_count = 0 ;
120+ static int span_d_lib_count = 0 ;
121+ static int span_d_f1_count = 0 ;
122+ static int span_d_f2_count = 0 ;
123+ static int span_e_lib_count = 0 ;
124+ static int span_e_f1_count = 0 ;
125+ static int span_e_f2_count = 0 ;
126+ static int span_f_lib_count = 0 ;
127+ static int span_f_f1_count = 0 ;
128+ static int span_f_f2_count = 0 ;
129+ static int span_g_lib_count = 0 ;
130+ static int span_g_f1_count = 0 ;
131+ static int span_g_f2_count = 0 ;
132+ static int span_h_lib_count = 0 ;
133+ static int span_h_f1_count = 0 ;
134+ static int span_h_f2_count = 0 ;
135+ static int unknown_span_count = 0 ;
136+
137+ static void reset_counts ()
138138{
139139 span_a_lib_count = 0 ;
140140 span_a_f1_count = 0 ;
@@ -328,7 +328,7 @@ class MyTracerProvider : public trace::TracerProvider
328328#endif
329329};
330330
331- void setup_otel ()
331+ static void setup_otel ()
332332{
333333 std::shared_ptr<opentelemetry::trace::TracerProvider> provider = MyTracerProvider::Create ();
334334
@@ -340,7 +340,7 @@ void setup_otel()
340340 trace_api::Provider::SetTracerProvider (provider);
341341}
342342
343- void cleanup_otel ()
343+ static void cleanup_otel ()
344344{
345345 std::shared_ptr<opentelemetry::trace::TracerProvider> provider (
346346 new opentelemetry::trace::NoopTracerProvider ());
0 commit comments