-
-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy pathITraceContext.cs
More file actions
54 lines (45 loc) · 1.31 KB
/
ITraceContext.cs
File metadata and controls
54 lines (45 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
namespace Sentry.Protocol;
/// <summary>
/// Trace metadata stored in 'contexts.trace' on an event or transaction.
/// </summary>
public interface ITraceContext
{
/// <summary>
/// Span ID.
/// </summary>
public SpanId SpanId { get; }
/// <summary>
/// Parent ID.
/// </summary>
public SpanId? ParentSpanId { get; }
/// <summary>
/// Trace ID.
/// </summary>
public SentryId TraceId { get; }
/// <summary>
/// Operation.
/// </summary>
public string Operation { get; }
/// <summary>
/// Specifies the origin of the trace. If no origin is set then the trace origin is assumed to be "manual".
/// </summary>
/// <remarks>
/// See https://develop.sentry.dev/sdk/performance/trace-origin/ for more information.
/// </remarks>
public string? Origin { get; }
/// <summary>
/// Description.
/// </summary>
public string? Description { get; }
/// <summary>
/// Status.
/// </summary>
public SpanStatus? Status { get; }
// Note: this may need to be mutated internally,
// but the user should never be able to change it
// on their own.
/// <summary>
/// Whether the span or transaction is sampled in (i.e. eligible for sending to Sentry).
/// </summary>
public bool? IsSampled { get; }
}