1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
/*
* DO NOT EDIT, this is an Auto-generated file from:
* buildscripts/semantic-convention/templates/registry/semantic_metrics-h.j2
*/
#pragma once
#include "opentelemetry/common/macros.h"
#include "opentelemetry/metrics/meter.h"
#include "opentelemetry/version.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace semconv
{
namespace cpython
{
/**
The total number of objects collected inside a generation since interpreter start.
<p>
This metric reports data from <a
href="https://docs.python.org/3/library/gc.html#gc.get_stats">@code gc.stats() @endcode</a>. <p>
counter
*/
static constexpr const char *kMetricCpythonGcCollectedObjects = "cpython.gc.collected_objects";
static constexpr const char *descrMetricCpythonGcCollectedObjects =
"The total number of objects collected inside a generation since interpreter start.";
static constexpr const char *unitMetricCpythonGcCollectedObjects = "{object}";
static inline nostd::unique_ptr<metrics::Counter<uint64_t>>
CreateSyncInt64MetricCpythonGcCollectedObjects(metrics::Meter *meter)
{
return meter->CreateUInt64Counter(kMetricCpythonGcCollectedObjects,
descrMetricCpythonGcCollectedObjects,
unitMetricCpythonGcCollectedObjects);
}
static inline nostd::unique_ptr<metrics::Counter<double>>
CreateSyncDoubleMetricCpythonGcCollectedObjects(metrics::Meter *meter)
{
return meter->CreateDoubleCounter(kMetricCpythonGcCollectedObjects,
descrMetricCpythonGcCollectedObjects,
unitMetricCpythonGcCollectedObjects);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncInt64MetricCpythonGcCollectedObjects(metrics::Meter *meter)
{
return meter->CreateInt64ObservableCounter(kMetricCpythonGcCollectedObjects,
descrMetricCpythonGcCollectedObjects,
unitMetricCpythonGcCollectedObjects);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncDoubleMetricCpythonGcCollectedObjects(metrics::Meter *meter)
{
return meter->CreateDoubleObservableCounter(kMetricCpythonGcCollectedObjects,
descrMetricCpythonGcCollectedObjects,
unitMetricCpythonGcCollectedObjects);
}
/**
The number of times a generation was collected since interpreter start.
<p>
This metric reports data from <a
href="https://docs.python.org/3/library/gc.html#gc.get_stats">@code gc.stats() @endcode</a>. <p>
counter
*/
static constexpr const char *kMetricCpythonGcCollections = "cpython.gc.collections";
static constexpr const char *descrMetricCpythonGcCollections =
"The number of times a generation was collected since interpreter start.";
static constexpr const char *unitMetricCpythonGcCollections = "{collection}";
static inline nostd::unique_ptr<metrics::Counter<uint64_t>>
CreateSyncInt64MetricCpythonGcCollections(metrics::Meter *meter)
{
return meter->CreateUInt64Counter(kMetricCpythonGcCollections, descrMetricCpythonGcCollections,
unitMetricCpythonGcCollections);
}
static inline nostd::unique_ptr<metrics::Counter<double>>
CreateSyncDoubleMetricCpythonGcCollections(metrics::Meter *meter)
{
return meter->CreateDoubleCounter(kMetricCpythonGcCollections, descrMetricCpythonGcCollections,
unitMetricCpythonGcCollections);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncInt64MetricCpythonGcCollections(metrics::Meter *meter)
{
return meter->CreateInt64ObservableCounter(
kMetricCpythonGcCollections, descrMetricCpythonGcCollections, unitMetricCpythonGcCollections);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncDoubleMetricCpythonGcCollections(metrics::Meter *meter)
{
return meter->CreateDoubleObservableCounter(
kMetricCpythonGcCollections, descrMetricCpythonGcCollections, unitMetricCpythonGcCollections);
}
/**
The total number of objects which were found to be uncollectable inside a generation since
interpreter start. <p> This metric reports data from <a
href="https://docs.python.org/3/library/gc.html#gc.get_stats">@code gc.stats() @endcode</a>. <p>
counter
*/
static constexpr const char *kMetricCpythonGcUncollectableObjects =
"cpython.gc.uncollectable_objects";
static constexpr const char *descrMetricCpythonGcUncollectableObjects =
"The total number of objects which were found to be uncollectable inside a generation since "
"interpreter start.";
static constexpr const char *unitMetricCpythonGcUncollectableObjects = "{object}";
static inline nostd::unique_ptr<metrics::Counter<uint64_t>>
CreateSyncInt64MetricCpythonGcUncollectableObjects(metrics::Meter *meter)
{
return meter->CreateUInt64Counter(kMetricCpythonGcUncollectableObjects,
descrMetricCpythonGcUncollectableObjects,
unitMetricCpythonGcUncollectableObjects);
}
static inline nostd::unique_ptr<metrics::Counter<double>>
CreateSyncDoubleMetricCpythonGcUncollectableObjects(metrics::Meter *meter)
{
return meter->CreateDoubleCounter(kMetricCpythonGcUncollectableObjects,
descrMetricCpythonGcUncollectableObjects,
unitMetricCpythonGcUncollectableObjects);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncInt64MetricCpythonGcUncollectableObjects(metrics::Meter *meter)
{
return meter->CreateInt64ObservableCounter(kMetricCpythonGcUncollectableObjects,
descrMetricCpythonGcUncollectableObjects,
unitMetricCpythonGcUncollectableObjects);
}
static inline nostd::shared_ptr<metrics::ObservableInstrument>
CreateAsyncDoubleMetricCpythonGcUncollectableObjects(metrics::Meter *meter)
{
return meter->CreateDoubleObservableCounter(kMetricCpythonGcUncollectableObjects,
descrMetricCpythonGcUncollectableObjects,
unitMetricCpythonGcUncollectableObjects);
}
} // namespace cpython
} // namespace semconv
OPENTELEMETRY_END_NAMESPACE
|