Skip to content

trace-event

Generated reference page for spec/v1/schemas/resources/trace-event.json.

Metadata

  • Type: JSON Schema
  • Source: spec/v1/schemas/resources/trace-event.json
  • Raw: View Raw

Summary

Source

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-service.spec/v1/schemas/resources/trace-event.json",
  "type": "object",
  "additionalProperties": false,
  "required": ["traceId", "spanId", "name", "timestamp"],
  "properties": {
    "traceId": {
      "$ref": "../common/tracing.json#/$defs/traceId"
    },
    "spanId": {
      "$ref": "../common/tracing.json#/$defs/spanId"
    },
    "eventId": {
      "$ref": "../common/identity.json#/$defs/eventId"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "timestamp": {
      "$ref": "../common/identity.json#/$defs/timestamp"
    },
    "attributes": {
      "$ref": "../common/otel.json#/$defs/OTelAttributes"
    },
    "captureMode": {
      "$ref": "../common/otel.json#/$defs/ContentCaptureMode"
    },
    "payload": {},
    "payloadRef": {
      "type": "string",
      "format": "uri"
    },
    "redacted": {
      "type": "boolean"
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "name": {
            "const": "gen_ai.client.inference.operation.details"
          }
        },
        "required": ["name"]
      },
      "then": {
        "properties": {
          "payload": {
            "$ref": "../common/otel.json#/$defs/GenAIOperationDetails"
          }
        }
      }
    }
  ]
}

Generated from spec source.