@@ -27,14 +27,18 @@ public class Program
2727 /// Main method - invoke this using command line.
2828 /// For example:
2929 ///
30- /// dotnet run --project Examples.Console.csproj console
31- /// dotnet run --project Examples.Console.csproj inmemory
32- /// dotnet run --project Examples.Console.csproj zipkin -u http://localhost:9411/api/v2/spans
33- /// dotnet run --project Examples.Console.csproj jaeger -h localhost -p 6831
34- /// dotnet run --project Examples.Console.csproj prometheus -p 9464
35- /// dotnet run --project Examples.Console.csproj otlp -e "http://localhost:4317" -p "grpc"
36- /// dotnet run --project Examples.Console.csproj zpages
37- /// dotnet run --project Examples.Console.csproj metrics --help
30+ /// dotnet run --project Examples.Console.csproj -- console
31+ /// dotnet run --project Examples.Console.csproj -- inmemory
32+ /// dotnet run --project Examples.Console.csproj -- zipkin -u http://localhost:9411/api/v2/spans
33+ /// dotnet run --project Examples.Console.csproj -- jaeger -h localhost -p 6831
34+ /// dotnet run --project Examples.Console.csproj -- prometheus -p 9464
35+ /// dotnet run --project Examples.Console.csproj -- otlp -e "http://localhost:4317" -p "grpc"
36+ /// dotnet run --project Examples.Console.csproj -- zpages
37+ /// dotnet run --project Examples.Console.csproj -- metrics --help
38+ ///
39+ /// To see all available examples in the project run:
40+ ///
41+ /// dotnet run --project Examples.Console.csproj -- --help
3842 ///
3943 /// The above must be run from the project root folder
4044 /// (eg: C:\repos\opentelemetry-dotnet\examples\Console\).
@@ -153,7 +157,7 @@ internal class OpenTracingShimOptions
153157 [ Verb ( "otlp" , HelpText = "Specify the options required to test OpenTelemetry Protocol (OTLP)" ) ]
154158 internal class OtlpOptions
155159 {
156- [ Option ( 'e' , "endpoint" , HelpText = "Target to which the exporter is going to send traces or metrics" , Default = "http://localhost:4317" ) ]
160+ [ Option ( 'e' , "endpoint" , HelpText = "Target to which the exporter is going to send traces or metrics (default value depends on protocol). " , Default = null ) ]
157161 public string Endpoint { get ; set ; }
158162
159163 [ Option ( 'p' , "protocol" , HelpText = "Transport protocol used by exporter. Supported values: grpc and http/protobuf." , Default = "grpc" ) ]
0 commit comments