public static void Verbose <T>( this ILogger <T> logger, Exception exception, string message, params object[] args ) => logger.LogTrace(exception, message, args);
public void Dispose() { if (disposed) { return; } var document = context.Document?.ToString().Replace("\r", "").Replace("\n", Environment.NewLine); var variables = context.Variables?.ToDictionary(x => x.Name.Value, x => x.Value.ToString()); if (!string.IsNullOrEmpty(document)) { activity?.AddTag("graphql.document", document); } if (variables != null) { foreach (var(key, value) in variables) { if (key is not(not "password" or "compose" or "pkey" or "privateKey")) { continue; } activity?.AddTag("graphql.variables." + key, value); } } logger.LogTrace("GraphQL Request finished for {@Document} with variables {@Variables}", document, variables); activity?.Stop(); activity?.Dispose(); disposed = true; }
public static void Verbose <T>( this ILogger <T> logger, EventId eventId, string message, params object[] args ) => logger.LogTrace(eventId, message, args);