/// <summary> /// Initializes a new instance of <see cref="SessionUpdate"/>. /// </summary> public SessionUpdate( SentryId id, string?distinctId, DateTimeOffset startTimestamp, string release, string?environment, string?ipAddress, string?userAgent, int errorCount, bool isInitial, DateTimeOffset timestamp, int sequenceNumber, SessionEndStatus?endStatus) { Id = id; DistinctId = distinctId; StartTimestamp = startTimestamp; Release = release; Environment = environment; IpAddress = ipAddress; UserAgent = userAgent; ErrorCount = errorCount; IsInitial = isInitial; Timestamp = timestamp; SequenceNumber = sequenceNumber; EndStatus = endStatus; }
/// <summary> /// Initializes an instance of <see cref="UserFeedback"/>. /// </summary> public UserFeedback(SentryId eventId, string email, string comments, string?name = null) { EventId = eventId; Name = name; Email = email; Comments = comments; }
/// <summary> /// Captures a user feedback. /// </summary> /// <param name="client"></param> /// <param name="eventId">The event Id.</param> /// <param name="email">The user email.</param> /// <param name="comments">The user comments.</param> /// <param name="name">The optional username.</param> public static void CaptureUserFeedback(this ISentryClient client, SentryId eventId, string email, string comments, string?name = null) { if (client.IsEnabled) { client.CaptureUserFeedback(new UserFeedback(eventId, email, comments, name)); } }
/// <summary> /// Initializes a new instance of <see cref="Session"/>. /// </summary> public Session(string?distinctId, string release, string?environment) : this( SentryId.Create(), distinctId, DateTimeOffset.Now, release, environment, null, null) { }
internal Session( SentryId id, string?distinctId, DateTimeOffset startTimestamp, string release, string?environment, string?ipAddress, string?userAgent) { Id = id; DistinctId = distinctId; StartTimestamp = startTimestamp; Release = release; Environment = environment; IpAddress = ipAddress; UserAgent = userAgent; }
/// <summary> /// Initializes an instance of <see cref="SentryTraceHeader"/>. /// </summary> public SentryTraceHeader(SentryId traceId, SpanId spanSpanId, bool?isSampled) { TraceId = traceId; SpanId = spanSpanId; IsSampled = isSampled; }