Show / Hide Table of Contents

Class ContextTracerManager

Manages access to the current IManagedTracer.

Inheritance
System.Object
ContextTracerManager
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Diagnostics.Common
Assembly: Google.Cloud.Diagnostics.Common.dll
Syntax
public static class ContextTracerManager

Methods

GetCurrentTracer()

Gets the current IManagedTracer or a NullManagedTracer if none exists.

Declaration
public static IManagedTracer GetCurrentTracer()
Returns
Type Description
IManagedTracer

SetCurrentTracer(IManagedTracer)

Sets the current IManagedTracer. This is called for each new trace context.

Declaration
public static void SetCurrentTracer(IManagedTracer tracer)
Parameters
Type Name Description
IManagedTracer tracer
Back to top