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

Breadcrumb

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

function MetricConfigResponse::setFingerprint

Optional. The fingerprint associated with this MetricConfigResponse. Each change in configs yields a different fingerprint. The resource SHOULD copy this value to MetricConfigRequest.last_known_fingerprint for the next configuration request. If there are no changes between fingerprint and MetricConfigRequest.last_known_fingerprint, then all other fields besides fingerprint in the response are optional, or the same as the last update if present. The exact mechanics of generating the fingerprint is up to the implementation. However, a fingerprint must be deterministically determined by the configurations -- the same configuration will generate the same fingerprint on any instance of an implementation. Hence using a timestamp is unacceptable, but a deterministic hash is fine.

Generated from protobuf field <code>bytes fingerprint = 1;</code>

Parameters

string $var:

Return value

$this

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/Experimental/MetricConfigResponse.php, line 128

Class

MetricConfigResponse
Generated from protobuf message <code>opentelemetry.proto.metrics.experimental.MetricConfigResponse</code>

Namespace

Opentelemetry\Proto\Metrics\Experimental

Code

public function setFingerprint($var) {
    GPBUtil::checkString($var, False);
    $this->fingerprint = $var;
    return $this;
}

API Navigation

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