Cloudflare Attributes

18 attributes in this category. 17 stable · 1 deprecated

18 attributes

Stable Attributes

cloudflare.d1.duration

integer Scrub: Manual Visibility: Public OTel: False

The duration of a Cloudflare D1 operation.

Example 543
Changelog
v0.4.0 #228
v0.0.0
Raw JSON
{
  "key": "cloudflare.d1.duration",
  "brief": "The duration of a Cloudflare D1 operation.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 543,
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cloudflare.d1.rows_read

integer Scrub: Manual Visibility: Public OTel: False

The number of rows read in a Cloudflare D1 operation.

Example 12
Changelog
v0.4.0 #228
v0.0.0
Raw JSON
{
  "key": "cloudflare.d1.rows_read",
  "brief": "The number of rows read in a Cloudflare D1 operation.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 12,
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cloudflare.d1.rows_written

integer Scrub: Manual Visibility: Public OTel: False

The number of rows written in a Cloudflare D1 operation.

Example 12
Changelog
v0.4.0 #228
v0.0.0
Raw JSON
{
  "key": "cloudflare.d1.rows_written",
  "brief": "The number of rows written in a Cloudflare D1 operation.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 12,
  "changelog": [
    {
      "version": "0.4.0",
      "prs": [
        228
      ]
    },
    {
      "version": "0.0.0"
    }
  ]
}

cloudflare.durable_object.query.bindings

integer Scrub: Manual Visibility: Public OTel: False

The number of bound parameters passed to the SQL exec call.

Example 2
Changelog
v0.13.0 #435 Added cloudflare.durable_object.query.bindings attribute
Raw JSON
{
  "key": "cloudflare.durable_object.query.bindings",
  "brief": "The number of bound parameters passed to the SQL exec call.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 2,
  "changelog": [
    {
      "version": "0.13.0",
      "prs": [
        435
      ],
      "description": "Added cloudflare.durable_object.query.bindings attribute"
    }
  ]
}

cloudflare.durable_object.response.rows_read

integer Scrub: Manual Visibility: Public OTel: False

The number of rows read by a Cloudflare Durable Object SQL operation.

Example 12
Changelog
v0.13.0 #435 Added cloudflare.durable_object.response.rows_read attribute
Raw JSON
{
  "key": "cloudflare.durable_object.response.rows_read",
  "brief": "The number of rows read by a Cloudflare Durable Object SQL operation.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 12,
  "changelog": [
    {
      "version": "0.13.0",
      "prs": [
        435
      ],
      "description": "Added cloudflare.durable_object.response.rows_read attribute"
    }
  ]
}

cloudflare.durable_object.response.rows_written

integer Scrub: Manual Visibility: Public OTel: False

The number of rows written by a Cloudflare Durable Object SQL operation.

Example 1
Changelog
v0.13.0 #435 Added cloudflare.durable_object.response.rows_written attribute
Raw JSON
{
  "key": "cloudflare.durable_object.response.rows_written",
  "brief": "The number of rows written by a Cloudflare Durable Object SQL operation.",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 1,
  "changelog": [
    {
      "version": "0.13.0",
      "prs": [
        435
      ],
      "description": "Added cloudflare.durable_object.response.rows_written attribute"
    }
  ]
}

cloudflare.r2.bucket

string Scrub: Manual Visibility: Public OTel: False

The name of the Cloudflare R2 bucket binding

Example MY_BUCKET
Changelog
v0.11.1 #413 Added cloudflare.r2.bucket attribute
Raw JSON
{
  "key": "cloudflare.r2.bucket",
  "brief": "The name of the Cloudflare R2 bucket binding",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "MY_BUCKET",
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.bucket attribute"
    }
  ]
}

cloudflare.r2.operation

string Scrub: Manual Visibility: Public OTel: False

The R2 API operation being performed

Example GetObject
Changelog
v0.11.1 #413 Added cloudflare.r2.operation attribute
Raw JSON
{
  "key": "cloudflare.r2.operation",
  "brief": "The R2 API operation being performed",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "GetObject",
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.operation attribute"
    }
  ]
}

cloudflare.r2.request.delimiter

string Scrub: Manual Visibility: Public OTel: False

The delimiter used to group objects in an R2 list operation

Example /
Changelog
v0.11.1 #413 Added cloudflare.r2.request.delimiter attribute
Raw JSON
{
  "key": "cloudflare.r2.request.delimiter",
  "brief": "The delimiter used to group objects in an R2 list operation",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "/",
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.request.delimiter attribute"
    }
  ]
}

cloudflare.r2.request.key

string Scrub: Manual Visibility: Public OTel: False

