Skip to content

Commit

Permalink
[CI] Spurious test failures (#3233)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff authored Jan 8, 2025
1 parent e5a1a15 commit d19eb32
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/batch/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void StartAndEndSpans()

} // namespace

int main()
int main(int /* argc */, char ** /* argv */)
{
// Removing this line will leave the default noop TracerProvider in place.
InitTracer();
Expand All @@ -107,4 +107,5 @@ int main()
// which in turn invokes the processor Shutdown(), which finally drains the queue of ALL
// its spans.
CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/http/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ int main(int argc, char *argv[])
std::string(default_path);
sendRequest(url);
CleanupTracer();
return 0;
}
3 changes: 2 additions & 1 deletion examples/logs_simple/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,12 @@ void CleanupLogger()

} // namespace

int main()
int main(int /* argc */, char ** /* argv */)
{
InitTracer();
InitLogger();
foo_library();
CleanupTracer();
CleanupLogger();
return 0;
}
1 change: 1 addition & 0 deletions examples/metrics_simple/metrics_ostream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,5 @@ int main(int argc, char **argv)
}

CleanupMetrics();
return 0;
}
3 changes: 2 additions & 1 deletion examples/multi_processor/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void dumpSpans(std::vector<std::unique_ptr<trace_sdk::SpanData>> &spans)
}
} // namespace

int main()
int main(int /* argc */, char ** /* argv */)
{
// Removing this line will leave the default noop TracerProvider in place.
std::shared_ptr<InMemorySpanData> data = InitTracer();
Expand All @@ -108,4 +108,5 @@ int main()
dumpSpans(memory_spans);

CleanupTracer();
return 0;
}
3 changes: 2 additions & 1 deletion examples/multithreaded/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void run_threads()
std::for_each(threads.begin(), threads.end(), [](std::thread &th) { th.join(); });
}

int main()
int main(int /* argc */, char ** /* argv */)
{
InitTracer();

Expand All @@ -82,4 +82,5 @@ int main()
}

CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/file_log_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ int main(int argc, char *argv[])
foo_library();
CleanupTracer();
CleanupLogger();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/file_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,5 @@ int main(int argc, char *argv[])
foo_library();

CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/file_metric_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,5 @@ int main(int argc, char *argv[])
}

CleanupMetrics();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/grpc_log_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,5 @@ int main(int argc, char *argv[])
foo_library();
CleanupTracer();
CleanupLogger();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/grpc_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ int main(int argc, char *argv[])
foo_library();

CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/grpc_metric_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,5 @@ int main(int argc, char *argv[])
}

CleanupMetrics();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/http_log_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,5 @@ int main(int argc, char *argv[])
foo_library();
CleanupTracer();
CleanupLogger();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/http_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,5 @@ int main(int argc, char *argv[])
foo_library();

CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/otlp/http_metric_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,5 @@ int main(int argc, char *argv[])
}

CleanupMetrics();
return 0;
}
1 change: 1 addition & 0 deletions examples/prometheus/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,5 @@ int main(int argc, char **argv)
}

CleanupMetrics();
return 0;
}
3 changes: 2 additions & 1 deletion examples/simple/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ void CleanupTracer()
}
} // namespace

int main()
int main(int /* argc */, char ** /* argv */)
{
// Removing this line will leave the default noop TracerProvider in place.
InitTracer();

foo_library();

CleanupTracer();
return 0;
}
1 change: 1 addition & 0 deletions examples/zipkin/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ int main(int argc, char *argv[])
foo_library();

CleanupTracer();
return 0;
}

0 comments on commit d19eb32

Please sign in to comment.