1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15+ using System ;
1516using System . Collections . Generic ;
1617using Newtonsoft . Json ;
1718using Seq . Api . Model . Shared ;
@@ -30,6 +31,12 @@ public class EventEntity : Entity
3031 /// </summary>
3132 public string Timestamp { get ; set ; }
3233
34+ /// <summary>
35+ /// If the event represents a span, the ISO-8601 timestamp at which the span started.
36+ /// </summary>
37+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
38+ public string Start { get ; set ; }
39+
3340 /// <summary>
3441 /// Properties associated with the event.
3542 /// </summary>
@@ -75,11 +82,31 @@ public class EventEntity : Entity
7582 [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
7683 public string SpanId { get ; set ; }
7784
85+ /// <summary>
86+ /// The id of the event's parent span, if any.
87+ /// </summary>
88+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
89+ public string ParentId { get ; set ; }
90+
7891 /// <summary>
7992 /// A collection of properties describing the origin of the event, if any. These correspond to resource
80- /// attributes in the OpenTelemetry spec .
93+ /// attributes in the OpenTelemetry protocol .
8194 /// </summary>
8295 [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
8396 public List < EventPropertyPart > Resource { get ; set ; }
97+
98+ /// <summary>
99+ /// A collection of properties describing the instrumentation that produced an event, if any. These correspond
100+ /// to instrumentation scope attributes in the OpenTelemetry protocol, and may include the OpenTelemetry scope name
101+ /// in a well-known <c>name</c> property.
102+ /// </summary>
103+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
104+ public List < EventPropertyPart > Scope { get ; set ; }
105+
106+ /// <summary>
107+ /// If the event is a span, the elapsed time between the start and end of the span.
108+ /// </summary>
109+ [ JsonProperty ( NullValueHandling = NullValueHandling . Ignore ) ]
110+ public TimeSpan ? Elapsed { get ; set ; }
84111 }
85112}
0 commit comments