The object key used in the R2 operation

Example my-file.txt
Changelog
v0.11.1 #413 Added cloudflare.r2.request.key attribute
Raw JSON
{
  "key": "cloudflare.r2.request.key",
  "brief": "The object key used in the R2 operation",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "my-file.txt",
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.request.key attribute"
    }
  ]
}

cloudflare.r2.request.part_number

integer Scrub: Manual Visibility: Public OTel: False

The part number in a multipart upload operation

Example 1
Changelog
v0.11.1 #413 Added cloudflare.r2.request.part_number attribute
Raw JSON
{
  "key": "cloudflare.r2.request.part_number",
  "brief": "The part number in a multipart upload operation",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 1,
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.request.part_number attribute"
    }
  ]
}

cloudflare.r2.request.prefix

string Scrub: Manual Visibility: Public OTel: False

The prefix used to filter objects in an R2 list operation

Example images/
Changelog
v0.11.1 #413 Added cloudflare.r2.request.prefix attribute
Raw JSON
{
  "key": "cloudflare.r2.request.prefix",
  "brief": "The prefix used to filter objects in an R2 list operation",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "images/",
  "changelog": [
    {
      "version": "0.11.1",
      "prs": [
        413
      ],
      "description": "Added cloudflare.r2.request.prefix attribute"
    }
  ]
}

cloudflare.workflow.attempt

integer Scrub: Manual Visibility: Public OTel: False

The current attempt number for a Cloudflare Workflow step

Example 1
Changelog
v0.11.0 #392 Added cloudflare.workflow.attempt attribute
Raw JSON
{
  "key": "cloudflare.workflow.attempt",
  "brief": "The current attempt number for a Cloudflare Workflow step",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 1,
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.workflow.attempt attribute"
    }
  ]
}

cloudflare.workflow.retries.backoff

string Scrub: Manual Visibility: Public OTel: False

The backoff strategy for Cloudflare Workflow step retries

Example exponential
Changelog
v0.11.0 #392 Added cloudflare.workflow.retries.backoff attribute
Raw JSON
{
  "key": "cloudflare.workflow.retries.backoff",
  "brief": "The backoff strategy for Cloudflare Workflow step retries",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "exponential",
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.workflow.retries.backoff attribute"
    }
  ]
}

cloudflare.workflow.retries.delay

string Scrub: Manual Visibility: Public OTel: False

The delay between Cloudflare Workflow step retries

Example 5 seconds
Changelog
v0.11.0 #392 Added cloudflare.workflow.retries.delay attribute
Raw JSON
{
  "key": "cloudflare.workflow.retries.delay",
  "brief": "The delay between Cloudflare Workflow step retries",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "5 seconds",
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.workflow.retries.delay attribute"
    }
  ]
}

cloudflare.workflow.retries.limit

integer Scrub: Manual Visibility: Public OTel: False

The maximum number of retries for a Cloudflare Workflow step

Example 3
Changelog
v0.11.0 #392 Added cloudflare.workflow.retries.limit attribute
Raw JSON
{
  "key": "cloudflare.workflow.retries.limit",
  "brief": "The maximum number of retries for a Cloudflare Workflow step",
  "type": "integer",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": 3,
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.workflow.retries.limit attribute"
    }
  ]
}

cloudflare.workflow.timeout

string Scrub: Manual Visibility: Public OTel: False

The timeout duration for a Cloudflare Workflow step

Example 1 minute
Changelog
v0.11.0 #392 Added cloudflare.workflow.timeout attribute
Raw JSON
{
  "key": "cloudflare.workflow.timeout",
  "brief": "The timeout duration for a Cloudflare Workflow step",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "1 minute",
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.workflow.timeout attribute"
    }
  ]
}

Deprecated Attributes

These attributes are deprecated and should not be used in new code. See each attribute for migration guidance.

cloudflare.d1.query_type Deprecated

string Scrub: Manual Visibility: Public OTel: False

The type of query executed in a Cloudflare D1 operation

Example run

Use db.operation.name instead.

Status: backfill

Changelog
v0.11.0 #392 Added cloudflare.d1.query_type attribute
Raw JSON
{
  "key": "cloudflare.d1.query_type",
  "brief": "The type of query executed in a Cloudflare D1 operation",
  "type": "string",
  "apply_scrubbing": {
    "key": "manual"
  },
  "is_in_otel": false,
  "visibility": "public",
  "example": "run",
  "deprecation": {
    "replacement": "db.operation.name",
    "_status": "backfill"
  },
  "alias": [
    "db.operation.name",
    "db.operation"
  ],
  "changelog": [
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.d1.query_type attribute"
    }
  ]
}