class_docstr: Stores Otel Instruments.
class_docstr_tok: ["Stores","Otel","Instruments","."]
docstr: Create a new Observable Gauge with the provided name and the default value.
  
  :param name: The name of the gauge to fetch or create.
  :param attributes:  Gauge attributes, used to generate a unique key to store the gauge.
docstr_tok: ["Create","a","new","Observable","Gauge","with","the","provided","name","and","the","default","value",".",":","param","name",":","The","name","of","the","gauge","to","fetch","or","create",".",":","param","attributes",":","Gauge","attributes",",","used","to","generate","a","unique","key","to","store","the","gauge","."]
code: def _create_gauge(self, name: str, attributes: Attributes = None):
      """
      Create a new Observable Gauge with the provided name and the default value.
  
      :param name: The name of the gauge to fetch or create.
      :param attributes:  Gauge attributes, used to generate a unique key to store the gauge.
      """
      otel_safe_name = _get_otel_safe_name(name)
      key = _generate_key_name(name, attributes)
  
      gauge = self.meter.create_observable_gauge(
          name=otel_safe_name,
          callbacks=[
              partial(
                  self.read_gauge, _generate_key_name(name, attributes)
              )
          ],
      )
      self.map[key] = Observation(DEFAULT_GAUGE_VALUE, attributes)
  
      return gauge
  
imports: from __future__ import annotations
  import datetime
  import logging
  import random
  import warnings
  from functools import partial
  from typing import TYPE_CHECKING, Callable, Iterable, Union
  from opentelemetry import metrics
  from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
  from opentelemetry.metrics import Observation
  from opentelemetry.sdk.metrics import MeterProvider
  from opentelemetry.sdk.metrics._internal.export import ConsoleMetricExporter, PeriodicExportingMetricReader
  from opentelemetry.sdk.resources import SERVICE_NAME, Resource
  from airflow.configuration import conf
  from airflow.metrics.protocols import Timer
  from airflow.metrics.validators import OTEL_NAME_MAX_LENGTH, AllowListValidator, ListValidator, get_validator, stat_name_otel_handler
label_desc: Use image node_id 7 for calling the MetricsMap obj's underlying member method code with example usage: obj._create_gauge(name, attributes) and returns: gauge