census-instrumentation / opencensus-csharp

Distributed tracing and stats collecting framework
https://opencensus.io
Apache License 2.0
139 stars 32 forks source link

Added command line support for samples project for convenient testing #54

Closed simonz130 closed 6 years ago

simonz130 commented 6 years ago

Added command line support for the Samples project. This will make it easier to script testing multiple exporters as well as prevent commenting and un-commenting different test procedures for different exporters. Finally, it will making test code cleaner for showing samples embedded in documentation website.

In order to test the exporter, you can either execute it from the command line:

samples.dll prometheus

or to debug using Visual Studio: Debug => Sample Properties => Debug. Now create a profile for your testing execution and fill application arguments if needed. Now choose your profile in running configuration of Visual Studio. Running settings are local to the machine and are ignored in PRs.