Skip to content

Commit

Permalink
Merge branch 'master' into alanwest/internalize-exporter-class
Browse files Browse the repository at this point in the history
  • Loading branch information
cijothomas authored Nov 13, 2020
2 parents 8d44159 + 6c2c19a commit e38e168
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/Console/TestGrpcNetClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ internal class TestGrpcNetClient
{
internal static object Run()
{
// Prerequisite for running this example.
// In a separate console window, start the example
// ASP.NET Core gRPC service by running the following command
// from the reporoot\examples\GrpcService\.
// (eg: C:\repos\opentelemetry-dotnet\examples\GrpcService\)
//
// dotnet run

// To run this example, run the following command from
// the reporoot\examples\Console\.
// (eg: C:\repos\opentelemetry-dotnet\examples\Console\)
//
// dotnet run grpc

using var openTelemetry = Sdk.CreateTracerProviderBuilder()
.AddGrpcClientInstrumentation()
.AddSource("grpc-net-client-test")
Expand All @@ -51,6 +65,8 @@ internal static object Run()
}
}

System.Console.WriteLine("Press Enter key to exit.");

return null;
}
}
Expand Down
1 change: 1 addition & 0 deletions examples/GrpcService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
webBuilder.UseUrls("https://localhost:44335");
});
}
}

0 comments on commit e38e168

Please sign in to comment.