MattD - Simple Place

Feb 17, 2019

Using Google Stackdriver Tracing with dotnet

Recently wanted to implement tracing in a non asp.net application and found zero good examples on how to implement. I looked at the source for the V2 implementation and got it working. Just for any future reference here is the code. The code pushes the spans every second. Using this nuget package Google.Cloud.Logging.V2 public class StackTracer { static readonly Random Random = new Random(); private Google.Api.Gax.ResourceNames.ProjectName projectName; private readonly TraceServiceClient traceClient; private readonly List<Span> spans = new List<Span>(); public StackTracer() { var projectId = ""; this.
Read More

Last 10 Posts


Projects


About

I am Matt Durham and welcome to my corner of the internet.

I am a software developer in Louisville, KY.


Contact

My current local time is .

mattdurham@ppog.org