Cloudflare Attributes

18 attributes in this category.17 stable·1 deprecated

18 attributes

Stable Attributes

cloudflare.d1.duration

integerScrub: ManualVisibility: PublicOTel: False

The duration of a Cloudflare D1 operation.

Example543
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

integerScrub: ManualVisibility: PublicOTel: False

The number of rows read in a Cloudflare D1 operation.

Example12
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

integerScrub: ManualVisibility: PublicOTel: False

The number of rows written in a Cloudflare D1 operation.

Example12
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

integerScrub: ManualVisibility: PublicOTel: False

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

Example2
Changelog
v0.13.0#435Added 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

integerScrub: ManualVisibility: PublicOTel: False

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

Example12
Changelog
v0.13.0#435Added 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

integerScrub: ManualVisibility: PublicOTel: False

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

Example1
Changelog
v0.13.0#435Added 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

stringScrub: ManualVisibility: PublicOTel: False

The name of the Cloudflare R2 bucket binding

ExampleMY_BUCKET
Changelog
v0.11.1#413Added 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

stringScrub: ManualVisibility: PublicOTel: False

The R2 API operation being performed

ExampleGetObject
Changelog
v0.11.1#413Added 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

stringScrub: ManualVisibility: PublicOTel: False

The delimiter used to group objects in an R2 list operation

Example/
Changelog
v0.11.1#413Added 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

stringScrub: ManualVisibility: PublicOTel: False

The object key used in the R2 operation

Examplemy-file.txt
Changelog
v0.11.1#413Added 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

integerScrub: ManualVisibility: PublicOTel: False

The part number in a multipart upload operation

Example1
Changelog
v0.11.1#413Added 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

stringScrub: ManualVisibility: PublicOTel: False

The prefix used to filter objects in an R2 list operation

Exampleimages/
Changelog
v0.11.1#413Added 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

integerScrub: ManualVisibility: PublicOTel: False

The current attempt number for a Cloudflare Workflow step

Example1
Changelog
v0.11.0#392Added 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

stringScrub: ManualVisibility: PublicOTel: False

The backoff strategy for Cloudflare Workflow step retries

Exampleexponential
Changelog
v0.11.0#392Added 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

stringScrub: ManualVisibility: PublicOTel: False

The delay between Cloudflare Workflow step retries

Example5 seconds
Changelog
v0.11.0#392Added 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

integerScrub: ManualVisibility: PublicOTel: False

The maximum number of retries for a Cloudflare Workflow step

Example3
Changelog
v0.11.0#392Added 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

stringScrub: ManualVisibility: PublicOTel: False

The timeout duration for a Cloudflare Workflow step

Example1 minute
Changelog
v0.11.0#392Added 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_typeDeprecated

stringScrub: ManualVisibility: PublicOTel: False

The type of query executed in a Cloudflare D1 operation

Examplerun

Use db.operation.name instead.

Status: backfill

Changelog
v0.19.0#531Added redis.command as an alias
v0.11.0#392Added 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",
    "redis.command"
  ],
  "changelog": [
    {
      "version": "0.19.0",
      "prs": [
        531
      ],
      "description": "Added redis.command as an alias"
    },
    {
      "version": "0.11.0",
      "prs": [
        392
      ],
      "description": "Added cloudflare.d1.query_type attribute"
    }
  ]
}