- [JSON representation](https://docs.cloud.google.com/gemini-enterprise-cx/insights/reference/rest/Shared.Types/Span.md.txt#SCHEMA_REPRESENTATION)

A span is a unit of work or a single operation during the request processing.

| JSON representation |
|---|
| ``` { "name": string, "startTime": string, "endTime": string, "duration": string, "attributes": { object }, "childSpans": [ { object (`Span`) } ] } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The name of the span. |
| `startTime` | ``string (`Timestamp` format)`` Output only. The start time of the span. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `endTime` | ``string (`Timestamp` format)`` Output only. The end time of the span. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `duration` | ``string (`Duration` format)`` Output only. The duration of the span. A duration in seconds with up to nine fractional digits, ending with '`s`'. Example: `"3.5s"`. |
| `attributes` | ``object (`Struct` format)`` Output only. Key-value attributes associated with the span. |
| `childSpans[]` | ``object (`Span`)`` Output only. The child spans that are nested under this span. |