# Record deployments and other operational events Operational events help you compare a problem with changes around the same time. Emit them through your application's or deployment pipeline's OpenTelemetry logs exporter so they share service identity and optional trace context with other telemetry. Corridora recognizes a non-empty `event.name` attribute on an OTLP log record as an event. It also accepts the native OTLP log record event-name field (`eventName` in OTLP JSON). When both are present, a non-empty `event.name` attribute takes precedence; the native field is used when that attribute is empty or absent. Use `deployment`, `feature_flag`, or `incident` for common change categories. Other names remain queryable in Events. ## Choose the event fields | Field | Where to put it | Purpose | | --- | --- | --- | | `event.name`, or native `eventName` | Log record attributes, or the OTLP log record event-name field | Stable event category, such as `deployment`; a non-empty attribute takes precedence | | Human-readable description | Log body | What changed | | `service.name` | Resource attributes | Service affected by the change | | `service.version` | Resource attributes | Release or build involved | | `deployment.environment.name` | Resource attributes | Environment affected | | Deployment ID or flag key | Log record attributes | Identifier for the change | | Event time | `timeUnixNano` | When the change happened | | Trace and span IDs | Log record trace/span fields | Optional relationship to the operation that emitted the event | Keep event names stable so filtering remains useful. Put unique deployment IDs in a separate attribute, not in the event name. Include trace context only when there is an actual relationship; a nearby trace in time is not sufficient. ## Send the documentation example Complete the [quick start](../start/quick-start.md), retaining its `telemetry_dir`, `CORRIDORA_OTLP_ENDPOINT`, and `CORRIDORA_INGEST_KEY` variables. The generator has already written `events.json` with a current timestamp and the same trace context as the sample operation. ```sh curl --silent --show-error --fail-with-body \ --connect-timeout 10 --max-time 30 \ --write-out '\nHTTP %{http_code}\n' \ -H "X-CORRIDORA-KEY: ${CORRIDORA_INGEST_KEY}" \ -H 'Content-Type: application/json' \ --data-binary "@${telemetry_dir}/events.json" \ "${CORRIDORA_OTLP_ENDPOINT%/}/v1/logs" ``` Expect HTTP `200`, which may have an empty response body. If the sample is no longer recent, rerun the generator and send its trace and event payloads again. Freshly generated IDs must refer to the freshly sent trace. The example uses resource service `corridora-quickstart`, event name `deployment`, and body `Documentation example deployment`. It represents a synthetic documentation event, not a real application deployment. ## Verify and investigate 1. Select the organization that owns the ingest key. 2. Open **Telemetry → Events** and choose a time range that includes the sample. 3. Clear an unrelated project filter and select service `corridora-quickstart` if needed. 4. Find the deployment event and inspect its description, timestamp, and available related telemetry. 5. Compare the change time with errors or latency in the same service scope. A change occurring near an incident is a lead to investigate. Establish the relationship using affected versions, request behavior, and other evidence before assigning a cause. ## Instrument a deployment pipeline When a deployment or flag change completes, emit a log record through your existing OpenTelemetry pipeline: 1. Set the resource service and environment to the application affected, rather than accidentally using only the CI runner's identity. 2. Record the actual change time and release version. 3. Set `event.name` or the SDK's native log event-name field, and add a durable change identifier. 4. Export and flush the log pipeline before a short-lived job exits. 5. Verify one test change in Events before relying on it during an incident. For a rollback, preserve enough detail to distinguish the rollback action and target version. Avoid including deployment secrets or private configuration in event bodies or attributes. ## Compatibility behavior Older event records can appear beside OTLP-backed events. Legacy `deploy` and `flag` categories are normalized to `deployment` and `feature_flag` for queries. A visible event therefore does not by itself prove that every producer has migrated to OTLP logs. Compatibility markers can be sent through `POST /v1/event`; the current Events page has no create-marker control. Use application-side OTLP emission for repeatable deployment automation. See the [ingest reference](../reference/ingest.md) for the supported intake paths. Return to the [documentation index](../README.md).