public void ServiceClientFailed( System.Fabric.StatelessServiceContext context, System.Uri requestUri, FG.ServiceFabric.Services.Remoting.FabricTransport.CustomServiceRequestHeader customServiceRequestHeader, System.Exception ex) { if (this.IsEnabled()) { ServiceClientFailed( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, requestUri.ToString(), customServiceRequestHeader?.GetHeader("userId"), customServiceRequestHeader?.GetHeader("correlationId"), ex.Message, ex.Source, ex.GetType().FullName, ex.AsJson()); } }
public void RecieveWebApiRequestFailed( System.Fabric.StatelessServiceContext context, System.Uri requestUri, string payload, string correlationId, string userId, System.Exception exception) { if (this.IsEnabled()) { RecieveWebApiRequestFailed( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, requestUri.ToString(), payload, correlationId, userId, exception.Message, exception.Source, exception.GetType().FullName, exception.AsJson()); } }
public void StopCallService( System.Fabric.StatelessServiceContext context, System.Uri requestUri, string serviceMethodName, Microsoft.ServiceFabric.Services.Remoting.ServiceRemotingMessageHeaders serviceMessageHeaders, FG.ServiceFabric.Services.Remoting.FabricTransport.CustomServiceRequestHeader customServiceRequestHeader) { if (this.IsEnabled()) { StopCallService( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, requestUri.ToString(), serviceMethodName, (serviceMessageHeaders?.InterfaceId ?? 0), (serviceMessageHeaders?.MethodId ?? 0), customServiceRequestHeader?.GetHeader("userId"), customServiceRequestHeader?.GetHeader("correlationId")); } }
public void CallActorFailed( System.Fabric.StatelessServiceContext context, System.Uri requestUri, string actorMethodName, FG.ServiceFabric.Actors.Remoting.Runtime.ActorMessageHeaders actorMessageHeaders, FG.ServiceFabric.Services.Remoting.FabricTransport.CustomServiceRequestHeader customServiceRequestHeader, System.Exception ex) { if (this.IsEnabled()) { CallActorFailed( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, requestUri.ToString(), actorMethodName, (actorMessageHeaders?.InterfaceId ?? 0), (actorMessageHeaders?.MethodId ?? 0), actorMessageHeaders?.ActorId.ToString(), customServiceRequestHeader?.GetHeader("userId"), customServiceRequestHeader?.GetHeader("correlationId"), ex.Message, ex.Source, ex.GetType().FullName, ex.AsJson()); } }
public WebApiLogger( System.Fabric.StatelessServiceContext context) { _context = context; _telemetryClient = new Microsoft.ApplicationInsights.TelemetryClient(); _telemetryClient.Context.User.Id = Environment.UserName; _telemetryClient.Context.Session.Id = Guid.NewGuid().ToString(); _telemetryClient.Context.Device.OperatingSystem = Environment.OSVersion.ToString(); }
public void StartGetAll( System.Fabric.StatelessServiceContext context) { if (this.IsEnabled()) { StartGetAll( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName); } }
public void StopRequestContext( System.Fabric.StatelessServiceContext context, System.Collections.Generic.IEnumerable <FG.ServiceFabric.Services.Remoting.FabricTransport.ServiceRequestHeader> headers) { if (this.IsEnabled()) { StopRequestContext( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, headers.ToString()); } }
public void EnumeratingPartitions( System.Fabric.StatelessServiceContext context, System.Uri serviceUri) { if (this.IsEnabled()) { EnumeratingPartitions( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, serviceUri.ToString()); } }
public void ActivatingController( System.Fabric.StatelessServiceContext context, string correlationId, string userId) { if (this.IsEnabled()) { ActivatingController( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, correlationId, userId); } }
public void EnumeratedAndCachedPartitions( System.Fabric.StatelessServiceContext context, System.Uri serviceUri, System.Collections.Generic.IEnumerable <System.Fabric.ServicePartitionInformation> partitions) { if (this.IsEnabled()) { EnumeratedAndCachedPartitions( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, serviceUri.ToString(), partitions.ToString()); } }
public void FailedToEnumeratePartitions( System.Fabric.StatelessServiceContext context, System.Uri serviceUri, System.Exception ex) { if (this.IsEnabled()) { FailedToEnumeratePartitions( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, serviceUri.ToString(), ex.Message, ex.Source, ex.GetType().FullName, ex.AsJson()); } }
public void FailedRequestContext( System.Fabric.StatelessServiceContext context, System.Collections.Generic.IEnumerable <FG.ServiceFabric.Services.Remoting.FabricTransport.ServiceRequestHeader> headers, System.Exception exception) { if (this.IsEnabled()) { FailedRequestContext( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, headers.ToString(), exception.Message, exception.Source, exception.GetType().FullName, exception.AsJson()); } }
public void StopRecieveWebApiRequest( System.Fabric.StatelessServiceContext context, System.Uri requestUri, string payload, string correlationId, string userId) { if (this.IsEnabled()) { StopRecieveWebApiRequest( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, requestUri.ToString(), payload, correlationId, userId); } }
public void FailedToReadCustomServiceMessageHeader( System.Fabric.StatelessServiceContext context, Microsoft.ServiceFabric.Services.Remoting.ServiceRemotingMessageHeaders serviceRemotingMessageHeaders, System.Exception ex) { if (this.IsEnabled()) { FailedToReadCustomServiceMessageHeader( context.ServiceName.ToString(), context.ServiceTypeName, context.InstanceId, context.PartitionId, context.CodePackageActivationContext.ApplicationName, context.CodePackageActivationContext.ApplicationTypeName, context.NodeContext.NodeName, (serviceRemotingMessageHeaders?.InterfaceId ?? 0), (serviceRemotingMessageHeaders?.MethodId ?? 0), ex.Message, ex.Source, ex.GetType().FullName, ex.AsJson()); } }