Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TraceAttributes.php

TraceAttributes::CLOUD_RESOURCE_ID

The Fully Qualified Azure Resource ID the log is emitted for.

On some cloud providers, it may not be possible to determine the full ID at startup, so it may be necessary to set `cloud.resource_id` as a span attribute instead.The exact value to use for `cloud.resource_id` depends on the cloud provider. The following well-known definitions MUST be used if you set this attribute and they apply:<ul> <li><strong>AWS Lambda:</strong> The function ARN. Take care not to use the &quot;invoked ARN&quot; directly but replace any alias suffix with the resolved function version, as the same runtime instance may be invocable with multiple different aliases.</li> <li><strong>GCP:</strong> The URI of the resource</li> <li><strong>Azure:</strong> The Fully Qualified Resource ID of the invoked function, <em>not</em> the function app, having the form `/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>`. This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share a TracerProvider.</li> </ul>

@example arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function @example //run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID @example /subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>

File

vendor/open-telemetry/sem-conv/TraceAttributes.php, line 693

Class

TraceAttributes

Namespace

OpenTelemetry\SemConv

Code

public const CLOUD_RESOURCE_ID = 'cloud.resource_id';

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal