---
title: Rules Trace
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Rules Trace

#### Rules TraceTraces

##### [Request Trace](https://developers.cloudflare.com/api/go/resources/request_tracers/subresources/traces/methods/create)

client.RequestTracers.Traces.New(ctx, params) (\*[TraceNewResponse](<https://developers.cloudflare.com/api/go/resources/request_tracers#(resource)%20request_tracers.traces%20%3E%20(model)%20TraceNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/request-tracer/trace

##### ModelsExpand Collapse

type Trace \[] [TraceItem](<https://developers.cloudflare.com/api/go/resources/request_tracers#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)>)

[Link to this property](<#(resource)%20request_tracers.traces%20%3E%20(model)%20trace%20%3E%20(schema)>)

<details>

<summary>

type TraceItem struct{…}

List of steps acting on request/response

</summary>

Action stringOptional

If step type is rule, then action performed by this rule

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20action">Link to this property</a>

ActionParameters unknownOptional

If step type is rule, then action parameters of this rule as JSON

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20action_parameters">Link to this property</a>

Description stringOptional

If step type is rule or ruleset, the description of this entity

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20description">Link to this property</a>

Expression stringOptional

If step type is rule, then expression used to match for this rule

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20expression">Link to this property</a>

Kind stringOptional

If step type is ruleset, then kind of this ruleset

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20kind">Link to this property</a>

Matched boolOptional

Whether tracing step affected tracing request/response

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20matched">Link to this property</a>

Name stringOptional

If step type is ruleset, then name of this ruleset

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

StepName stringOptional

Tracing step identifying name

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20step_name">Link to this property</a>

Trace <a href="https://developers.cloudflare.com/api/go/resources/request_tracers#(resource)%20request_tracers.traces%20%3E%20(model)%20trace%20%3E%20(schema)">Trace</a>Optional

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20trace">Link to this property</a>

Type stringOptional

Tracing step type

<a href="#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20request_tracers.traces%20%3E%20(model)%20trace_item%20%3E%20(schema)>)